From 0770f217fa314cd0ae2546e2b758fbbaa3e07e09 Mon Sep 17 00:00:00 2001 From: ArvidNorr Date: Mon, 28 Jan 2013 15:31:51 +0100 Subject: PAM error text can be configured --- sesman/verify_user.c | 2 +- sesman/verify_user_kerberos.c | 2 +- sesman/verify_user_pam_userpass.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sesman') diff --git a/sesman/verify_user.c b/sesman/verify_user.c index 8765d7c2..5bd89c73 100644 --- a/sesman/verify_user.c +++ b/sesman/verify_user.c @@ -48,7 +48,7 @@ auth_account_disabled(struct spwd *stp); /******************************************************************************/ /* returns boolean */ long DEFAULT_CC -auth_userpass(char *user, char *pass) +auth_userpass(char *user, char *pass, int *errorcode) { char salt[13] = "$1$"; char hash[35] = ""; diff --git a/sesman/verify_user_kerberos.c b/sesman/verify_user_kerberos.c index c4a7ecde..fc0d4aa2 100644 --- a/sesman/verify_user_kerberos.c +++ b/sesman/verify_user_kerberos.c @@ -396,7 +396,7 @@ cleanup: /******************************************************************************/ /* returns boolean */ int DEFAULT_CC -auth_userpass(char *user, char *pass) +auth_userpass(char *user, char *pass, int *errorcode) { struct k_opts opts; struct k5_data k5; diff --git a/sesman/verify_user_pam_userpass.c b/sesman/verify_user_pam_userpass.c index 9fa2d9e5..4d6aac40 100644 --- a/sesman/verify_user_pam_userpass.c +++ b/sesman/verify_user_pam_userpass.c @@ -34,7 +34,7 @@ /******************************************************************************/ /* returns boolean */ int DEFAULT_CC -auth_userpass(char *user, char *pass) +auth_userpass(char *user, char *pass, int *errorcode) { pam_handle_t *pamh; pam_userpass_t userpass; -- cgit v1.2.1