Sean,

Did you get this going?  Can you share what/where you added the sub 
getNodeAttrib into the auth file?

Thanks

Dave


David Bulanda
Network Services Manager
Indiana Tech



-----Original Message-----
From: Sean Nelson [mailto:[email protected]] 
Sent: Thursday, August 02, 2012 2:35 PM
To: [email protected]
Subject: Re: [PacketFence-users] VLAN assignment by AD Group membership

Sounds like exactly what I was looking for.  Thank you!

-----Original Message-----
From: Francois Gaudreault [mailto:[email protected]] 
Sent: Thursday, August 02, 2012 1:34 PM
To: [email protected]
Subject: Re: [PacketFence-users] VLAN assignment by AD Group membership

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
--
*** DoubleCheck identified this as CLEAN. Give feedback:
*** This is SPAM: http://dcem.cccp.com/ms?k=RdHX6lBg5CGX
*** More options: http://dcem.cccp.com/md?k=RdHX6lBg5CGX

------------------------------------------------------------------------------
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