summaryrefslogtreecommitdiffstats
path: root/install/share/bootstrap-template.ldif
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-08-27 14:12:55 -0400
committerRob Crittenden <rcritten@redhat.com>2009-08-27 14:15:26 -0400
commit559c76f761ff46c0d0e7f679d24d7ca5304db101 (patch)
tree7df5b1122aca7283bc4a01bfc4afb80e6f265c68 /install/share/bootstrap-template.ldif
parentcab55250760ad1633ed115564f83750fd91e230d (diff)
downloadfreeipa-559c76f761ff46c0d0e7f679d24d7ca5304db101.tar.gz
freeipa-559c76f761ff46c0d0e7f679d24d7ca5304db101.tar.xz
freeipa-559c76f761ff46c0d0e7f679d24d7ca5304db101.zip
Add option to the installer for uid/gid starting numbers.
This also adds a new option to the template system. If you include eval(string) in a file that goes through the templater then the string in the eval will be evaluated by the Python interpreter. This is used so one can do $UIDSTART+1. If any errors occur during the evaluation the original string is is returned, eval() and all so it is up to the developer to make sure the evaluation passes. The default value for uid and gid is now a random value between 1,000,000 and (2^31 - 1,000,000)
Diffstat (limited to 'install/share/bootstrap-template.ldif')
-rw-r--r--install/share/bootstrap-template.ldif10
1 files changed, 5 insertions, 5 deletions
diff --git a/install/share/bootstrap-template.ldif b/install/share/bootstrap-template.ldif
index 5c716f6a5..e98c73b07 100644
--- a/install/share/bootstrap-template.ldif
+++ b/install/share/bootstrap-template.ldif
@@ -69,8 +69,8 @@ uid: admin
krbPrincipalName: admin@$REALM
cn: Administrator
sn: Administrator
-uidNumber: 999
-gidNumber: 1001
+uidNumber: $UIDSTART
+gidNumber: $GIDSTART
homeDirectory: /home/admin
loginShell: /bin/bash
gecos: Administrator
@@ -107,7 +107,7 @@ objectClass: groupofnames
objectClass: posixgroup
cn: admins
description: Account administrators group
-gidNumber: 1001
+gidNumber: $GIDSTART
member: uid=admin,cn=users,cn=accounts,$SUFFIX
nsAccountLock: False
@@ -118,7 +118,7 @@ objectClass: groupofnames
objectClass: nestedgroup
objectClass: ipausergroup
objectClass: posixgroup
-gidNumber: 1002
+gidNumber: eval($GIDSTART+1)
description: Default group for all users
cn: ipausers
@@ -127,7 +127,7 @@ changetype: add
objectClass: top
objectClass: groupofnames
objectClass: posixgroup
-gidNumber: 1003
+gidNumber: eval($GIDSTART+2)
description: Limited admins who can edit other users
cn: editors