source: packages/libs/libpam/patches/001-no_nis.patch @ 28316

Last change on this file since 28316 was 28316, checked in by acoul, 5 years ago

libs/libpam: update to version 1.1.4

  • Property svn:eol-style set to native
File size: 1.8 KB
  • modules/pam_access/pam_access.c

    a b  
    4444#include <arpa/inet.h> 
    4545#include <netdb.h> 
    4646#include <sys/socket.h> 
    47 #ifdef HAVE_RPCSVC_YPCLNT_H 
     47#ifdef HAVE_RPCSVC_YPCLNT_H && USE_NIS 
    4848#include <rpcsvc/ypclnt.h> 
    4949#endif 
    5050#ifdef HAVE_LIBAUDIT 
  • modules/pam_unix/pam_unix_passwd.c

    a b  
    7474#include "passverify.h" 
    7575#include "bigcrypt.h" 
    7676 
    77 #if (HAVE_YP_GET_DEFAULT_DOMAIN || HAVE_GETDOMAINNAME) && HAVE_YP_MASTER 
     77#if (HAVE_YP_GET_DEFAULT_DOMAIN || HAVE_GETDOMAINNAME) && HAVE_YP_MASTER && USE_NIS 
    7878# define HAVE_NIS 
    7979#endif 
    8080 
    8181#ifdef HAVE_NIS 
    8282# include <rpc/rpc.h> 
    8383 
    84 # if HAVE_RPCSVC_YP_PROT_H 
     84# if HAVE_RPCSVC_YP_PROT_H && USE_NIS 
    8585#  include <rpcsvc/yp_prot.h> 
    8686# endif 
    8787 
    88 # if HAVE_RPCSVC_YPCLNT_H 
     88# if HAVE_RPCSVC_YPCLNT_H && USE_NIS 
    8989#  include <rpcsvc/ypclnt.h> 
    9090# endif 
    9191 
  • modules/pam_unix/support.c

    a b  
    1919#include <ctype.h> 
    2020#include <syslog.h> 
    2121#include <sys/resource.h> 
    22 #ifdef HAVE_RPCSVC_YPCLNT_H 
     22#ifdef HAVE_RPCSVC_YPCLNT_H && USE_NIS 
    2323#include <rpcsvc/ypclnt.h> 
    2424#endif 
    2525 
    int _unix_getpwnam(pam_handle_t *pamh, c 
    285285                } 
    286286        } 
    287287 
    288 #if defined(HAVE_YP_GET_DEFAULT_DOMAIN) && defined (HAVE_YP_BIND) && defined (HAVE_YP_MATCH) && defined (HAVE_YP_UNBIND) 
     288#if defined(HAVE_YP_GET_DEFAULT_DOMAIN) && defined (HAVE_YP_BIND) && defined (HAVE_YP_MATCH) && defined (HAVE_YP_UNBIND) && (USE_NIS) 
    289289        if (!matched && nis) { 
    290290                char *userinfo = NULL, *domain = NULL; 
    291291                int len = 0, i; 
  • modules/pam_unix/yppasswd_xdr.c

    a b  
    1313#include "config.h" 
    1414 
    1515#include <rpc/rpc.h> 
     16#ifdef USE_NIS 
     17#include <rpcsvc/yp_prot.h> 
     18#include <rpcsvc/ypclnt.h> 
     19#endif 
    1620#include "yppasswd.h" 
    1721 
    1822bool_t 
Note: See TracBrowser for help on using the repository browser.