Hello Schmidt,
we did this king of workflow in PacketFence here:
https://github.com/inverse-inc/packetfence/pull/2667/files
You will just need to adapt the code.
Regards
Fabrice
Le 19-07-22 à 04 h 22, Schmidt Korbinian via PacketFence-users a écrit :
Hello PacketFence users,
I am looking for ways to automatically synchronize pre-registered nodes with an
external system like a database.
One way to achieve this would be an application that periodically calls pfcmd
or the HTTP API to import nodes into PacketFence.
Now I was just wondering if there was a way to dynamically register nodes during the first encounter of their MAC address.
A possible workflow would be:
1. If no node is found for a given MAC address in the PacketFence
database, the system asks the external source if the node is known there (e.g.
with a script that searches for the MAC address in a database table).
2a. When the MAC address is found in the external system, a new node is
created and automatically registered. This way PacketFence can immediately
evaluate the network access (just like it would do with imported nodes).
2b. When the MAC address is not found, the system continues with the normal
flow for unknown nodes (e. g. putting the switch port into the registration
VLAN).
Has anyone ever implemented something similar and can tell me if it possible?
Or should I stick to the periodic update approach?
Thank you and
Best regards
Korbinian Schmidt
F.EE Industrieautomation GmbH & Co KG
In der Seugn 20, 92431 Neunburg v. W.
Email: [email protected]
_______________________________________________
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