From 8e7b2fa02955e0ec6078b38930e9a785fbe7cdff Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 18 Feb 2024 03:57:31 +0100 Subject: ldapadd: LDAP template adjusted 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. --- lduseradd | 12 +++++++++--- 1 file 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 -- cgit v1.2.3-1-g7c22