Fallback LDAP Attribute Value

Steven Carr steven.carr at sunderland.ac.uk
Tue Jul 7 16:50:43 CEST 2009


On 7/7/09 15:48, Steven Carr wrote:
> Hi Ivan
> 
> On 7/7/09 14:29, Ivan Kalik wrote:
>> Use unlang. Put something like this in post-auth:
>>
>> if(reply:Tunnel-Private-Group-ID == "") {
>>      update reply {
>>           Tunnel-Private-Group-ID = "666"
>>      }
>> }
> 
> I've tried this in both the default and inner-tunnel post-auth sections
> and neither returned the value 666 in the Radius Accept. Do I need to
> add anything as a placeholder in the users config file?

Digging into debug came back with:

> ++? if (reply:Tunnel-Private-Group-ID == "")
>     (Attribute reply:Tunnel-Private-Group-ID was not found)

Steve

-- 
Steven Carr
Systems Development Officer
SLS/ITS/Systems - (0191) 515 3953

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20090707/3f6be0f3/attachment.pgp>


More information about the Freeradius-Users mailing list