From d562cea4669d0d277cb2a8602aebfc5957a7b23f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 7 Mar 2022 16:19:56 +0100 Subject: [PATCH] Minor changes to scripts/disabling-ldap-user --- scripts/disabling-ldap-user | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/disabling-ldap-user b/scripts/disabling-ldap-user index 89e5b73..b937d68 100755 --- a/scripts/disabling-ldap-user +++ b/scripts/disabling-ldap-user @@ -9,7 +9,7 @@ QUIET='n' SIMULATE='n' YES="n" -VERSION="1.1" +VERSION="1.2" # console colors: RED="" @@ -185,9 +185,9 @@ error() { 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 @@ -575,7 +575,7 @@ disabling_password() { #------------------------------------------------------------------------------ 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} -- 2.39.5