Factoring the model user and correcting password
This commit is contained in:
parent
6401a7d814
commit
d0d76e61f8
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ type User struct {
|
||||||
func get(user User, config *ConfigFile, ldapConn *ldap.Conn) (*User, error) {
|
func get(user User, config *ConfigFile, ldapConn *ldap.Conn) (*User, error) {
|
||||||
searchReq := ldap.NewSearchRequest(
|
searchReq := ldap.NewSearchRequest(
|
||||||
config.UserBaseDN,
|
config.UserBaseDN,
|
||||||
ldap.ScopeBaseObject,
|
ldap.ScopeSingleLevel,
|
||||||
ldap.NeverDerefAliases,
|
ldap.NeverDerefAliases,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in a new issue