diff options
author | Simo Sorce <idra@samba.org> | 2001-08-23 23:25:34 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-08-23 23:25:34 +0000 |
commit | 8ef7ddba65f326df69d3ff247491a0df1fa89578 (patch) | |
tree | db8d4a3598f771de03ce2a56e14bc04e8f350858 /source3/param | |
parent | c50da047a1a7c64d3017f9d4b12391f384205072 (diff) | |
download | samba-8ef7ddba65f326df69d3ff247491a0df1fa89578.tar.gz samba-8ef7ddba65f326df69d3ff247491a0df1fa89578.tar.bz2 samba-8ef7ddba65f326df69d3ff247491a0df1fa89578.zip |
so let admins shutdown their samba servers remotely if they want :-)
(This used to be commit 6391fd7bdab07c83e9eed02e761db09918e60302)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 4ade750543..682ac7054c 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -145,6 +145,7 @@ typedef struct char *szAddUserToGroupScript; char *szDelUserToGroupScript; char *szAddMachineScript; + char *szShutdownScript; char *szWINSHook; #ifdef WITH_UTMP char *szUtmpDir; @@ -887,6 +888,7 @@ static struct parm_struct parm_table[] = { {"add user to group script", P_STRING, P_GLOBAL, &Globals.szAddUserToGroupScript, NULL, NULL, 0}, {"delete user from group script", P_STRING, P_GLOBAL, &Globals.szDelUserToGroupScript, NULL, NULL, 0}, {"add machine script", P_STRING, P_GLOBAL, &Globals.szAddMachineScript, NULL, NULL, 0}, + {"shutdown script", P_STRING, P_GLOBAL, &Globals.szShutdownScript, NULL, NULL, 0}, {"logon script", P_STRING, P_GLOBAL, &Globals.szLogonScript, NULL, NULL, 0}, {"logon path", P_STRING, P_GLOBAL, &Globals.szLogonPath, NULL, NULL, 0}, @@ -1470,6 +1472,8 @@ FN_GLOBAL_STRING(lp_deluserfromgroup_script, &Globals.szDelUserToGroupScript) FN_GLOBAL_STRING(lp_addmachine_script, &Globals.szAddMachineScript) +FN_GLOBAL_STRING(lp_shutdown_script, &Globals.szShutdownScript) + FN_GLOBAL_STRING(lp_wins_hook, &Globals.szWINSHook) FN_GLOBAL_LIST(lp_domain_admin_group, &Globals.szDomainAdminGroup) FN_GLOBAL_LIST(lp_domain_guest_group, &Globals.szDomainGuestGroup) |