Factoring the model user and correcting password

This commit is contained in:
Chris Mann 2023-07-22 08:50:25 +02:00
parent c915eaa0c0
commit 6401a7d814

View file

@ -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.ScopeSingleLevel, ldap.ScopeBaseObject,
ldap.NeverDerefAliases, ldap.NeverDerefAliases,
0, 0,
0, 0,