summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-03-02 12:30:06 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-03-02 12:30:06 +0000
commit75f72f0b6a698e462a0567674613319dde789084 (patch)
treeca66cf048eea9fcb30a2d2e473b763edcf909211
parent6c5052a1a9e47c2efe0d5e84bee05ae335d79e60 (diff)
downloadsamba-75f72f0b6a698e462a0567674613319dde789084.tar.gz
samba-75f72f0b6a698e462a0567674613319dde789084.tar.xz
samba-75f72f0b6a698e462a0567674613319dde789084.zip
Move these inside the #ifdef to fix the compile on non-LDAPsam systems.
-rw-r--r--source/param/loadparm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 5698eed20d6..919527040df 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -199,8 +199,8 @@ typedef struct
int oplock_break_wait_time;
int winbind_cache_time;
#ifdef WITH_LDAP_SAM
- char *szLdapMachineSuffix;
- char *szLdapUserSuffix;
+ char *szLdapMachineSuffix;
+ char *szLdapUserSuffix;
int ldap_port;
int ldap_ssl;
char *szLdapSuffix;
@@ -1319,14 +1319,15 @@ static void init_globals(void)
Globals.bUseMmap = True;
#endif
- string_set(&Globals.szLdapMachineSuffix, "");
- string_set(&Globals.szLdapUserSuffix, "");
/* hostname lookups can be very expensive and are broken on
a large number of sites (tridge) */
Globals.bHostnameLookups = False;
#ifdef WITH_LDAP_SAM
string_set(&Globals.szLdapSuffix, "");
+ string_set(&Globals.szLdapMachineSuffix, "");
+ string_set(&Globals.szLdapUserSuffix, "");
+
string_set(&Globals.szLdapFilter, "(&(uid=%u)(objectclass=sambaAccount))");
string_set(&Globals.szLdapAdminDn, "");
Globals.ldap_ssl = LDAP_SSL_ON;