git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e07406
)
Guenther Deschner <gd@suse.de> notes that I missed out setting the default
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 28 Apr 2003 11:14:12 +0000
(11:14 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 28 Apr 2003 11:14:12 +0000
(11:14 +0000)
for the 'normal' case (not --with-ldapsam).
Andrew Bartlett
source/passdb/pdb_ldap.c
patch
|
blob
|
history
diff --git
a/source/passdb/pdb_ldap.c
b/source/passdb/pdb_ldap.c
index f9cd5345c7e193db4925cad2725e223e5ffa5d9b..607c77d30f1a05a92d89586c8c82444480ef97a2 100644
(file)
--- a/
source/passdb/pdb_ldap.c
+++ b/
source/passdb/pdb_ldap.c
@@
-3176,10
+3176,12
@@
static NTSTATUS pdb_init_ldapsam_compat(PDB_CONTEXT *pdb_context, PDB_METHODS **
ldap_state = (*pdb_method)->private_data;
ldap_state->use_ntsid = False;
-#ifdef WITH_LDAP_SAMCONFIG
if (location) {
ldap_state->uri = talloc_strdup(pdb_context->mem_ctx, location);
} else {
+#ifndef WITH_LDAP_SAMCONFIG
+ ldap_state->uri = "ldap://localhost";
+#else
int ldap_port = lp_ldap_port();
/* remap default port if not using SSL (ie clear or TLS) */