Do you remember my previuos mails ?
> Hi all,
> I' m having problem with the Ippool module ( rlm_ippool ).
> When authorizing, the module is able to allocate the correct IP
> address, but on the account "Stop" does not set the ip free.
...
Well, I did some more investigation, but yet doesn't work.
I added some comments on the rlm_ippool module to check what kind of data
were passing through the module.
Here is the output:
In authorize "side":
rlm_ippool: Searching for an entry for nas/port: 10.128.255.3/1054
rlm_ippool: num: 1
rlm_ippool: Allocated ip 10.128.10.2 to client on nas 10.128.255.3,port 1054
In accounting side, when the request is a stop, at the end of the
"if (data_datum.dptr != NULL){"
I' ve added a cicle on the gdbm file and I see:
rlm_ippool: THERE IS A NAS INFORMATION IN PACKET 10.128.255.3 1054.
rlm_ippool: Values: active = 1, key.nas = 10.128.255.3, nasport= 1054
rlm_ippool: Dati 0 NOT_EXIST -2
rlm_ippool: Exiting from function accounting no results
So it seems that the gdbm_fetch fails when searching in the file.
The behaviour is the same on linux and solaris 8 machine.
Have you any idea ?
In the mean time i will try to modify the source to work with a cicle, but
this could be expensive for the time needed by the scan.
Pigi
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html