mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
Guenther Deschner <gd@suse.de> notes that I missed out setting the default
for the 'normal' case (not --with-ldapsam). Andrew Bartlett (This used to be commit ebe5c618189391e6adf27e565a5821f8d47c8c7d)
This commit is contained in:
parent
49530d0db5
commit
9449d80f87
@ -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) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user