On Wed, 27 Aug 2003, Ali Gunduz wrote:

> Hi,
>
> We have a problem with getting the group name into Group attribute from
> SQL and then checking it in users file.
>
> authorize module setup is like this:
>
> authorize {
>       preprocess
>       chap
>       mschap
>       suffix
>       sql_pgsql
>       files
> }
>
> user <-> group matching info is stored in Postgresql.
>
> A sample entry (Id field not show) is like below
>
> username     groupname
> --------     ---------
> foo          bar
>
>
> We want to assign reply A/V pairs per group and we want
> to do it in users file.
>
> A sample users file entry is below
>
> DEFAULT Group == "bar"
>       Cisco-AVPair = "ip:addr-pool=bar",
>       Fall-Through = Yes
>
> As far as I understand from my debuging sessions;
> Freeradius (0.8.2 is our version) does NOT assign a value for internal
> attribute "Group" after an SQL query on the subject username.

You should use the Sql-Group attribute instead of the Group attribute.

>
> So we're unable to make any checks in users file per group basis.
>
> We do NOT want to store ANY reply A/V pair in an SQL table. This why
> we're looking for a solution in users file.
>
> Thanks..
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

--
Kostas Kalevras         Network Operations Center
[EMAIL PROTECTED]       National Technical University of Athens, Greece
Work Phone:             +30 210 7721861
'Go back to the shadow' Gandalf

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to