diff options
-rw-r--r-- | source4/scripting/python/samba/netcmd/sites.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/netcmd/sites.py b/source4/scripting/python/samba/netcmd/sites.py index f5223db5f8..5cbc09c105 100644 --- a/source4/scripting/python/samba/netcmd/sites.py +++ b/source4/scripting/python/samba/netcmd/sites.py @@ -24,6 +24,7 @@ import os from samba import sites from samba.samdb import SamDB +import samba.getopt as options from samba.auth import system_session from samba.netcmd import ( Command, @@ -39,6 +40,12 @@ class cmd_sites_create(Command): takes_args = ["sitename"] + takes_optiongroups = { + "sambaopts": options.SambaOptions, + "versionopts": options.VersionOptions, + "credopts": options.CredentialsOptions, + } + def run(self, sitename, sambaopts=None, credopts=None, versionopts=None): lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp, fallback_machine=True) @@ -66,6 +73,12 @@ class cmd_sites_delete(Command): takes_args = ["sitename"] + takes_optiongroups = { + "sambaopts": options.SambaOptions, + "versionopts": options.VersionOptions, + "credopts": options.CredentialsOptions, + } + def run(self, sitename, sambaopts=None, credopts=None, versionopts=None): lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp, fallback_machine=True) |