Factoring the model user and correcting password

This commit is contained in:
Chris Mann 2023-07-22 08:52:06 +02:00
parent 6401a7d814
commit d0d76e61f8

View file

@ -32,7 +32,7 @@ type User struct {
func get(user User, config *ConfigFile, ldapConn *ldap.Conn) (*User, error) {
searchReq := ldap.NewSearchRequest(
config.UserBaseDN,
ldap.ScopeBaseObject,
ldap.ScopeSingleLevel,
ldap.NeverDerefAliases,
0,
0,