From 6401a7d8142fedf9e0df9d754362dc9c74b9e974 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Sat, 22 Jul 2023 08:50:25 +0200 Subject: [PATCH] Factoring the model user and correcting password --- model-user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-user.go b/model-user.go index 131976b..02da8e6 100644 --- a/model-user.go +++ b/model-user.go @@ -32,7 +32,7 @@ type User struct { func get(user User, config *ConfigFile, ldapConn *ldap.Conn) (*User, error) { searchReq := ldap.NewSearchRequest( config.UserBaseDN, - ldap.ScopeSingleLevel, + ldap.ScopeBaseObject, ldap.NeverDerefAliases, 0, 0,