Thanks for the replay. Your example was helpful and helped me to make a few modifications to the packetfence code so I can accomplish my objectives. (I would put up the code myself, however I am not as familiar with the github process yet)
Attached are a modified filer.pm and person.pm files from packetfence 4.3 for you to evaluate and possibly implement in future releases. I basically added another filter item to look at called "owner", that is the owner of the device being looked at. Specifically I want to look at the owner's attributes. What I want to look for are specific details of the owner. Instead of having to create a rule for every user whom I want make changes for, I want to modify an attribute of that user, (i.e. custom field 1). In the vlan_filters.conf: [vendor] filter = owner operator = match attribute = custom_field_1 value = staff [2:vendor] scope=NormalVlan role=staff Lupe Silva On Fri, Jun 27, 2014 at 3:49 PM, Durand fabrice <[email protected]> wrote: > Hi Lupe, > > [category] > filter = node_info > operator = is > attribute = category > value = guest > > [robert] > filter = node_info > operator = is > attribute = pid > value = robert > > [arnaud] > filter = node_info > operator = is > attribute = pid > value = arnaud > > [ludovic] > filter = node_info > operator = is > attribute = pid > value = ludovic > > [derek] > filter = node_info > operator = is > attribute = pid > value = derek > > [1:category&(robert|arnaud|ludovic|derek)] > scope = NormalVlan > role = staff > > So each user (robert, ...) with a category guest will be forwarded to the > staff vlan. > > > Fabrice > > Le 2014-06-27 14:18, Lupe Silva a écrit : > > Dear Packetfence team. Thank you for your great work. I installed 4.3 > and I am using the vlan_filters.conf to help me with one of my previous > issues. > > I have one more request that could be a feature request with respect to > vlan_filters > > I have private vlan for our internal users and a guest vlan for guests. > Guests have to register to even have access to the guest network. There > are a few of our guests whom I would like to have access to our private > network without having to create them an internal ID. > The process would be something like this: > User registers with the guest network (using email or sms). > In PF we go into that user and add something to their account, like in the > custom fields. > Then when the user logs in the vlan_filter would check the users > attributes to determine if they need to be in a certain vlan. > > Is this possible to do it today without major code change? > > I am already looking to modify user_parser in pf::vlan::filter. > > > Lupe Silva > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awardshttp://p.sf.net/sfu/Bonitasoft > > > > _______________________________________________ > PacketFence-users mailing > [email protected]https://lists.sourceforge.net/lists/listinfo/packetfence-users > > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > PacketFence-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/packetfence-users > >
filter.pm
Description: Binary data
person.pm
Description: Binary data
------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft
_______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
