nss-pam-ldapd commit: r1479 - nss-pam-ldapd/compat
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1479 - nss-pam-ldapd/compat
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1479 - nss-pam-ldapd/compat
- Date: Sun, 3 Jul 2011 22:34:16 +0200 (CEST)
Author: arthur
Date: Sun Jul 3 22:34:14 2011
New Revision: 1479
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1479
Log:
provide PAM_AUTHTOK_RECOVERY_ERR for systems with only PAM_AUTHTOK_RECOVER_ERR
Modified:
nss-pam-ldapd/compat/pam_compat.h
Modified: nss-pam-ldapd/compat/pam_compat.h
==============================================================================
--- nss-pam-ldapd/compat/pam_compat.h Sat Jul 2 23:50:05 2011 (r1478)
+++ nss-pam-ldapd/compat/pam_compat.h Sun Jul 3 22:34:14 2011 (r1479)
@@ -37,6 +37,14 @@
#include <security/pam_modutil.h>
#endif /* HAVE_SECURITY_PAM_MODUTIL_H */
+/* some systems define PAM_AUTHTOK_RECOVER_ERR but not
+ PAM_AUTHTOK_RECOVERY_ERR */
+#ifndef PAM_AUTHTOK_RECOVERY_ERR
+#ifdef PAM_AUTHTOK_RECOVER_ERR
+#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR
+#endif /* PAM_AUTHTOK_RECOVER_ERR */
+#endif /* not PAM_AUTHTOK_RECOVERY_ERR */
+
/* define our own replacement pam_get_authtok() if it wasn't found */
#ifndef HAVE_PAM_GET_AUTHTOK
int pam_get_authtok(pam_handle_t *pamh,int item,const char **authtok,const
char *prompt);
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits
- nss-pam-ldapd commit: r1479 - nss-pam-ldapd/compat,
Commits of the nss-pam-ldapd project