mirror of
https://github.com/samba-team/samba.git
synced 2025-11-08 16:23:49 +03:00
r13098: make check for workgroup and realm case insensitive
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
95e90169f4
commit
0cacd69dd5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user