summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Haferkamp <rhafer@suse.de>2010-03-12 15:13:59 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-03-15 08:15:28 -0400
commitea38c85d4de7515fd946704c6dd56bb99198f033 (patch)
treeab26c929725f46751e19d4d88a68c461b5728b72
parentb4c01ab6d58519431f2c88deec14e0371233eeef (diff)
downloadsssd-ea38c85d4de7515fd946704c6dd56bb99198f033.tar.gz
sssd-ea38c85d4de7515fd946704c6dd56bb99198f033.tar.xz
sssd-ea38c85d4de7515fd946704c6dd56bb99198f033.zip
Warn user about an expired password
-rw-r--r--src/sss_client/pam_sss.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
index a7da1ec45..d62e9485c 100644
--- a/src/sss_client/pam_sss.c
+++ b/src/sss_client/pam_sss.c
@@ -1120,7 +1120,12 @@ static int pam_sss(enum sss_cli_command task, pam_handle_t *pamh,
if (ret == PAM_SUCCESS && task == SSS_PAM_ACCT_MGMT &&
pam_get_data(pamh, PWEXP_FLAG, (const void **) &exp_data) ==
PAM_SUCCESS) {
- return PAM_NEW_AUTHTOK_REQD;
+ ret = do_pam_conversation(pamh, PAM_TEXT_INFO,
+ _("Password expired. Change your password now."), NULL, NULL);
+ if (ret != PAM_SUCCESS) {
+ D(("do_pam_conversation failed."));
+ }
+ return PAM_NEW_AUTHTOK_REQD;
}
overwrite_and_free_authtoks(&pi);