dealing with 'corrupt' detail file

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Thu Jun 4 21:22:21 CEST 2009


Hi,

>   Easy.  The accounting section has to be told "it's OK to continue":

yep

>   Or maybe better:
> 
> 	sql
> 	if (noop || invalid) {
> 		ok
> 	}

doesnt appear to work...what happens is this..

okay detail packet

rlm_sql (sql): Released sql socket id: 6
++[sql] returns ok
++? if (noop || invalid)
? Evaluating (noop ) -> FALSE
? Evaluating (invalid) -> FALSE
++? if (noop || invalid) -> FALSE
} # server buffered-sql
Finished request 64.
Cleaning up request 64 ID 32577 with timestamp +3
Going to the next request


bad packet with no Acct-Status-Type

[sql] packet has no accounting status type. [user 'XXX\User', nas '192.168.1.22']
++[sql] returns invalid
} # server buffered-sql
Finished request 65.
Cleaning up request 65 ID 21840 with timestamp +3
Going to the next request

..as you can see, the bit of unlang asking for the return code doesnt
seem to be called at all (unlike the successful packet) and therefore
the duff packet stays in the detail file queue...to keep the detail
instance clogged up.

alan



More information about the Freeradius-Users mailing list