1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-23 20:59:10 +03:00

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 dd1cb33591)
This commit is contained in:
Andrew Bartlett
2007-09-24 11:34:26 +00:00
committed by Gerald (Jerry) Carter
parent e12730322c
commit bd4dc88e7b

View File

@ -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);