summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorLars Müller <lars@samba.org>2008-12-17 15:39:35 +0100
committerLars Müller <lars@samba.org>2008-12-17 16:54:10 +0100
commit6b6977aaf25aa6b5fce49e7aa10711d16cb896e7 (patch)
treeab227ce4bb34cb4f090d6db16d0925f75b43dc71 /nsswitch
parent994ef68164c12a3b0494f6491bc9f402c912600f (diff)
downloadsamba-6b6977aaf25aa6b5fce49e7aa10711d16cb896e7.tar.gz
samba-6b6977aaf25aa6b5fce49e7aa10711d16cb896e7.tar.bz2
samba-6b6977aaf25aa6b5fce49e7aa10711d16cb896e7.zip
Tweak with pam defines of older Linux versions
PAM_AUTHTOK_RECOVERY_ERR is not defined by older Linux versions (SUSE Linux Enterprise 9 and RedHat Enterprise 4). Patch suggested by Philipp Thomas <pth at suse dot de>.
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/nsswitch/pam_winbind.h b/nsswitch/pam_winbind.h
index c6b2c5e726..d21fc04a78 100644
--- a/nsswitch/pam_winbind.h
+++ b/nsswitch/pam_winbind.h
@@ -27,7 +27,14 @@
#include <libintl.h>
#endif
-#ifndef LINUX
+#if defined(LINUX)
+
+/* newer versions of PAM have this in _pam_compat.h */
+#ifndef PAM_AUTHTOK_RECOVERY_ERR
+#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR
+#endif
+
+#else /* !LINUX */
/* Solaris always uses dynamic pam modules */
#define PAM_EXTERN extern