diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-06-25 14:01:21 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-06-26 09:50:55 +0200 |
commit | c6b21931c6574322c8740f1a67f9125437c42c0d (patch) | |
tree | c686e00e70b04182439809ae85f25e9456db562a /source4/setup | |
parent | 7905901bc018ec91c69368dedd906c1cf89103f3 (diff) | |
download | samba-c6b21931c6574322c8740f1a67f9125437c42c0d.tar.gz samba-c6b21931c6574322c8740f1a67f9125437c42c0d.tar.bz2 samba-c6b21931c6574322c8740f1a67f9125437c42c0d.zip |
s4:provision: add --next-rid option
Make it possible to provision a domain with a given next rid counter.
This will be useful for upgrades, where we want to import users
with already given SIDs.
metze
Diffstat (limited to 'source4/setup')
-rwxr-xr-x | source4/setup/provision | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/setup/provision b/source4/setup/provision index 264245a72c..e127ac8577 100755 --- a/source4/setup/provision +++ b/source4/setup/provision @@ -107,6 +107,8 @@ parser.add_option("--server-role", type="choice", metavar="ROLE", parser.add_option("--function-level", type="choice", metavar="FOR-FUN-LEVEL", choices=["2000", "2003", "2008", "2008_R2"], help="The domain and forest function level (2003 | 2008 | 2008_R2). Default is (Windows) 2003 (Native).") +parser.add_option("--next-rid", type="int", metavar="NEXTRID", default=1000, + help="The initial nextRid value (only needed for upgrades). Default is 1000.") parser.add_option("--partitions-only", help="Configure Samba's partitions, but do not modify them (ie, join a BDC)", action="store_true") parser.add_option("--targetdir", type="string", metavar="DIR", @@ -253,7 +255,7 @@ try: ldapadminpass=opts.ldapadminpass, ol_mmr_urls=opts.ol_mmr_urls, slapd_path=opts.slapd_path, setup_ds_path=opts.setup_ds_path, nosync=opts.nosync, ldap_dryrun_mode=opts.ldap_dryrun_mode, - useeadb=eadb) + useeadb=eadb, next_rid=opts.next_rid) except ProvisioningError, e: print str(e) exit(1) |