testparm: Add warning if the netbios name is too long
[mat/samba.git] / source3 / utils / testparm.c
index 7850b4386ed59db3766367c926251ab0600a9242..5912d18e08581bf66f9f8d2534800cb53e6f2602 100644 (file)
@@ -88,6 +88,11 @@ static int do_global_checks(void)
                                "must differ.\n\n");
        }
 
+       if (strlen(lp_netbios_name()) > 15) {
+               fprintf(stderr, "WARNING: The 'netbios name' is too long "
+                               "(max. 15 chars).\n\n");
+       }
+
        if (!directory_exist_stat(lp_lock_directory(), &st)) {
                fprintf(stderr, "ERROR: lock directory %s does not exist\n\n",
                       lp_lock_directory());