Hello Fabrice, thank you for your answer, that is exactly what I was looking for. I also found out that I can additionally override shouldAutoRegister in pf::role::custom in scenarios where I do not want to use a provisioner.
Best regards Korbinian -----Ursprüngliche Nachricht----- Von: Fabrice Durand via PacketFence-users [mailto:packetfence-users@lists.sourceforge.net] Gesendet: Montag, 22. Juli 2019 14:57 An: packetfence-users@lists.sourceforge.net Cc: Fabrice Durand <fdur...@inverse.ca> Betreff: Re: [PacketFence-users] Dynamically lookup and register nodes from an external system 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: korbinian.schm...@fee.de > > > > _______________________________________________ > PacketFence-users mailing list > PacketFence-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/packetfence-users -- Fabrice Durand fdur...@inverse.ca :: +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 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