mirror of
https://github.com/samba-team/samba.git
synced 2025-07-04 00:59:13 +03:00
samba-tool: add -H or --URL where necessary
To improve consistency, I've made sure all the commands take either a -H or --URL when specifying a URL Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
committed by
Andrew Tridgell
parent
2e082853fb
commit
41f073eb60
@ -52,8 +52,8 @@ class cmd_ds_acl_set(Command):
|
||||
car_help = """ The access control right to allow or deny """
|
||||
|
||||
takes_options = [
|
||||
Option("--host", help="LDB URL for database or target server",
|
||||
type=str),
|
||||
Option("-H", "--URL", help="LDB URL for database or target server",
|
||||
type=str, metavar="URL", dest="H"),
|
||||
Option("--car", type="choice", choices=["change-rid",
|
||||
"change-pdc",
|
||||
"change-infrastructure",
|
||||
@ -131,7 +131,7 @@ class cmd_ds_acl_set(Command):
|
||||
print desc_sddl
|
||||
|
||||
def run(self, car, action, objectdn, trusteedn, sddl,
|
||||
host=None, credopts=None, sambaopts=None, versionopts=None):
|
||||
H=None, credopts=None, sambaopts=None, versionopts=None):
|
||||
lp = sambaopts.get_loadparm()
|
||||
creds = credopts.get_credentials(lp)
|
||||
|
||||
@ -139,7 +139,7 @@ class cmd_ds_acl_set(Command):
|
||||
or objectdn is None or trusteedn is None):
|
||||
return self.usage()
|
||||
|
||||
samdb = SamDB(url=host, session_info=system_session(),
|
||||
samdb = SamDB(url=H, session_info=system_session(),
|
||||
credentials=creds, lp=lp)
|
||||
cars = {'change-rid' : GUID_DRS_CHANGE_RID_MASTER,
|
||||
'change-pdc' : GUID_DRS_CHANGE_PDC,
|
||||
|
Reference in New Issue
Block a user