Re: Can't get rlm_sql to authorize, what's wrong with my query?

This is a discussion on Re: Can't get rlm_sql to authorize, what's wrong with my query? within the FreeRADIUS Users forums, part of the Networking and Network Related category; Matthew Schumacher wrote: > Can someone look at my query and tell me what is wrong? > > ----------------------------------------------------------- > db=&...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2005
Matthew Schumacher
 
Posts: n/a
Default Re: Can't get rlm_sql to authorize, what's wrong with my query?

Matthew Schumacher wrote:
> Can someone look at my query and tell me what is wrong?
>
> -----------------------------------------------------------
> db=> select id, username, attribute, value, op from radstart('username');
> id | username | attribute | value | op
> ----+----------+-----------------+----------+----
> 1 | username | User-Password | password | ==
> 5 | username | Auth-Type | Local | :=
> 6 | username | Session-Timeout | 600 | =
> -----------------------------------------------------------


Ok, I'm replying to myself to let others know what the fix is....

The authorize_check_query only expects comparison attributes, and
authorize_reply_query only expects set attributes. In my query above I
combined them and used the same query for both.

In order for this to work you must use something like this:

db=> select * from radstart('username', 'check');
id | username | attribute | value | op
----+----------+---------------+----------+----
1 | username | User-Password | password | ==
2 | username | Auth-Type | Local | :=
(2 rows)

db=> select * from radstart('username', 'reply');
id | username | attribute | value | op
----+----------+--------------------+---------------------+----
6 | username | Session-Timeout | 600 | =


schu

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0