there's no use checking for 'WITH_PAM' define, as it's not
authoraland <aland>
Wed, 18 Aug 1999 03:18:34 +0000 (03:18 +0000)
committeraland <aland>
Wed, 18 Aug 1999 03:18:34 +0000 (03:18 +0000)
used any more.  We've go another method which involves not
even compiling the module at all.

src/modules/rlm_pam/rlm_pam.c

index 996bdae..63d3240 100644 (file)
@@ -24,9 +24,7 @@
 #include       <time.h>
 #include       <ctype.h>
 
-#ifdef WITH_PAM
-#  include     <security/pam_appl.h>
-#endif
+#include       <security/pam_appl.h>
 
 #if HAVE_MALLOC_H
 #  include     <malloc.h>
@@ -35,7 +33,6 @@
 #include       "radiusd.h"
 #include       "modules.h"
 
-#ifdef WITH_PAM
 /*************************************************************************
  *
  *     Function: PAM_conv
@@ -159,15 +156,6 @@ static int pam_auth(REQUEST *request, char *username, char *password)
        return (r == 0) ? RLM_AUTH_OK : RLM_AUTH_REJECT;
 }
 
-#else /* WITH_PAM */
-
-static int pam_auth(REQUEST *request, char *username, char *password)
-{
-       return RLM_AUTH_REJECT;
-}
-
-#endif
-
 module_t rlm_pam = {
   "PAM",
   0,                           /* type: reserved */