<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CP+FreeRadius+MySQL - Login page to let users to reset password]]></title><description><![CDATA[<p dir="auto">Hi.<br />
I have configured pfsense + captiveportal + freeradius + mysql + vhosts.<br />
i would like to permit users to change their own password through a web page stored in pfsense.</p>
<p dir="auto">i have created a table in "radius" db named "resetpsw" with 2 column: "username" and "reset". every user in "radcheck" table has a record in this table with the corresponding username and a "reset" value set to "0" or to "1" to force him to reset the password. (I manually change the value in the db to force him to reimputate a new password)</p>
<p dir="auto">My problem now is to insert the correct code in the captiveportal login page to check, before authenticate him, if the username has the "reset" value to "1" and redirect him to the reset password page.<br />
Any suggestions?</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.netgate.com/topic/71902/cp-freeradius-mysql-login-page-to-let-users-to-reset-password</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 21:36:36 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/71902.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Jul 2014 13:27:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CP+FreeRadius+MySQL - Login page to let users to reset password on Wed, 30 Jul 2014 15:13:14 GMT]]></title><description><![CDATA[<p dir="auto">hello,<br />
thanks for the reply.<br />
with some tests I have already managed to create a PHP page where entering credentials, it is checked whether the user must change his password (with the table "resetpsw"). Searching the internet I found a code to establish a connection to mysql and change the password.<br />
I do not know how to integrate this code in the login page and adapt it to run before the action $PORTAL_ACTION$ that authenticates the user.<br />
thanks</p>
]]></description><link>https://forum.netgate.com/post/475170</link><guid isPermaLink="true">https://forum.netgate.com/post/475170</guid><dc:creator><![CDATA[dimoz]]></dc:creator><pubDate>Wed, 30 Jul 2014 15:13:14 GMT</pubDate></item><item><title><![CDATA[Reply to CP+FreeRadius+MySQL - Login page to let users to reset password on Wed, 30 Jul 2014 14:06:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Sorry to say, but there is no work around for this:<br />
Write your own PHP code that a user can 'visit' from the login page.<br />
This extra page should communicate with your radius server.</p>
<p dir="auto">pfSense itself is a boatload of examples how to do so - look in the scripts already present.</p>
]]></description><link>https://forum.netgate.com/post/475145</link><guid isPermaLink="true">https://forum.netgate.com/post/475145</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Wed, 30 Jul 2014 14:06:56 GMT</pubDate></item></channel></rss>