1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-21 20:23:50 +03:00

samba-tool: Test gpo manage issue set command

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
David Mulder
2021-02-19 12:33:42 -07:00
committed by Jeremy Allison
parent 0f5af87fbf
commit 7593e067fa
3 changed files with 75 additions and 0 deletions

View File

@@ -3552,10 +3552,40 @@ samba-tool gpo manage issue list {31B2F340-016D-11D2-945F-00C04FB984F9}
text = data.find('text')
self.outf.write(text.text)
class cmd_set_issue(Command):
"""Sets a VGP Issue Group Policy to the sysvol
This command sets the Prelogin Message to the sysvol for applying to winbind
clients. Not providing a value will unset the policy.
Example:
samba-tool gpo manage issue set {31B2F340-016D-11D2-945F-00C04FB984F9} "Welcome to Samba!"
"""
synopsis = "%prog <gpo> [value] [options]"
takes_optiongroups = {
"sambaopts": options.SambaOptions,
"versionopts": options.VersionOptions,
"credopts": options.CredentialsOptions,
}
takes_options = [
Option("-H", "--URL", help="LDB URL for database or target server", type=str,
metavar="URL", dest="H"),
]
takes_args = ["gpo", "value?"]
def run(self, gpo, value=None, H=None, sambaopts=None, credopts=None,
versionopts=None):
pass
class cmd_issue(SuperCommand):
"""Manage Issue Group Policy Objects"""
subcommands = {}
subcommands["list"] = cmd_list_issue()
subcommands["set"] = cmd_set_issue()
class cmd_manage(SuperCommand):
"""Manage Group Policy Objects"""