[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: rlm_perl added pairs disapear after eap authentication
From:       Matthew Newton <mcn4 () leicester ! ac ! uk>
Date:       2012-05-31 17:29:44
Message-ID: 20120531172944.GD3146 () rootmail ! cc ! le ! ac ! uk
[Download RAW message or body]

On Thu, May 31, 2012 at 01:51:43PM +0200, Peter Kaagman wrote:
> I've tried several things to resolve this but with no result. One of
> which was running the perl code in a post-auth event. This resulted in
> something like 250 requests and the client not connecting.,

On the understanding (from above) that everything is working
except your perl code that is not setting the VLAN correctly, you
could try -

1. Remove everything related to the perl code, so the server
authenticates users correctly, but no VLAN is set.

2. Add something like

  update reply {
    Tunnel-Type := 13
    Tunnel-Medium-Type := 6
    Tunnel-Private-Group-Id := 999
  }

  to the outer post-auth section.

3. Verify that the server a) works, and b) sends the above
attributes in the Access-Accept (check the debug output).

4. Only after all the above, replace the update reply {} with
rlm_perl, and work on that. At this stage you know that setting
the AVPs there works, so if it's broken it must be your perl code
or rlm_perl settings :-)

Cheers,

Matthew



-- 
Matthew Newton, Ph.D. <mcn4@le.ac.uk>

Systems Architect (UNIX and Networks), Network Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic