Hello Diego,
you are probably true.
I don't have a setup to test it but if your profile match then you fix
an issue.
So if you want you can do a pull request on the packetfence' github repo
with the fix.
https://github.com/inverse-inc/packetfence
Regards
Fabrice
Le 2015-04-03 05:45, Diego Bonfigli a écrit :
> Hi all,
> I think there is a bug in the sub getNodeInfoForAutoReg() in vlan.pm file.
>
> I've got this profile:
>
> [dot1x]
> locale=
> filter=connection_type:Ethernet-EAP
> description=machine auth via dot1x
> mandatory_fields=
> sources=fallback-dot1x
> dot1x_recompute_role_from_portal=0
>
>
> In the vlan.pm code, sub getNodeInfoForAutoReg(), at the beginning, (my
> $profile = pf::Portal::ProfileFactory->instantiate($mac,$options);)
>
> my profile filter ("connection_type:Ethernet-EAP") is never matched because,
> gathering the options, the line:
>
> $options->{'last_connection_type'} = $conn_type if (defined($conn_type));
>
> should be:
>
> $options->{'last_connection_type'} = connection_type_to_str($conn_type) if
> (defined($conn_type));
>
>
> if I modify that my profile is correctly matched.
>
> Any comments?
>
> Diego Bonfigli
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users