Yes I have read that part and also seen the code examples.
It does not scale well to hardcode what Vlan a user is a member of in
the custom.pm.
The problem with the code examples is that i only get a node object,
and can do stuff on the node. That means that the
username is what i get but i would need the whole user, so i could for
example use the notes field of the user to send the user to
diffrent costomVlans.
I probably will have to implement something that reads a flatfile with
the usernames and customvlans, and then
edit that flatfile for every user i add.
Anyone out there that has done this, and has a good soloution for it?
Best Regards!
Hi Martin,
We are using something similar but via SSID. Take a look at
/usr/local/pf/lib/pf/vlan/custom.pm.
There's a bunch of examples in that file (including by username) , also
take a look at the Admin Guide and search for Custom VLAN assigment.
-Antonio
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users