1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r4926: Use LDAP_SCOPE_ONELEVEL instead of OpenLDAP's LDAP_SCOPE_ONE-scope.

Guenther
(This used to be commit eee0bd806b)
This commit is contained in:
Günther Deschner 2005-01-22 04:09:21 +00:00 committed by Gerald (Jerry) Carter
parent b4afdc08d5
commit e3971524d2

View File

@ -2921,7 +2921,7 @@ static NTSTATUS ldapsam_get_account_policy(struct pdb_methods *methods, int poli
search:
rc = smbldap_search(ldap_state->smbldap_state, base,
LDAP_SCOPE_ONE, filter, attrs, 0, &result);
LDAP_SCOPE_ONELEVEL, filter, attrs, 0, &result);
if (rc != LDAP_SUCCESS)
return ntstatus;
@ -3033,7 +3033,7 @@ static NTSTATUS ldapsam_set_account_policy(struct pdb_methods *methods, int poli
get_global_sam_name(), lp_ldap_suffix());
rc = smbldap_search(ldap_state->smbldap_state, base,
LDAP_SCOPE_ONE, filter, attrs, 0, &result);
LDAP_SCOPE_ONELEVEL, filter, attrs, 0, &result);
if (rc != LDAP_SUCCESS)
return ntstatus;