SIMULATE='n'
YES="n"
-VERSION="1.1"
+VERSION="1.2"
# console colors:
RED=""
description() {
cat <<-EOF
- Disables a LDAP User by Setting its inetStatus to '${CYAN}disabled${NORMAL}',
- setting the Login Shell to '${CYAN}/bin/false${NORMAL}', setting the password to a dummy value
- and removing the appropriate entries in groups.
+ Disables a LDAP User by setting its inetUserStatus and mailUserStatus to '${CYAN}inactive${NORMAL}',
+ setting the Login Shell to '${CYAN}/bin/false${NORMAL}', removing the password, setting the
+ account expiry date to a date in the past and removing the appropriate entries in groups.
EOF
#------------------------------------------------------------------------------
setting_user_status() {
- info "Setting UserStatus of '${CYAN}${USER_NAME}${NORMAL}' to '${CYAN}disabled${NORMAL}' ..."
+ info "Setting UserStatus of '${CYAN}${USER_NAME}${NORMAL}' to '${CYAN}inactive${NORMAL}' ..."
cat > "${LDIF_FILE}" <<-EOF
dn: ${USER_DN}