multuple ldap freeradius ssid
Alexander Clouter
alex at digriz.org.uk
Wed May 18 15:21:37 CEST 2011
seb2020 <girard.seb at gmail.com> wrote:
>
> I have test your solution like that :
>
> # defaults
> update reply {
> Tunnel-Type := VLAN
> Tunnel-Medium-Type := IEEE-802
> Tunnel-Private-Group-Id := "unauthorised"
>
> Termination-Action := RADIUS-Request
> Session-Timeout := 300
>
> Acct-Interim-Interval := 3600
> }
>
> if (request:User-Name =~ /^.{3,4}$/) {
> update reply {
> Tunnel-Private-Group-Id := "staff"
> }
> }
> elsif (request:User-Name =~ /^.{7,8}$/) {
> update reply {
> Tunnel-Private-Group-Id := "student"
> }
> }
>
> if (reply:Tunnel-Private-Group-Id != "unauthorised") {
> update reply {
> # Cisco only support a max of 65535
> Session-Timeout := 64800
> }
> }
>
> But, if I test with this account : "aaaaaaa" (7 letters), I have a reponse
> like that : Tunnel-Private-Group-Id:0 = "staff". This is not correct
>
> And I have place this code in this file /site-enabled/default in the section
> post-auth. Is that correct ?
>
Without the output from 'radiusd -X', I cannot help you.
Regards
--
Alexander Clouter
.sigmonster says: Am I accompanied by a PARENT or GUARDIAN?
More information about the Freeradius-Users
mailing list