Skip to content

Commit

Permalink
Revert "Issue 5221 - User with expired password can still login with …
Browse files Browse the repository at this point in the history
…full privledges"

This reverts commit 8b2c561.
  • Loading branch information
droideck committed Sep 4, 2024
1 parent 7b7e3b1 commit 51724e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 73 deletions.
70 changes: 0 additions & 70 deletions dirsrvtests/tests/suites/password/pw_expired_access_test.py

This file was deleted.

3 changes: 0 additions & 3 deletions ldap/servers/slapd/pw_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ need_new_pw(Slapi_PBlock *pb, Slapi_Entry *e, int pwresponse_req)
slapi_pwpolicy_make_response_control(pb, -1, -1, LDAP_PWPOLICY_PWDEXPIRED);
}
slapi_add_pwd_control(pb, LDAP_CONTROL_PWEXPIRED, 0);
if (pb_conn) {
bind_credentials_clear(pb_conn, PR_FALSE, PR_TRUE);
}
slapi_send_ldap_result(pb, LDAP_INVALID_CREDENTIALS, NULL,
"password expired!", 0, NULL);
slapi_log_err(SLAPI_LOG_PWDPOLICY, PWDPOLICY_DEBUG,
Expand Down

0 comments on commit 51724e3

Please sign in to comment.