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:
committed by
Gerald (Jerry) Carter
parent
e12730322c
commit
bd4dc88e7b
@ -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);
|
||||
|
Reference in New Issue
Block a user