summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-14 14:12:27 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-14 14:12:27 +0000
commit58bec5e2fd8013d187d0840a384f3c4d76102d3f (patch)
tree8abf2c7fb74c638d68fc07cea12016e0efbd638c /source3
parent89f5301e3d9f45d5a246569e47362423073aedce (diff)
downloadsamba-58bec5e2fd8013d187d0840a384f3c4d76102d3f.tar.gz
samba-58bec5e2fd8013d187d0840a384f3c4d76102d3f.tar.bz2
samba-58bec5e2fd8013d187d0840a384f3c4d76102d3f.zip
Allow non unix accounts to be added to an ldap directory without NUA accounts
already. Andrew Bartlett (This used to be commit a5d5b4cf2555b9bbded31b556d4fc74c00c6c490)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 7ba8d4a810..0a16071419 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -1048,6 +1048,10 @@ static uint32 search_top_nua_rid(struct ldapsam_privates *ldap_state, LDAP *ldap
}
ldap_msgfree(result);
+
+ if (top_rid < ldap_state->low_nua_rid)
+ top_rid = ldap_state->low_nua_rid;
+
return top_rid;
}