* (Non-Working) LDAP stuff disabled
* Run `create-user' on fritz
* Disable setting password (has to be done manually for now)
* Portal has to move to either storing passwords in afs or running on
fritz (or both)
-/afs/hcoop.net/common/etc/scripts/create-user $USERNM || \
+ssh -K fritz.hcoop.net /afs/hcoop.net/common/etc/scripts/create-user $USERNM || \
( echo "create-user $USERNM failed" && exit 2 )
#
# Entry in LDAP is created, set real name
#
( echo "create-user $USERNM failed" && exit 2 )
#
# Entry in LDAP is created, set real name
#
-echo "
-dn: uid=$USERNM,ou=People,dc=hcoop,dc=net
-changetype: modify
-replace: gecos
-gecos: $REALNM
-" | sudo ldapmodify -x -D cn=admin,dc=hcoop,dc=net -y /etc/ldap.secret || \
- (echo Error modifying LDAP entry && exit 3 )
+#echo "
+#dn: uid=$USERNM,ou=People,dc=hcoop,dc=net
+#changetype: modify
+#replace: gecos
+#gecos: $REALNM
+#" | sudo ldapmodify -x -D cn=admin,dc=hcoop,dc=net -y /etc/ldap.secret || \
+# (echo Error modifying LDAP entry && exit 3 )
#
# Now set the password
#
#
# Now set the password
#
-if ! test -r "$PWFILE"; then
- echo "Skipping password set from $PWFILE (doesn't exist or permission denied)"
- #exit 4
-else
- echo Setting password from $PWFILE
- sudo sh -c "cat $PWFILE | tee -| /afs/hcoop.net/common/etc/scripts/change-user-password $USERNM" || \
- ( echo "cat $PWFILE | tee - | change-user-password $USERNM failed" && exit 5 )
+#if ! test -r "$PWFILE"; then
+# echo "Skipping password set from $PWFILE (doesn't exist or permission denied)"
+# #exit 4
+#else
+# echo Setting password from $PWFILE
+# sudo sh -c "cat $PWFILE | tee -| /afs/hcoop.net/common/etc/scripts/change-user-password $USERNM" || \
+# ( echo "cat $PWFILE | tee - | change-user-password $USERNM failed" && exit 5 )
# Delete password file
#sudo rm -- "$PWFILE"
# Delete password file
#sudo rm -- "$PWFILE"
- echo "Not deleting $PWFILE. Enable it in the script when you want"
-fi
+# echo "Not deleting $PWFILE. Enable it in the script when you want"
+#fi