rad-error

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Sun Nov 6 12:48:37 CET 2016


Hi,

> Would you please assist me to  get rid of this problem, 

you need to fix your SQL config

the debug clearly shows what is happening.....so you need to work with that.

look:

> (31) sql: ERROR: Error fetching row
> (31) sql: ERROR: rlm_sql_oracle: ORA-01403: no data found

so thats thwe error. lets look to see why (debug tells us!)

> (31) sql: EXPAND SELECT GroupName FROM usergroup WHERE
> UserName='%{SQL-User-Name}'
> 
> (31) sql:    --> SELECT GroupName FROM usergroup WHERE UserName=''

there.

SELECT GroupName FROM usergroup WHERE UserName=''

I bet if you go onto the database server and run that query, you will get the
same result. no answers.  so, why is UserName='' ?  well, look a couple of
lines up and the server debug tells you what it is doing

EXPAND SELECT GroupName FROM usergroup WHERE UserName='%{SQL-User-Name}'

so, obviously, UserName='%{SQL-User-Name}' enumerated to ''   - so, you need to 
fix your sql config in FreeRADIUS to ensure that %{SQL-User-Name} is mapped to something
that actually exists....so you need to go through the debug - and not just look at the 
error bit...go back a few more dozen lines and you'll see what the request looks
like...and therefore what happens to the values.... eg whether Stripped-User-Name
is actually populated etc etc.


alan


More information about the Freeradius-Users mailing list