summaryrefslogtreecommitdiff
path: root/source3/utils/testparm.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-18 11:51:37 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-05-18 16:12:08 +0200
commit3c8de7dd66390c00542118ec3aaa84e1e20956cb (patch)
tree4ec9b88a8d61961bddf2d12d14e032caf0f54d01 /source3/utils/testparm.c
parent035dbce3adcbf36afee5e9cc59912c4f07fe0f5e (diff)
downloadsamba-3c8de7dd66390c00542118ec3aaa84e1e20956cb.tar.gz
samba-3c8de7dd66390c00542118ec3aaa84e1e20956cb.tar.bz2
samba-3c8de7dd66390c00542118ec3aaa84e1e20956cb.zip
lib/util/charset Don't allow invalid 'dos charset = utf8'
No DOS client used UTF8, and this creates subtle, difficult to disagnose breakage of schannel (domain membership). Andrew Bartlett
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 978ada26c6..0e920ec696 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -240,12 +240,18 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
if (!lp_passdb_backend()) {
fprintf(stderr,"ERROR: passdb backend must have a value or be left out\n");
+ ret = 1;
}
if (lp_os_level() > 255) {
fprintf(stderr,"WARNING: Maximum value for 'os level' is 255!\n");
}
+ if (strequal(lp_dos_charset(), "UTF8") || strequal(lp_dos_charset(), "UTF-8")) {
+ fprintf(stderr, "ERROR: 'dos charset' must not be UTF8\n");
+ ret = 1;
+ }
+
return ret;
}