G Pas
This commit is contained in:
parent
f66f51019b
commit
dd6f84d25b
1 changed files with 3 additions and 0 deletions
3
gpas.go
3
gpas.go
|
@ -88,6 +88,9 @@ func passwordFound(user User, config *ConfigFile, ldapConn *ldap.Conn) (bool, er
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
if user.DN == "" && user.UID != "" {
|
||||||
|
user.DN = "uid=" + user.UID + ",ou=invitations,dc=resdigita,dc=org"
|
||||||
|
}
|
||||||
err = l.Bind(user.DN, user.Password)
|
err = l.Bind(user.DN, user.Password)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
|
|
Loading…
Reference in a new issue