summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-04-01 07:16:06 +0000
committerAndrew Tridgell <tridge@samba.org>2002-04-01 07:16:06 +0000
commit6bd2b496ed07e535cc199b983e7a6321ce6855f4 (patch)
tree00ab5f7f7667c646a21eca7ff9f11a6f2e3fbf72 /source3
parent3ce3047154135bfd41832011bd3467c9bc3664f9 (diff)
downloadsamba-6bd2b496ed07e535cc199b983e7a6321ce6855f4.tar.gz
samba-6bd2b496ed07e535cc199b983e7a6321ce6855f4.tar.bz2
samba-6bd2b496ed07e535cc199b983e7a6321ce6855f4.zip
cope with a missing PAM define
(This used to be commit e5c3648fe721d659c8b90a6987998ada4790592b)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/pam_errors.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/pam_errors.c b/source3/lib/pam_errors.c
index 1971e3b763..f74e4bf176 100644
--- a/source3/lib/pam_errors.c
+++ b/source3/lib/pam_errors.c
@@ -23,6 +23,10 @@
#ifdef WITH_PAM
#include <security/pam_appl.h>
+#if defined(PAM_AUTHTOK_RECOVERY_ERR) && !defined(PAM_AUTHTOK_RECOVER_ERR)
+#define PAM_AUTHTOK_RECOVER_ERR PAM_AUTHTOK_RECOVERY_ERR
+#endif
+
/* PAM -> NT_STATUS map */
const static struct {
int pam_code;
@@ -46,10 +50,9 @@ const static struct {
{PAM_CRED_EXPIRED, NT_STATUS_PASSWORD_EXPIRED}, /* FIXME: Is this correct? */
{PAM_CRED_ERR, NT_STATUS_UNSUCCESSFUL},
{PAM_AUTHTOK_ERR, NT_STATUS_UNSUCCESSFUL},
-#if defined(PAM_AUTHTOK_RECOVERY_ERR) && !defined(PAM_AUTHTOK_RECOVER_ERR)
-#define PAM_AUTHTOK_RECOVER_ERR PAM_AUTHTOK_RECOVERY_ERR
-#endif
+#ifdef PAM_AUTHTOK_RECOVER_ERR
{PAM_AUTHTOK_RECOVER_ERR, NT_STATUS_UNSUCCESSFUL},
+#endif
{PAM_AUTHTOK_EXPIRED, NT_STATUS_PASSWORD_EXPIRED},
{PAM_SUCCESS, NT_STATUS_OK}
};