<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><div>Hi there,<br><br>I'm working on a module on radius for a Nokia client.<br><br>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<br><br>Going back,<br><br>I'm creating a module that gets the value of these attributes.<br>But for now I'm just testing how to get the values of these attributes.<br><br><span>According to the modules wiki <a target="_blank" href="http://wiki.freeradius.org/Modules#Accessing_Radius_Request_Attributes">http://wiki.freeradius.org/Modules#Accessing_Radius_Request_Attributes</a></span><br>I just have to put NOKIA_AVPAIR to get the value but<br>it isn't recognized if I compile the
 module:<br><br>/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<br> 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<br>rlm_sqlite.c: In function `sqlite_accounting':<br>rlm_sqlite.c:186: error: `NOKIA_AVPAIR' undeclared (first use in this function)<br>rlm_sqlite.c:186: error: (Each undeclared identifier is reported only once<br>rlm_sqlite.c:186: error: for each function it appears in.)<br>rlm_sqlite.c:174: warning: unused variable `reply'<br>rlm_sqlite.c:175: warning: unused variable `state'<br>rlm_sqlite.c:179: warning: unused
 variable `buf'<br>make: *** [rlm_sqlite.lo] Error 1<br><br><br>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!<br><br></div></div><br>



      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>