Hi there,
I'm working on a module on radius for a Nokia client.
Somehow, by dumping, I was able to verify that the Vendor Spcific attrib is
using code 1. So I just added this entry in the dictionary.nokia (as there are
no code 1 in the present dictionary) I named this attribute Nokia-Avpair
Going back,
I'm creating a module that gets the value of these attributes.
But for now I'm just testing how to get the values of these attributes.
According to the modules wiki
http://wiki.freeradius.org/Modules#Accessing_Radius_Request_Attributes
I just have to put NOKIA_AVPAIR to get the value but
it isn't recognized if I compile the module:
/usr/local/src/freeradius-server-2.0.3/libtool --mode=compile gcc -g -O2
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG
-I/usr/local/src/freeradius-server-2.0.3/src
-I/usr/local/src/freeradius-server-2.0.3/libltdl -I/usr/include -c rlm_sqlite.c
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE
-DNDEBUG -I/usr/local/src/freeradius-server-2.0.3/src
-I/usr/local/src/freeradius-server-2.0.3/libltdl -I/usr/include -c rlm_sqlite.c
-fPIC -DPIC -o .libs/rlm_sqlite.o
rlm_sqlite.c: In function `sqlite_accounting':
rlm_sqlite.c:186: error: `NOKIA_AVPAIR' undeclared (first use in this function)
rlm_sqlite.c:186: error: (Each undeclared identifier is reported only once
rlm_sqlite.c:186: error: for each function it appears in.)
rlm_sqlite.c:174: warning: unused variable `reply'
rlm_sqlite.c:175: warning: unused variable `state'
rlm_sqlite.c:179: warning: unused variable `buf'
make: *** [rlm_sqlite.lo] Error 1
I don't know if I'm just wrong here or something. Creating modules for
freeradius is a little bit new to me. Hope someone can help me. Thanks!
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html