summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-12-16 12:21:39 +0000
committerJeremy Allison <jra@samba.org>1997-12-16 12:21:39 +0000
commit5136c5ec119968b39e2cf9d7f3e6836d9286a51f (patch)
treece9d16d6231a99f8c455d40cdde82c2ac7c12f77 /source
parent847506a755fac3f97274a19c8a02a2a22f82ca13 (diff)
downloadsamba-5136c5ec119968b39e2cf9d7f3e6836d9286a51f.tar.gz
samba-5136c5ec119968b39e2cf9d7f3e6836d9286a51f.tar.xz
samba-5136c5ec119968b39e2cf9d7f3e6836d9286a51f.zip
WHATSNEW.txt - updated for 1.9.18alpha13.
docs/smb.conf.5: Removed unused NTDOMAIN params. Added new params. source/loadparm.c: Put #ifdef NTDOMAIN around unused params. source/nmbd_become_lmb.c: Removed check for workgroup name in lmb name. Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/nmbd/nmbd_become_lmb.c6
-rw-r--r--source/param/loadparm.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_become_lmb.c b/source/nmbd/nmbd_become_lmb.c
index 6496a2f9e58..6dcd61d76c1 100644
--- a/source/nmbd/nmbd_become_lmb.c
+++ b/source/nmbd/nmbd_become_lmb.c
@@ -544,6 +544,11 @@ void set_workgroup_local_master_browser_name( struct work_record *work, char *ne
DEBUG(5,("set_workgroup_local_master_browser_name: setting local master name to '%s' \
for workgroup %s.\n", newname, work->work_group ));
+#if 0
+ /*
+ * Apparently some sites use the workgroup name as the local
+ * master browser name. Arrrrggghhhhh ! (JRA).
+ */
if(strequal( work->work_group, newname))
{
DEBUG(5, ("set_workgroup_local_master_browser_name: Refusing to set \
@@ -551,6 +556,7 @@ local_master_browser_name for workgroup %s to workgroup name.\n",
work->work_group ));
return;
}
+#endif
StrnCpy(work->local_master_browser_name, newname,
sizeof(work->local_master_browser_name)-1);
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 277430ecc44..47faefc571a 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -471,6 +471,7 @@ static struct parm_struct
{"passwd chat", P_STRING, P_GLOBAL, &Globals.szPasswdChat, NULL, NULL},
{"valid chars", P_STRING, P_GLOBAL, &Globals.szValidChars, handle_valid_chars, NULL},
{"workgroup", P_USTRING, P_GLOBAL, &Globals.szWorkGroup, NULL, NULL},
+#ifdef NTDOMAIN
{"domain sid", P_USTRING, P_GLOBAL, &Globals.szDomainSID, NULL, NULL},
{"domain other sids",P_STRING, P_GLOBAL, &Globals.szDomainOtherSIDs, NULL, NULL},
{"domain groups", P_STRING, P_GLOBAL, &Globals.szDomainGroups, NULL, NULL},
@@ -481,6 +482,7 @@ static struct parm_struct
{"domain allow hosts",P_STRING, P_GLOBAL, &Globals.szDomainHostsallow, NULL, NULL},
{"domain hosts deny", P_STRING, P_GLOBAL, &Globals.szDomainHostsdeny, NULL, NULL},
{"domain deny hosts", P_STRING, P_GLOBAL, &Globals.szDomainHostsdeny, NULL, NULL},
+#endif /* NTDOMAIN */
{"username map", P_STRING, P_GLOBAL, &Globals.szUsernameMap, NULL, NULL},
{"character set", P_STRING, P_GLOBAL, &Globals.szCharacterSet, handle_character_set, NULL},
{"logon script", P_STRING, P_GLOBAL, &Globals.szLogonScript, NULL, NULL},
@@ -898,6 +900,7 @@ FN_GLOBAL_STRING(lp_announce_version,&Globals.szAnnounceVersion)
FN_GLOBAL_STRING(lp_netbios_aliases,&Globals.szNetbiosAliases)
FN_GLOBAL_STRING(lp_driverfile,&Globals.szDriverFile)
+#ifdef NTDOMAIN
FN_GLOBAL_STRING(lp_domain_sid,&Globals.szDomainSID)
FN_GLOBAL_STRING(lp_domain_other_sids,&Globals.szDomainOtherSIDs)
FN_GLOBAL_STRING(lp_domain_groups,&Globals.szDomainGroups)
@@ -905,7 +908,7 @@ FN_GLOBAL_STRING(lp_domain_admin_users,&Globals.szDomainAdminUsers)
FN_GLOBAL_STRING(lp_domain_guest_users,&Globals.szDomainGuestUsers)
FN_GLOBAL_STRING(lp_domain_hostsallow,&Globals.szDomainHostsallow)
FN_GLOBAL_STRING(lp_domain_hostsdeny,&Globals.szDomainHostsdeny)
-
+#endif /* NTDOMAIN */
FN_GLOBAL_BOOL(lp_dns_proxy,&Globals.bDNSproxy)
FN_GLOBAL_BOOL(lp_wins_support,&Globals.bWINSsupport)