renamed to PAM_AUTH_ATTR
authoraland <aland>
Thu, 25 Nov 1999 15:03:00 +0000 (15:03 +0000)
committeraland <aland>
Thu, 25 Nov 1999 15:03:00 +0000 (15:03 +0000)
src/modules/rlm_pam/rlm_pam.c

index 8105500..10314a7 100644 (file)
 #include       "radiusd.h"
 #include       "modules.h"
 
-#ifndef PW_PAM_AUTH
-#define PW_PAM_AUTH 1041
-#endif
-
 /*************************************************************************
  *
  *     Function: PAM_conv
@@ -169,7 +165,7 @@ static int pam_auth(REQUEST *request, char *username, char *password)
        VALUE_PAIR *pair;
        const char *pam_auth_string = "radiusd";
 
-       pair = pairfind(request->config_items, PW_PAM_AUTH);
+       pair = pairfind(request->config_items, PAM_AUTH_ATTR);
        if (pair) pam_auth_string = pair->strvalue;
 
        r = pam_pass(username, password, pam_auth_string);