diff options
Diffstat (limited to 'python/samba/netcmd/domain.py')
-rw-r--r-- | python/samba/netcmd/domain.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index 9e9b30df0e..fe34f9434b 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -35,6 +35,7 @@ from samba.join import join_RODC, join_DC, join_subdomain from samba.auth import system_session from samba.samdb import SamDB from samba.dcerpc import drsuapi +from samba.dcerpc import security from samba.dcerpc.samr import DOMAIN_PASSWORD_COMPLEX, DOMAIN_PASSWORD_STORE_CLEARTEXT from samba.netcmd import ( Command, @@ -406,6 +407,9 @@ class cmd_domain_provision(Command): if ldap_backend_forced_uri is not None: self.logger.warn("You have specified to use an fixed URI %s for connecting to your LDAP server backend. This is NOT RECOMMENDED, as our default communiation over ldapi:// is more secure and much less") + if domain_sid is not None: + domain_sid = security.dom_sid(domain_sid) + session = system_session() try: result = provision(self.logger, |