something like huntgroups?
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Tue Jul 2 13:20:59 CEST 2013
On 2 Jul 2013, at 12:19, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:
>
> On 2 Jul 2013, at 12:15, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:
>
>>
>> On 2 Jul 2013, at 11:57, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
>>
>>> On 02/07/13 11:37, Arran Cudbard-Bell wrote:
>>>>
>>>> On 2 Jul 2013, at 08:53, Phil Mayers <p.mayers at imperial.ac.uk>
>>>> wrote:
>>>>
>>>>> On 07/02/2013 07:52 AM, Arran Cudbard-Bell wrote:
>>>>>
>>>>>> This may work for 2.x.x but definitely wont't work for 3.0 which
>>>>>> uses direct DICT_ATTR pointer comparisons in some places (instead
>>>>>> of comparing vendor/attribute number).
>>>>>
>>>>> So... what *can* you do with Vendor-X-Attr-Y?
>>>>
>>>> Use it to figure out which dictionary entries you're missing.
>>>
>>> I was hoping for something more specific than that ;o)
>>
>> It appears Alan has already done what I just suggested below.
>>
>> update reply {
>> Vendor-1-Attr-2 := 0x01
>> }
>>
>> if (&reply:Vendor-1-Attr-2) {
>> ok
>> }
>>
>> (0) update reply {
>> (0) Vendor-1-Attr-2 := 0x01
>> (0) } # update reply = notfound
>> (0) ? if (&reply:Vendor-1-Attr-2)
>> (0) ? if (&reply:Vendor-1-Attr-2) -> TRUE
>> (0) if (&reply:Vendor-1-Attr-2) {
>> (0) - entering if (&reply:Vendor-1-Attr-2) {...}
>> (0) [ok] = ok
>> (0) - if (&reply:Vendor-1-Attr-2) returns ok
>
> Or the condition stuff is still message up...
*messed
>
> Taking out the update statement I still get:
>
> (0) ? if (reply:Vendor-1-Attr-2)
> (0) ? if (reply:Vendor-1-Attr-2) -> TRUE
> (0) if (reply:Vendor-1-Attr-2) {
> (0) - entering if (reply:Vendor-1-Attr-2) {...}
> (0) [ok] = ok
>
Ok, just broken for unknown attributes:
(0) update reply {
(0) ? if (reply:User-Name)
(0) ? if (reply:User-Name) -> FALSE
(0) policy filter_username {
Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team
More information about the Freeradius-Users
mailing list