On Fri, 14 Jan 2005, Sean wrote:

> >"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> >> how do I access the second, third, etc. value for a duplicate attribute
> >> in sql.conf ?
> >> I have read doc/variables.txt and I did not figure out.
> >> Can it be done ?
>
> >  In the current CVS snapshot.  Not in 1.0.1>
>
> >  Alan DeKok.
>
> I found the above in the January 2005 archives. Perhaps my problem
> is too different, but I now have the current CVS snapshot
> (radiusd: FreeRADIUS Version 1.1.0-pre0, for host i686-pc-linux-gnu,
> built on Jan 14 2005 at 14:29:35), have built and run it, and it isn't
> helping with my problem. I have a vendor-specific attribute that I need
> to repeat several times. The freeRadius server still only sends it one time.
>
> For example, my dictionary file looks like:
> VENDOR          BB                 11
> BEGIN-VENDOR    BB
> ATTRIBUTE       BB-QOS             20     string
> ATTRIBUTE       BB-RATE-LIMIT      25     integer
> ATTRIBUTE       BB-ACL-ENTRY       61   string
> END-VENDOR      BB
>
> And my users file looks like:
>
> pepsi Auth-Type:= Local, User-Password == "coke"
>         BB-ACL-ENTRY = "deny in ip from any to 10.0.8.10/24 30-35 log",
>         BB-ACL-ENTRY = "deny in ip from any to 10.0.9.20/24 10-20 log",
>         BB-ACL-ENTRY = "deny in ip from any to 10.0.10.30/24 15, 20 log",
>         BB-ACL-ENTRY = "deny in ip from any to 10.0.11.40/24 17 log",
>         BB-ACL-ENTRY = "permit in ip from any to 10.0.12.50/24 20-50, 18"
>
> The server (in -X, debug mode) always only sends the first attribute. I've
> tried interspersing the BB-ACL-ENTRY with the other two attributes, but it
> still sends just the first BB-ACL-ENTRY attribute and then the other two
> attributes.  Was this supposed to work in the current snapshot or is my
> problem different or can my problem be solved in some other way?
>
> Thank you very much.
> sean
>
>
The problem is in your users file.  Read man 5 users.  Look at the
definiation of Attribute = Value vs Attribute += Value.



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

Reply via email to