• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Oct 27, 2010, 10:54 AM Oct 27, 2010, 9:36 AM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Oct 27, 2010, 2:40 PM

      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 Oct 27, 2010, 4:38 PM

        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
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received