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

Reply via email to