summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-adtrust-install
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-06-12 17:53:36 +0200
committerRob Crittenden <rcritten@redhat.com>2012-06-29 16:21:23 -0400
commite809802aedb2d0343fb8fd7e42c2cfd9ed327cc9 (patch)
tree44f30f20e79afad815f1239aff3e31e7ba0e4969 /install/tools/ipa-adtrust-install
parent0350b5e8a18ea63f04c753ae4bd71e5bc15cec90 (diff)
downloadfreeipa-e809802aedb2d0343fb8fd7e42c2cfd9ed327cc9.tar.gz
freeipa-e809802aedb2d0343fb8fd7e42c2cfd9ed327cc9.tar.xz
freeipa-e809802aedb2d0343fb8fd7e42c2cfd9ed327cc9.zip
Set RID bases for local domain during ipa-adtrust-install
Diffstat (limited to 'install/tools/ipa-adtrust-install')
-rwxr-xr-xinstall/tools/ipa-adtrust-install10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/tools/ipa-adtrust-install b/install/tools/ipa-adtrust-install
index 49bcf54e7..6678018e6 100755
--- a/install/tools/ipa-adtrust-install
+++ b/install/tools/ipa-adtrust-install
@@ -48,6 +48,12 @@ def parse_options():
parser.add_option("--no-msdcs", dest="no_msdcs", action="store_true",
default=False, help="Do not create DNS service records " \
"for Windows in managed DNS server")
+ parser.add_option("--rid-base", dest="rid_base", type=int, default=1000,
+ help="Start value for mapping UIDs and GIDs to RIDs")
+ parser.add_option("--secondary-rid-base", dest="secondary_rid_base",
+ type=int, default=100000000,
+ help="Start value of the secondary range for mapping " \
+ "UIDs and GIDs to RIDs")
parser.add_option("-U", "--unattended", dest="unattended", action="store_true",
default=False, help="unattended installation never prompts the user")
@@ -207,7 +213,9 @@ def main():
api.Backend.ldap2.connect(ccache)
smb.setup(api.env.host, ip_address, api.env.realm, api.env.domain,
- netbios_name, options.no_msdcs)
+ netbios_name, options.rid_base, options.secondary_rid_base,
+ options.no_msdcs)
+ smb.find_local_id_range()
smb.create_instance()
print """