Glad it worked.

In the interest of full disclosure, I did not come up with all of that on my 
own.  I received a LOT of assistance from Inverse when we were deploying PF and 
about 99% of that code was given to us by them.

The guys @ inverse are top notch and deserve the credit.

Jake Sallee
Godfather of Bandwidth
System Engineer
University of Mary Hardin-Baylor
900 College St.
Belton TX. 76513
Fone: 254-295-4658
Phax: 254-295-4221
HTTP://WWW.UMHB.EDU


-----Original Message-----
From: Dan Nelson [mailto:[email protected]] 
Sent: Tuesday, October 23, 2012 1:55 PM
To: [email protected]
Subject: Re: [PacketFence-users] captive Portal radius login add to Guest Vlan

Sallee, Stephen (Jake <Jake.Sallee@...> writes:

> 
> > .  I just need an example for the vlan/custom.pm of how to assign 
> > the
category based on what auth method they
> choose. 
> 
> In your module that is doing the authentication there is a subroutine 
> that is
called getNodeAttributes,
> make it look something like this:
> 
> sub getNodeAttributes {
>     my ($this) = @_;
>    my $portalSession = pf::Portal::Session->new();
>    my $session = $portalSession->getSession();
>    return ( category => '*your category here*' ); }
> 
> This will set the category for any user that uses that auth method.  
> Then in
your vlan custom.pm you can return
> the vlan based on that category. REMEMBER! All of this is case 
> sensitive, so
either use an "lc" perl
> statement or make sure your cases are perfect.

That worked perfectly!!  Thank you for you assistance.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free 
today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to