summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
authorArvidNorr <norrarvid@gmail.com>2013-01-28 15:31:51 +0100
committerArvidNorr <norrarvid@gmail.com>2013-01-28 15:31:51 +0100
commit0770f217fa314cd0ae2546e2b758fbbaa3e07e09 (patch)
treea05c9e8bce10226ed39555383c752ebe4f8e2099 /sesman
parenta2bbbd8cc336bedbda61a6af47d90bcccbe6aead (diff)
downloadxrdp-proprietary-0770f217fa314cd0ae2546e2b758fbbaa3e07e09.tar.gz
xrdp-proprietary-0770f217fa314cd0ae2546e2b758fbbaa3e07e09.zip
PAM error text can be configured
Diffstat (limited to 'sesman')
-rw-r--r--sesman/verify_user.c2
-rw-r--r--sesman/verify_user_kerberos.c2
-rw-r--r--sesman/verify_user_pam_userpass.c2
3 files changed, 3 insertions, 3 deletions
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;