Hi Sean,

> This FAQ article outlines modifying custom.pm
> /usr/local/pf/lib/pf/vlan/custom.pm to bump users in to a specific VLAN
> based on their node category.  I would like to have the VLAN assigned by
> the authentication module that the user chose at the captive portal.  Is
> that practical?
>
> I have 2 LDAP modules – One for students, one for staff.  The only
> difference between the two is the AD Group membership that it looks
> for.  I would like all staff in VLAN 508 and students in VLAN 509.
You can categorize the node depending of the authentication module, it 
is already possible and quite easy to do.  Look in lib/pf/web/auth.pm 
for the sub getNodeAttributes.  You need to redefine it in your ldap 
modules, and assign the proper category.  Then, in vlan/custom.pm, just 
map the category to the right VLAN.

Hope it helps!

-- 
Francois Gaudreault, ing. jr
[email protected]  ::  +1.514.447.4918 (x130) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to