Hello 流 沙,

in the code it use the pid of the device (https://github.com/inverse-inc/packetfence/blob/devel/lib/pf/firewallsso.pm#L55), so if you want to see the firstname you need to do a check in the person table.

So just after https://github.com/inverse-inc/packetfence/blob/devel/lib/pf/firewallsso.pm#L55 you can do the following:

use pf::person;

my $person_info = pf::person::person_view($node->{pid});

$username = $person_info->{firstname};



Regards
Fabrice


Le 18-11-16 à 05 h 12, 流 沙 via PacketFence-users a écrit :

Hi all,

I want to use the value of the firstname field as the SSO display name. How should the Username format be written?

Thanks



_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to