summaryrefslogtreecommitdiffstats
path: root/source3/passdb/pdb_ldap.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-01-22 04:09:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:08 -0500
commite3971524d2030075165a150daf0e3aa91414d567 (patch)
treeed9ccacd83a282dfeb1fcc89dd2e949a226cf0ff /source3/passdb/pdb_ldap.c
parentb4afdc08d5336e4a337e453443d7af1d8655a31a (diff)
downloadsamba-e3971524d2030075165a150daf0e3aa91414d567.tar.gz
samba-e3971524d2030075165a150daf0e3aa91414d567.tar.xz
samba-e3971524d2030075165a150daf0e3aa91414d567.zip
r4926: Use LDAP_SCOPE_ONELEVEL instead of OpenLDAP's LDAP_SCOPE_ONE-scope.
Guenther (This used to be commit eee0bd806b4fd4558f9c48c09f7e85274e2b807f)
Diffstat (limited to 'source3/passdb/pdb_ldap.c')
-rw-r--r--source3/passdb/pdb_ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 2691965364..2994b06ef0 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -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;