summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-05-01 01:26:16 +0000
committerJeremy Allison <jra@samba.org>2001-05-01 01:26:16 +0000
commit40f75304b29b3b02e8473ba47ec8a93ed947338b (patch)
tree10ff854ae37d0c154ce96a487a229e7b9a1a0b38
parentcbe87a2449dd8e008810e2d3830ab414e495502e (diff)
downloadsamba-40f75304b29b3b02e8473ba47ec8a93ed947338b.tar.gz
samba-40f75304b29b3b02e8473ba47ec8a93ed947338b.tar.xz
samba-40f75304b29b3b02e8473ba47ec8a93ed947338b.zip
Allow pam code to compile on Solaris (which doesn't have PAM_AUTHTOK_RECOVER_ERR).
Jeremy.
-rw-r--r--source/auth/pampass.c5
-rw-r--r--source/passdb/pampass.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/source/auth/pampass.c b/source/auth/pampass.c
index 01d2d81b9de..09b84db71ac 100644
--- a/source/auth/pampass.c
+++ b/source/auth/pampass.c
@@ -525,9 +525,14 @@ static BOOL smb_pam_chauthtok(pam_handle_t *pamh, char * user)
case PAM_AUTHTOK_ERR:
DEBUG(2, ("PAM: unable to obtain the new authentication token - is password to weak?\n"));
break;
+
+ /* This doesn't seem to be defined on Solaris. JRA */
+#ifdef PAM_AUTHTOK_RECOVER_ERR
case PAM_AUTHTOK_RECOVER_ERR:
DEBUG(2, ("PAM: unable to obtain the old authentication token - was the old password wrong?.\n"));
break;
+#endif
+
case PAM_AUTHTOK_LOCK_BUSY:
DEBUG(2, ("PAM: unable to change the authentication token since it is currently locked.\n"));
break;
diff --git a/source/passdb/pampass.c b/source/passdb/pampass.c
index 01d2d81b9de..09b84db71ac 100644
--- a/source/passdb/pampass.c
+++ b/source/passdb/pampass.c
@@ -525,9 +525,14 @@ static BOOL smb_pam_chauthtok(pam_handle_t *pamh, char * user)
case PAM_AUTHTOK_ERR:
DEBUG(2, ("PAM: unable to obtain the new authentication token - is password to weak?\n"));
break;
+
+ /* This doesn't seem to be defined on Solaris. JRA */
+#ifdef PAM_AUTHTOK_RECOVER_ERR
case PAM_AUTHTOK_RECOVER_ERR:
DEBUG(2, ("PAM: unable to obtain the old authentication token - was the old password wrong?.\n"));
break;
+#endif
+
case PAM_AUTHTOK_LOCK_BUSY:
DEBUG(2, ("PAM: unable to change the authentication token since it is currently locked.\n"));
break;