Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Add CP users from php command

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      ginosteel
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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. :-)

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • G
          ginosteel
          last edited by

          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!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.