summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2019-06-28 15:11:11 +1200
committerGary Lockyer <gary@samba.org>2019-07-02 02:23:09 +0000
commit54fbac97ef70ece7a0607d5d6073501f08f8adc6 (patch)
tree2ebac51277e24a53e8f6aeab8618f2416c2c04ce /python
parent2face29963da2192c81e62a98d181fe7fd22c977 (diff)
downloadsamba-54fbac97ef70ece7a0607d5d6073501f08f8adc6.tar.gz
join subdomain: changes for --backend-store-size
Pass the 'backend_store_size' parameter through to DCJoinContext. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/join.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/python/samba/join.py b/python/samba/join.py
index 794f5577b41..77d260b42fa 100644
--- a/python/samba/join.py
+++ b/python/samba/join.py
@@ -304,8 +304,9 @@ class DCJoinContext(object):
objectAttr = lsa.ObjectAttribute()
objectAttr.sec_qos = lsa.QosInfo()
- pol_handle = lsaconn.OpenPolicy2(''.decode('utf-8'),
- objectAttr, security.SEC_FLAG_MAXIMUM_ALLOWED)
+ pol_handle = lsaconn.OpenPolicy2('',
+ objectAttr,
+ security.SEC_FLAG_MAXIMUM_ALLOWED)
name = lsa.String()
name.string = ctx.realm
@@ -1575,12 +1576,13 @@ def join_subdomain(logger=None, server=None, creds=None, lp=None, site=None,
netbios_name=None, targetdir=None, parent_domain=None, dnsdomain=None,
netbios_domain=None, machinepass=None, adminpass=None, use_ntvfs=False,
dns_backend=None, plaintext_secrets=False,
- backend_store=None):
+ backend_store=None, backend_store_size=None):
"""Join as a DC."""
ctx = DCJoinContext(logger, server, creds, lp, site, netbios_name,
targetdir, parent_domain, machinepass, use_ntvfs,
dns_backend, plaintext_secrets,
- backend_store=backend_store)
+ backend_store=backend_store,
+ backend_store_size=backend_store_size)
ctx.subdomain = True
if adminpass is None:
ctx.adminpass = samba.generate_random_password(12, 32)