v0.5.8 : Fermeture des connexions apres chaque requete, en attendant de gerer un pool
This commit is contained in:
parent
dfc26b821c
commit
6ef9978839
2
ldap.go
2
ldap.go
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user