mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
86d628a292
(This used to be commit 2dc493eea6
)
26 lines
474 B
JavaScript
26 lines
474 B
JavaScript
/*
|
|
demonstrate access to loadparm functions from ejs
|
|
*/
|
|
|
|
loadparm_init(local);
|
|
|
|
function showParameter(name) {
|
|
print(name + ": ");
|
|
printVars(get(name));
|
|
}
|
|
|
|
for (v in ARGV) {
|
|
showParameter(ARGV[v]);
|
|
}
|
|
|
|
print("defined services: ");
|
|
printVars(services());
|
|
|
|
showParameter("server services");
|
|
showParameter("netbios name");
|
|
showParameter("security");
|
|
showParameter("workgroup");
|
|
showParameter("log level");
|
|
showParameter("server signing");
|
|
showParameter("interfaces");
|