Added integer translations for Service-Type to radius.h
authorstangrze <stangrze>
Mon, 6 Sep 1999 08:10:23 +0000 (08:10 +0000)
committerstangrze <stangrze>
Mon, 6 Sep 1999 08:10:23 +0000 (08:10 +0000)
Added missing include in raduse, fixed PW_STRIPED_USERNAME in rlm_preprocess

src/include/radius.h
src/main/raduse.c
src/modules/rlm_preprocess/rlm_preprocess.c

index d80e624..0be6f34 100644 (file)
 
 #define        PW_LOGIN_USER                   1
 #define        PW_FRAMED_USER                  2
-#define        PW_DIALBACK_LOGIN_USER          3
-#define        PW_DIALBACK_FRAMED_USER         4
-
+#define        PW_CALLBACK_LOGIN_USER          3
+#define        PW_CALLBACK_FRAMED_USER         4
+#define PW_OUTBOUND_USER               5
+#define PW_ADMINISTRATIVE_USER         6
+#define PW_NAS_PROMPT_USER             7
+#define PW_AUTHENTICATE_ONLY           8
+#define PW_CALLBACK_NAS_PROMPT         9
+             
 /*     Framed Protocols        */
 
 #define        PW_PPP                          1
index 0dcc3c0..bfd8fbb 100644 (file)
@@ -14,6 +14,7 @@
 #include <time.h>
 #include "sysutmp.h"
 #include "conf.h"
+#include "radpaths.h"
 
 #ifdef __svr4__
 #  define ut_time ut_xtime
index 01aa308..6fdb241 100644 (file)
@@ -212,10 +212,10 @@ static int hints_setup(VALUE_PAIR *request_pairs)
         *      See if we need to adjust the name.
         */
        do_strip = 1;
-       if ((tmp = pairfind(i->reply, PW_STRIP_USERNAME)) != NULL
+       if ((tmp = pairfind(i->reply, PW_STRIP_USER_NAME)) != NULL
             && tmp->lvalue == 0)
                do_strip = 0;
-       if ((tmp = pairfind(i->check, PW_STRIP_USERNAME)) != NULL
+       if ((tmp = pairfind(i->check, PW_STRIP_USER_NAME)) != NULL
             && tmp->lvalue == 0)
                do_strip = 0;
 
@@ -231,7 +231,7 @@ static int hints_setup(VALUE_PAIR *request_pairs)
         *      Now add all attributes to the request list,
         *      except the PW_STRIP_USERNAME one.
         */
-       pairdelete(&add, PW_STRIP_USERNAME);
+       pairdelete(&add, PW_STRIP_USER_NAME);
        for(last = request_pairs; last && last->next; last = last->next)
                ;
        if (last) last->next = add;