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

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) { func searchByCn(myldap *MyLdap, baseDn, cn, class, attributes string) (*ldap.SearchResult, error) {
var filter string var filter string
if false == strings.EqualFold(cn, "ALL") { if false == strings.EqualFold(cn, "ALL") {
filter = fmt.Sprintf("(cn=%s)", cn) filter = fmt.Sprintf("cn=%s", cn)
} else { } else {
filter = cn filter = cn
} }