Howdy!
Because I want to create a Zarafa-user for every Virtualmin-User, I need to extract the E-Mail-Adress of the current User in the “Before and After”-Commands in the Useradmin.
I found a similar Thread concerning this, but i think, this was only for LDAP.
My custom.sh looks like this (where $USERADMIN_USER after the -e parameter should be replaced by the email:
#!/bin/sh
if [ “$USERADMIN_ACTION” = “CREATE_USER” ]; then
/usr/bin/zarafa-admin -c $USERADMIN_USER -p $USERADMIN_PASS -e $USERADMIN_USER -f “$USERADMIN_REAL” -a 0
fi
if [ “$USERADMIN_ACTION” = “MODIFY_USER” ]; then
/usr/bin/zarafa-admin -u $USERADMIN_USER -p $USERADMIN_PASS -e $USERADMIN_USER -f “$USERADMIN_REAL” -a 0
fi
if [ “$USERADMIN_ACTION” = “DELETE_USER” ]; then
/usr/bin/zarafa-admin -d $USERADMIN_USER
fi
Any Suggestions? Thanks!