Passthrough MAC additions nightly clean up
-
We have a guest account that has a password that changes every hour, or when you click "change now", that authenticates to the captive portal. We want to clean up the MAC additions every night via cron or something similar. We would be looking only for "guest" user rather than any of our LDAP users. You see the information below checking the MAC additions box in CP setup state: "or send a POST from another system to remove it"
TLDR; how do I remove MAC additions from the CP via a remote call (POST) or a simple command line call?
-
….
TLDR; how do I remove MAC additions from the CP via a remote call (POST) or a simple command line call?Command line using a script ?!
Check out /etc/inc/captiveportail.inc and files like /usr/local/www/services_captiveportal_mac.php
Everything is there so you can write a small php file that iterates over all auto-added registered MAC.