lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1672 - in nss-pam-ldapd-0.7: . compat

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1672 - in nss-pam-ldapd-0.7: . compat



Author: arthur
Date: Fri Apr 27 20:50:06 2012
New Revision: 1672
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1672&view=revision

Log:
some compatibility improvements by Ted C. Cheng of Symas Corporation (r1225 
from 0.8 branch)

Modified:
   nss-pam-ldapd-0.7/   (props changed)
   nss-pam-ldapd-0.7/compat/nss_compat.h
   nss-pam-ldapd-0.7/compat/pam_get_authtok.c
   nss-pam-ldapd-0.7/configure.ac

Modified: nss-pam-ldapd-0.7/compat/nss_compat.h
==============================================================================
--- nss-pam-ldapd-0.7/compat/nss_compat.h       Fri Apr 27 11:26:55 2012        
(r1671)
+++ nss-pam-ldapd-0.7/compat/nss_compat.h       Fri Apr 27 20:50:06 2012        
(r1672)
@@ -2,6 +2,7 @@
    nss_compat.h - compatibility definitions for NSS functions
 
    Copyright (C) 2010 Arthur de Jong
+   Copyright (C) 2010 Symas Corporation
 
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
@@ -42,6 +43,12 @@
 #ifdef HAVE_RPC_RPCENT_H
 #include <rpc/rpcent.h>
 #endif /* HAVE_RPC_RPCENT_H */
+#ifdef HAVE_NSS_DBDEFS_H
+#include <nss_dbdefs.h>
+#endif /* HAVE_NSS_DBDEFS_H */
+#ifdef HAVE_NSSWITCH_H
+#include <nsswitch.h>
+#endif /* HAVE_NSSWITCH_H */
 
 #include "compat/ether.h"
 

Modified: nss-pam-ldapd-0.7/compat/pam_get_authtok.c
==============================================================================
--- nss-pam-ldapd-0.7/compat/pam_get_authtok.c  Fri Apr 27 11:26:55 2012        
(r1671)
+++ nss-pam-ldapd-0.7/compat/pam_get_authtok.c  Fri Apr 27 20:50:06 2012        
(r1672)
@@ -2,6 +2,7 @@
    pam_get_authtok.c - replacement function for pam_get_authtok()
 
    Copyright (C) 2009 Arthur de Jong
+   Copyright (C) 2010 Symas Corporation
 
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
@@ -34,6 +35,15 @@
 
 /* warning: this version assumes that try_first_pass is specified */
 
+/* find value of PAM_AUTHTOK_RECOVERY_ERR */
+#ifndef PAM_AUTHTOK_RECOVERY_ERR
+#ifdef PAM_AUTHTOK_RECOVER_ERR
+#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR
+#else
+#define PAM_AUTHTOK_RECOVERY_ERR 21 /* not defined anywhere */
+#endif
+#endif
+
 int pam_get_authtok(pam_handle_t *pamh,int item,const char **authtok,const 
char *prompt)
 {
   int rc;

Modified: nss-pam-ldapd-0.7/configure.ac
==============================================================================
--- nss-pam-ldapd-0.7/configure.ac      Fri Apr 27 11:26:55 2012        (r1671)
+++ nss-pam-ldapd-0.7/configure.ac      Fri Apr 27 20:50:06 2012        (r1672)
@@ -211,6 +211,7 @@
 AC_CHECK_HEADERS([ctype.h strings.h pthread.h fcntl.h limits.h])
 AC_CHECK_HEADERS([nss.h nss_common.h grp.h shadow.h aliases.h netdb.h 
rpc/rpcent.h])
 AC_CHECK_HEADERS([netinet/ether.h arpa/inet.h netinet/in.h])
+AC_CHECK_HEADERS([nsswitch.h nss_dbdefs.h])
 AC_CHECK_HEADERS([sys/socket.h sys/un.h sys/ucred.h ucred.h sys/param.h 
sys/time.h])
 AC_CHECK_HEADERS([getopt.h syslog.h])
 
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/