summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2024-02-18 03:57:31 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2024-02-18 03:58:24 +0100
commit8e7b2fa02955e0ec6078b38930e9a785fbe7cdff (patch)
tree26d640b8f5fcb7ea912ef70ef90a5ac433007789
parent91a5f98d5853a93ae0887055a57ce363ea0b8492 (diff)
downloadusermanagement-master.tar.gz
usermanagement-master.tar.bz2
usermanagement-master.zip
ldapadd: LDAP template adjustedHEADmaster
We do not create ldap entries with the structurel object class 'account' anymore but use 'inetOrgPerson' now. This requires some different name attributes and an explicit definition of the email address. We changed it because inetOrgPerson is more compatible with different software.
-rwxr-xr-xlduseradd12
1 files changed, 9 insertions, 3 deletions
diff --git a/lduseradd b/lduseradd
index 4375b04..d868984 100755
--- a/lduseradd
+++ b/lduseradd
@@ -617,11 +617,17 @@ echo >> $LOG
cat > /tmp/ld.new.$$ << EOF
dn: uid=$ACCOUNT,ou=People,dc=spline,dc=inf,dc=fu-berlin,dc=de
uid: $ACCOUNT
-cn: $VNAME $NNAME
-objectClass: account
-objectClass: posixAccount
objectClass: top
+objectClass: person
+objectClass: organizationalPerson
+objectClass: inetOrgPerson
+objectClass: posixAccount
objectClass: shadowAccount
+cn: $VNAME $NNAME
+sn: $NNAME
+givenName: $VNAME
+displayName: $VNAME $NNAME
+mail: $ACCOUNT@spline.inf.fu-berlin.de
userPassword: {crypt}5Y
shadowLastChange: 10990
shadowMax: 99999