diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-07 00:36:38 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-07 00:36:38 +0000 |
commit | 950f1d9605179d75ab0755cecffbabbde769beb9 (patch) | |
tree | 128e3db66a53ef7fc6d9910b2bb2f72b6760a80f /source3/param | |
parent | d4e8c87005869fce7ec993c91cd972d9a2f1a53b (diff) | |
download | samba-950f1d9605179d75ab0755cecffbabbde769beb9.tar.gz samba-950f1d9605179d75ab0755cecffbabbde769beb9.tar.bz2 samba-950f1d9605179d75ab0755cecffbabbde769beb9.zip |
Added 3 params to manipulate shares. "add share command/change share command/
delete share command". Implemented "delete" - more work to come on add and
change.
Jeremy.
(This used to be commit 2e6b1759e14456421066ee131af70a495f862f2b)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index bec5f03cd8..59e66d8ce1 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -181,6 +181,9 @@ typedef struct char *szTemplateHomedir; char *szTemplateShell; char *szWinbindSeparator; + char *szAddShareCommand; + char *szChangeShareCommand; + char *szDeleteShareCommand; int max_log_size; int mangled_stack; int max_xmit; @@ -960,6 +963,9 @@ static struct parm_struct parm_table[] = { #endif /* WITH_LDAP */ {"Miscellaneous Options", P_SEP, P_SEPARATOR}, + {"add share command", P_STRING, P_GLOBAL, &Globals.szAddShareCommand, NULL, NULL, 0}, + {"change share command", P_STRING, P_GLOBAL, &Globals.szChangeShareCommand, NULL, NULL, 0}, + {"delete share command", P_STRING, P_GLOBAL, &Globals.szDeleteShareCommand, NULL, NULL, 0}, {"smbrun", P_STRING, P_GLOBAL, &Globals.szSmbrun, NULL, NULL, 0}, {"config file", P_STRING, P_GLOBAL, &Globals.szConfigFile, NULL, NULL, FLAG_HIDE}, @@ -1501,6 +1507,9 @@ FN_GLOBAL_STRING(lp_ldap_filter, &Globals.szLdapFilter); FN_GLOBAL_STRING(lp_ldap_root, &Globals.szLdapRoot); FN_GLOBAL_STRING(lp_ldap_rootpasswd, &Globals.szLdapRootPassword); #endif /* WITH_LDAP */ +FN_GLOBAL_STRING(lp_add_share_cmd, &Globals.szAddShareCommand); +FN_GLOBAL_STRING(lp_change_share_cmd, &Globals.szChangeShareCommand); +FN_GLOBAL_STRING(lp_delete_share_cmd, &Globals.szDeleteShareCommand); #ifdef WITH_SSL FN_GLOBAL_INTEGER(lp_ssl_version, &Globals.sslVersion); |