From: Frank Brehm Date: Mon, 7 Mar 2022 15:19:56 +0000 (+0100) Subject: Minor changes to scripts/disabling-ldap-user X-Git-Tag: 0.4.1^2~49 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=d562cea4669d0d277cb2a8602aebfc5957a7b23f;p=pixelpark%2Fpp-admin-tools.git Minor changes to scripts/disabling-ldap-user --- 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}