Custom webgui for user manager
-
Hi, I'm looking for a way to create a custom webgui for some functions in user manager only. Is the only way about it via package development?
-
Hi,
If it's just for you, no package building is needed. Making a package just adds to the complexity.
You can use exiting packages, so you can learn how to add menus into the pfSense GUI menu, which will bring you to your 'page' where you do your own 'user' stuff.
Btw :
Some serious knowledge about PHP, and how the GUI of pfSense is essential.
The source code will be your manual. -
Thanks for the prompt & concise reply!
I'm looking to create a basic webgui to manage my premise's guest wifi portal. The current rough idea involves a custom webgui to create user accounts and determine their expiration dates via a drop down menu.
I tried using the captive portal and its voucher system but it's not what I'm looking for in managing the guests wifi access.
Is there a place where I can start learning how to modify existing packages for these purposes?
-
@kenny-t said in Custom webgui for user manager:
I tried using the captive portal and its voucher system but it's not what I'm looking for in managing the guests wifi access.
Captive Portal has the ability to e.g. use FreeRadius as a backend. Radius can use MySQL or LDAP as supporting database. If you' build on top of that (or upload custom portal pages with added PHP etc.) you could dock it to an external application. So for example you could set up your "admin GUI to manage users" with some framework that also utilizes Radius/LDAP or Radius/MySQL and then dock pfSense portal to that external Radius/SQL or Radios/LDAP instance and you'd have your guest portal without any modifications on pfSense itself.
-
@kenny-t said in Custom webgui for user manager:
Is there a place where I can start learning how to modify existing packages for these purposes?
As it is open source .... github pfsense.
There is a solution where you don't have to look at pfSense at all.
You use a captive portal. Activate it on pfSense and you're close to done.
As the identification mechanise,, don't use the build in user manager, but Freeradius. It's a pfSense package. Read all about how to use Freeradius and have it use a SQL 'scratchpad' storage.
Now, all you have to is making a front end that stores user credentials into the SQL database.
That looks very much like any other (a couple of billion) web site on the Internet. They are nearly all based on a web server, a bunch of PHP scripts and a SQL back end.
Now, all you have to do is learning how (Free)Radius works .... that's a though one, but still far more easier as learning what pfSense is/does from a programming point of view.