Add CP users from php command
-
Hello everyone
I need to integrate WHMCS with pfsense and my goal is to write a whmcs module that will create/delete a user from a remote location.
Wich are the commands from php line to add/delete users from cp database?I`ve noticed also if the captiveportal.html is edited and for example we need to put some php code pfsense it will not interpret it.
-
You'd be much better off handing off the auth to a RADIUS server, there are many ways to get users into and out of a mysql db that wouldn't involve remotely executing commands on a firewall. :-)
-
let`s say that i dont want to execute custom commands. For example i want to let "no auth" on CP and do some scripts for check if a client is active or no and after that redirect them to the requested page!