Hello,

i suppose that you set roles based on the registration source, like AD -> Employee and Sponsor -> Guest.

In fact you have to overwrite the vlan id of the isolation vlan, look at the vlan/custom.pm and add function getViolationVlan (copy and paste from vlan.pm).

Now you will be able to write your own test like:

if ($node_info->{'category'} eq 'Employee') {
    return 666;
elsif ($node_info->{'category'} eq 'Guest') {
    return 777;
}


Regards
Fabrice

Le 2014-03-27 12:17, forbmsyn a écrit :
Hi,

I have two types of user: one registered via sponsor, I call it client; the other one is Active Directory user, I call it employee.

After the device being scanned by Nessus and a violation was triggered, I would like to redirect the device to different vlans depends on the type of the login user. For example the client will be switched to isolation_client vlan, while the employee will be switched to isolation_employee vlan. Is there a way to accomplish this?

Thanks a lot in advance.


------------------------------------------------------------------------------


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users


--
Fabrice Durand
[email protected] ::  +1.514.447.4918 (x135) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://packetfence.org)

------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to