Hi Michael,
>
> I am almost there,
>
> · The device/mac gets added to the “node” table with an
> unregdate 2 hours in the future.
>
> o I am not adding a “person” record since they are only temporary users
>
> · I get the “your registered” web page showing my unregdate 2
> hours in the future
>
> But, the device never get switched from the Registration VLAN to the
> Guest VLAN or gets a Guest VLAN IP address.
Yes, you are almost there indeed. The logs should give you more
information about what's going wrong but I saw at least one thing that
isn't right:
You are not adding person but the node.pid <-> person.pid link is
enforced by the database so the row creation fails because there's no
person.pid matching your node.pid.
$pid = "Guest".$smcunregdate;
$logger->info("Adding guest person $pid");
person_modify($pid, ('notes' => 'Guest'));
$info{'pid'} = $pid;
...
Here it's a person_modify and not a person_add just because it will
create it if it doesn't exist and will not fail if it already exists
(which person_add does).
Test again, if it still doesn't work, look at logs/packetfence.log and
post the details of the error.
Have a nice day!
--
Olivier Bilodeau
[email protected] :: +1.514.447.4918 *115 :: www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
(www.packetfence.org)
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users