rlm_sql post-auth variable bug?

Fernando Schapachnik fernando at mecon.gov.ar
Tue Aug 9 14:37:05 CEST 2005

	(Haven't had any reply on the users mailing list, so I'm 
giving it a try here, please excuse if this is OT).

	In my AAA chain I have a module that *sometimes* adds a custom
attribute (defined in my dictionary as ipaddr) called Auth-NAS. This
module is called in the authorize section. Later on, in the post-auth
session I have a SQL-module that has:

postauth_query = "INSERT INTO ${postauth_table} (...)  \
		VALUES (.... \
                '%{check:Auth-NAS:-}', ...)"

	When run, and Auth-NAS is not present, it outputs:

rlm_sql (sql-xxx) in sql_postauth: query is INSERT INTO table 
(...) ??VALUES (..., '=01', ...);

	Sometimes the '=01' is replaced by ''.

	Is this a bug in some place or am I doing something wrong? Any 
ideas? I'm using 1.0.4 (also seen on 1.0.2).

	Thanks in advance.


More information about the Freeradius-Devel mailing list