X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/blobdiff_plain/6da4c990ed270b9e580b7812626a86d0c060f720..b2ec38ffff39e352a5fa2348d096edc25076d1fa:/create-user diff --git a/create-user b/create-user index 89f44d4..7bc0671 100755 --- a/create-user +++ b/create-user @@ -95,54 +95,8 @@ PATHBITS=`echo $USER | head -c 1`/`echo $USER | head -c 2`/$USER HOMEPATH=/afs/hcoop.net/user/$PATHBITS MAILPATH=/afs/hcoop.net/common/email/$PATHBITS -# -# Create LDAP entries. (With the whole libnss-ptdb, I kind of -# lost the idea of what I want to do with LDAP, but we'll -# see with time how well it integrates...) -# The ID returned from AFS is important here, we want to make -# sure those IDs match. -# - -# USER entry -echo " -dn: uid=$USER,ou=People,dc=hcoop,dc=net -objectClass: top -objectClass: person -objectClass: posixAccount -cn: $USER -uid: $USER -gidNumber: $ID -sn: $USER -host: abulafia -host: mire - -dn: cn=$USER,ou=Group,dc=hcoop,dc=net -objectClass: top -objectClass: posixGroup -cn: $USER -gidNumber: $ID -memberUid: $USER -" | sudo ldapadd -x -D cn=admin,dc=hcoop,dc=net -y /etc/ldap.secret || true - -# USER.daemon entry -echo " -dn: uid=$USER.daemon,ou=People,dc=hcoop,dc=net -objectClass: top -objectClass: person -objectClass: posixAccount -cn: $USER.daemon -uid: $USER.daemon -gidNumber: $ID_DAEMON -sn: $USER.daemon - -dn: cn=$USER.daemon,ou=Group,dc=hcoop,dc=net -objectClass: top -objectClass: posixGroup -cn: $USER.daemon -gidNumber: $ID_DAEMON -memberUid: $USER.daemon -" | sudo ldapadd -x -D cn=admin,dc=hcoop,dc=net -y /etc/ldap.secret || true +# LDAP bit excised (see git history...) # # Export .mailfilter and .cgi keys to a keytab file