summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-04-21 17:13:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:41 -0500
commit57eb9f47d058cc3c841aca11404bae2fed5367e4 (patch)
tree78a9b8f22907e1e2e56e44786ca40cce1a85e1ca /source3/passdb
parentd0a0930485508da9d3bd2ee2e37c3cc15896940e (diff)
downloadsamba-57eb9f47d058cc3c841aca11404bae2fed5367e4.tar.gz
samba-57eb9f47d058cc3c841aca11404bae2fed5367e4.tar.bz2
samba-57eb9f47d058cc3c841aca11404bae2fed5367e4.zip
r6421: use add machine script when creating a user (ACB_NORMAL)
who has a name ending in '$' (usrmgr.exe does this for domain trusts (that's was jfm's original comment I think). avoid an assert() call in libldap. (This used to be commit 0ac57ae94202190ddbe538f7180a0443463b48cf)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ldap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 04929314f0..7d66b0aaf0 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -3423,7 +3423,8 @@ static BOOL ldapsam_search_firstpage(struct pdb_search *search)
state->connection->paged_results = False;
}
- state->current_entry = ldap_first_entry(ld, state->entries);
+ if ( ld )
+ state->current_entry = ldap_first_entry(ld, state->entries);
if (state->current_entry == NULL) {
ldap_msgfree(state->entries);