manage auth and add secret

This commit is contained in:
2019-11-28 14:36:49 +01:00
parent e965fd3d03
commit 290cb1edc6
4 changed files with 31 additions and 21 deletions

View File

@ -30,7 +30,7 @@ func LogIn(username string, password string) (ok bool, user map[string]string) {
GroupFilter: "(memberUid=%s)",
Attributes: conf.LDAP.Attributes,
}
log.Print(ldapclient)
defer ldapclient.Close()
ok, user, err := ldapclient.Authenticate(username, password)