1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3-testparm: Throw warning when 'workgroup' and 'netbios name' are identical.

Address bug #7285 (NetBIOS Namespace Clash Handling).

Karolin
This commit is contained in:
Karolin Seeger 2010-03-24 14:55:15 +01:00
parent ef6976dad3
commit a6bfc1a2d0

View File

@ -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());