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

samba-tool: Test gpo manage symlink remove command

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
David Mulder
2021-01-21 12:11:09 -07:00
committed by Jeremy Allison
parent 3fc89829a9
commit 5794c670ff
3 changed files with 51 additions and 0 deletions

View File

@@ -2395,11 +2395,40 @@ samba-tool gpo manage symlink add {31B2F340-016D-11D2-945F-00C04FB984F9} /tmp/so
"not have sufficient privileges")
raise
class cmd_remove_symlink(Command):
"""Removes a VGP Symbolic Link Group Policy from the sysvol
This command removes a symlink setting from the sysvol from appling to winbind clients.
Example:
samba-tool gpo manage symlink remove {31B2F340-016D-11D2-945F-00C04FB984F9} /tmp/source /tmp/target
"""
synopsis = "%prog <gpo> <source> <target> [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", "source", "target"]
def run(self, gpo, source, target, H=None, sambaopts=None, credopts=None,
versionopts=None):
pass
class cmd_symlink(SuperCommand):
"""Manage symlink Group Policy Objects"""
subcommands = {}
subcommands["list"] = cmd_list_symlink()
subcommands["add"] = cmd_add_symlink()
subcommands["remove"] = cmd_remove_symlink()
class cmd_manage(SuperCommand):
"""Manage Group Policy Objects"""