diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-09-24 11:34:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:10 -0500 |
commit | bd4dc88e7ba84e53b507f01f7a9f73a0d1b959fd (patch) | |
tree | 63f13a8fdce492ad8af2e384050b43b5fa089efc | |
parent | e12730322c242dc7bd05402289a63c455a0a9bae (diff) | |
download | samba-bd4dc88e7ba84e53b507f01f7a9f73a0d1b959fd.tar.gz samba-bd4dc88e7ba84e53b507f01f7a9f73a0d1b959fd.tar.bz2 samba-bd4dc88e7ba84e53b507f01f7a9f73a0d1b959fd.zip |
r25304: Thankyou to Amin Azez <azez@ufomechanic.net> for pointing out that I
used subobj.ROLE and not subobj.SERVERROLE as the rest of the code
does.
Andrew Bartlett
(This used to be commit dd1cb33591819c3d4263e594c7a80de899def223)
-rw-r--r-- | source4/scripting/libjs/provision.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js index 502583507b..f204bcc9cc 100644 --- a/source4/scripting/libjs/provision.js +++ b/source4/scripting/libjs/provision.js @@ -585,12 +585,12 @@ function provision(subobj, message, blank, paths, session_info, credentials, lda var st = sys.stat(paths.smbconf); if (st == undefined) { var smbconfsuffix; - if (subobj.ROLE == "domain controller") { + if (subobj.SERVERROLE == "domain controller") { smbconfsuffix = "dc"; - } else if (subobj.ROLE == "member server") { + } else if (subobj.SERVERROLE == "member server") { smbconfsuffix = "member"; } else { - smbconfsuffix = subobj.ROLE; + smbconfsuffix = subobj.SERVERROLE; } message("Setting up " + paths.smbconf +"\n"); setup_file("provision.smb.conf." + smbconfsuffix, info.message, paths.smbconf, subobj); |