v0.5.8 : Fermeture des connexions apres chaque requete, en attendant de gerer un pool

This commit is contained in:
yo 2023-09-29 11:36:35 +02:00
parent dfc26b821c
commit 6ef9978839
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ func internalLdapSearch(conLdap *MyLdap, searchReq *ldap.SearchRequest, attempt
func searchByCn(myldap *MyLdap, baseDn, cn, class, attributes string) (*ldap.SearchResult, error) {
var filter string
if false == strings.EqualFold(cn, "ALL") {
filter = fmt.Sprintf("(cn=%s)", cn)
filter = fmt.Sprintf("cn=%s", cn)
} else {
filter = cn
}