mirror of
https://github.com/samba-team/samba.git
synced 2025-11-25 00:23:52 +03:00
r17206: Add a modular API for share configuration.
Commit the classic backwards compatible module which is the default one
(This used to be commit a89cc346b9)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
2dc38416b6
commit
9c66f601f1
@@ -367,6 +367,7 @@ function provision_default_paths(subobj)
|
||||
var lp = loadparm_init();
|
||||
var paths = new Object();
|
||||
paths.smbconf = lp.get("config file");
|
||||
paths.shareconf = lp.get("private dir") + "/" + "share.ldb";
|
||||
paths.hklm = "hklm.ldb";
|
||||
paths.hkcu = "hkcu.ldb";
|
||||
paths.hkcr = "hkcr.ldb";
|
||||
@@ -464,6 +465,12 @@ function provision(subobj, message, blank, paths, session_info, credentials)
|
||||
setup_file("provision.smb.conf", info.message, paths.smbconf, subobj);
|
||||
lp.reload();
|
||||
}
|
||||
/* only install a new shares config db if there is none */
|
||||
st = sys.stat(paths.shareconf);
|
||||
if (st == undefined) {
|
||||
message("Setting up sconf.ldb\n");
|
||||
setup_ldb("share.ldif", info, paths.shareconf);
|
||||
}
|
||||
message("Setting up secrets.ldb\n");
|
||||
setup_ldb("secrets.ldif", info, paths.secrets);
|
||||
message("Setting up keytabs\n");
|
||||
|
||||
Reference in New Issue
Block a user