git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a34ba41
)
Fix pdb_ldap segfaults, and wrong default values for ldapsam_compat.
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 24 Jun 2003 14:23:34 +0000
(14:23 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 24 Jun 2003 14:23:34 +0000
(14:23 +0000)
Reviewed by vl, metze.
Andrew Bartlett
(This used to be commit
9804ad458ad35c9ea7de3e2e86bf8b2f85ae6533
)
source3/passdb/pdb_ldap.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_ldap.c
b/source3/passdb/pdb_ldap.c
index fe575d4e3e5bf37a26cba07a8e5249d19a4a9488..1149a92a997923fe134cd777d730b12051ced5cb 100644
(file)
--- a/
source3/passdb/pdb_ldap.c
+++ b/
source3/passdb/pdb_ldap.c
@@
-182,6
+182,7
@@
static void smbldap_delete_state(struct smbldap_state *smbldap_state)
if (t->smbldap_state == smbldap_state) {
DLIST_REMOVE(smbldap_state_lookup_list, t);
SAFE_FREE(t);
+ return;
}
}
}
@@
-3427,10
+3428,8
@@
static NTSTATUS pdb_init_ldapsam_compat(PDB_CONTEXT *pdb_context, PDB_METHODS **
NTSTATUS nt_status;
struct ldapsam_privates *ldap_state;
-#ifndef WITH_LDAP_SAMCONFIG
- location = "ldap://localhost";
-#else
- {
+#ifdef WITH_LDAP_SAMCONFIG
+ if (!location) {
int ldap_port = lp_ldap_port();
/* remap default port if not using SSL (ie clear or TLS) */