diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-06-28 08:52:50 +1200 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-07-02 02:23:09 +0000 |
commit | ddfc1ddd4f9e9b4b70e036023d7868cb48c7391f (patch) | |
tree | 2734fda77c863e792d16be3c5cf0e47bcdfb1451 /python/samba/join.py | |
parent | f93cb76ab01d0d6f3d59979f2c7d6711fe444f1b (diff) | |
download | samba-ddfc1ddd4f9e9b4b70e036023d7868cb48c7391f.tar.gz |
samba-tool domain join: Add --backend-store-size option
Add a new "samba-tool domain join" option "backend-store-size".
This allows the lmdb map size to be set during a provision, instead of
hard-wiring it to 8Gb.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python/samba/join.py')
-rw-r--r-- | python/samba/join.py | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/python/samba/join.py b/python/samba/join.py index 46491122319..2d756a46f14 100644 --- a/python/samba/join.py +++ b/python/samba/join.py @@ -66,7 +66,9 @@ class DCJoinContext(object): netbios_name=None, targetdir=None, domain=None, machinepass=None, use_ntvfs=False, dns_backend=None, promote_existing=False, plaintext_secrets=False, - backend_store=None, forced_local_samdb=None): + backend_store=None, + backend_store_size=None, + forced_local_samdb=None): ctx.logger = logger ctx.creds = creds @@ -76,6 +78,7 @@ class DCJoinContext(object): ctx.use_ntvfs = use_ntvfs ctx.plaintext_secrets = plaintext_secrets ctx.backend_store = backend_store + ctx.backend_store_size = backend_store_size ctx.promote_existing = promote_existing ctx.promote_from_dn = None @@ -872,7 +875,8 @@ class DCJoinContext(object): sitename=ctx.site, lp=ctx.lp, ntdsguid=ctx.ntds_guid, use_ntvfs=ctx.use_ntvfs, dns_backend=ctx.dns_backend, plaintext_secrets=ctx.plaintext_secrets, - backend_store=ctx.backend_store + backend_store=ctx.backend_store, + backend_store_size=ctx.backend_store_size ) print("Provision OK for domain DN %s" % presult.domaindn) ctx.local_samdb = presult.samdb @@ -1459,13 +1463,15 @@ def join_RODC(logger=None, server=None, creds=None, lp=None, site=None, netbios_ targetdir=None, domain=None, domain_critical_only=False, machinepass=None, use_ntvfs=False, dns_backend=None, promote_existing=False, plaintext_secrets=False, - backend_store=None): + backend_store=None, + backend_store_size=None): """Join as a RODC.""" ctx = DCJoinContext(logger, server, creds, lp, site, netbios_name, targetdir, domain, machinepass, use_ntvfs, dns_backend, promote_existing, plaintext_secrets, - backend_store=backend_store) + backend_store=backend_store, + backend_store_size=backend_store_size) lp.set("workgroup", ctx.domain_name) logger.info("workgroup is %s" % ctx.domain_name) @@ -1513,12 +1519,14 @@ def join_DC(logger=None, server=None, creds=None, lp=None, site=None, netbios_na targetdir=None, domain=None, domain_critical_only=False, machinepass=None, use_ntvfs=False, dns_backend=None, promote_existing=False, 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, domain, machinepass, use_ntvfs, dns_backend, promote_existing, plaintext_secrets, - backend_store=backend_store) + backend_store=backend_store, + backend_store_size=backend_store_size) lp.set("workgroup", ctx.domain_name) logger.info("workgroup is %s" % ctx.domain_name) |