summaryrefslogtreecommitdiffstats
path: root/source3/utils/testparm.c
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2010-03-24 14:55:15 +0100
committerKarolin Seeger <kseeger@samba.org>2010-03-24 15:09:23 +0100
commita6bfc1a2d0270197ee34405f3ce028a5919f1aaa (patch)
tree04beefa7c0b27a3d7dd6a56f37a01b9665f9f12b /source3/utils/testparm.c
parentef6976dad3234b57016f8dce3f1b8e93d3ddb521 (diff)
downloadsamba-a6bfc1a2d0270197ee34405f3ce028a5919f1aaa.tar.gz
samba-a6bfc1a2d0270197ee34405f3ce028a5919f1aaa.tar.xz
samba-a6bfc1a2d0270197ee34405f3ce028a5919f1aaa.zip
s3-testparm: Throw warning when 'workgroup' and 'netbios name' are identical.
Address bug #7285 (NetBIOS Namespace Clash Handling). Karolin
Diffstat (limited to 'source3/utils/testparm.c')
-rw-r--r--source3/utils/testparm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 3204de27d43..73e173e2097 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -77,6 +77,12 @@ cannot be set in the smb.conf file. nmbd will abort with this setting.\n");
ret = 1;
}
+ if (strequal(lp_workgroup(), global_myname())) {
+ fprintf(stderr, "WARNING: 'workgroup' and 'netbios name' " \
+ "must differ.\n");
+ ret = 1;
+ }
+
if (!directory_exist_stat(lp_lockdir(), &st)) {
fprintf(stderr, "ERROR: lock directory %s does not exist\n",
lp_lockdir());