summaryrefslogtreecommitdiffstats
path: root/source/scripting
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-01-24 00:16:54 +0000
committerAndrew Tridgell <tridge@samba.org>2006-01-24 00:16:54 +0000
commit38258e6fd02de1deeae758cd85bd5919ac3a5eb8 (patch)
treef17c8b26d4a7d0d8e813022ebfcee780d763661e /source/scripting
parent42a587ba16cb8c53c5f9fb5595fe73b90d5292f7 (diff)
downloadsamba-38258e6fd02de1deeae758cd85bd5919ac3a5eb8.tar.gz
samba-38258e6fd02de1deeae758cd85bd5919ac3a5eb8.tar.xz
samba-38258e6fd02de1deeae758cd85bd5919ac3a5eb8.zip
r13098: make check for workgroup and realm case insensitive
Diffstat (limited to 'source/scripting')
-rw-r--r--source/scripting/libjs/provision.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/scripting/libjs/provision.js b/source/scripting/libjs/provision.js
index 90bc0823416..14a81e898d8 100644
--- a/source/scripting/libjs/provision.js
+++ b/source/scripting/libjs/provision.js
@@ -608,13 +608,13 @@ function provision_validate(subobj, message)
}
- if (lp.get("workgroup") != subobj.DOMAIN) {
+ if (strupper(lp.get("workgroup")) != strupper(subobj.DOMAIN)) {
message("workgroup '%s' in smb.conf must match chosen domain '%s'\n",
lp.get("workgroup"), subobj.DOMAIN);
return false;
}
- if (lp.get("realm") != subobj.REALM) {
+ if (strupper(lp.get("realm")) != strupper(subobj.REALM)) {
message("realm '%s' in smb.conf must match chosen realm '%s'\n",
lp.get("realm"), subobj.REALM);
return false;