Commit 9a6b9fc6 authored by Patrick Meyer's avatar Patrick Meyer
Browse files

Don't panic on failed ldap connection.

conn is nil, if the ldap connection fails.
parent d9d77dcc
......@@ -142,6 +142,9 @@ func (lp *LdapProvider) UpdateUser(username string, data User) (user User, err e
func (lp *LdapProvider) GetUser(username string) (user User, err error) {
conn, _, user, err := lp.getUserByUID(username)
if err != nil {
return
}
defer conn.Close()
return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment