<?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[Password of the Day]]></title><description><![CDATA[<p dir="auto">Has anyone implemented a Password of the Day-like configuration with pfSense Captive Portal?  There are some firewall solutions that offer POTD as an option, and would love to use a feature like that instead of username/password.</p>
]]></description><link>https://forum.netgate.com/topic/93711/password-of-the-day</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 17:15:40 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/93711.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jan 2016 21:28:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Password of the Day on Tue, 05 Jan 2016 08:50:36 GMT]]></title><description><![CDATA[<p dir="auto">I change some of my passwords weekly, but this could just as easily be done every day if need be.</p>
<p dir="auto">I keep a list of passwords in a text file, with one password on each line. I use a short script (rotatefile.sh) on the RADIUS server to pick up the password from the top of the file and put it at the bottom:</p>
<p dir="auto">#!/bin/sh</p>
<h1><a class="anchor-offset" name="take-first-line-of-wordfile"></a>Take first line of wordfile</h1>
<p dir="auto">pw=<code>head -n 1 /root/wordfile.txt</code><br />
echo "$pw"</p>
<h1><a class="anchor-offset" name="delete-first-line-in-wordfile"></a>Delete first line in wordfile</h1>
<p dir="auto">sed -i 1d /root/wordfile.txt</p>
<h1><a class="anchor-offset" name="append-wordfile-with-word-taken-from-top"></a>Append wordfile with word taken from top</h1>
<p dir="auto">echo $pw &gt;&gt; /root/wordfile.txt</p>
<p dir="auto">I then call this script from within another script which picks up the password from the file and uses it to update the entry for that login on the RADIUS server. Whether you use a flat-file or a SQL backend, either way it works:</p>
<p dir="auto">t4=<code>/root/rotatefile.sh</code></p>
<p dir="auto">The t4 environment parameter can then be used to perform a 'sed' change on your users file or be parsed into your SQL database. As Derelict has suggested, you can post the username on the form itself if you need to.</p>
]]></description><link>https://forum.netgate.com/post/594245</link><guid isPermaLink="true">https://forum.netgate.com/post/594245</guid><dc:creator><![CDATA[muswellhillbilly]]></dc:creator><pubDate>Tue, 05 Jan 2016 08:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to Password of the Day on Tue, 05 Jan 2016 08:10:05 GMT]]></title><description><![CDATA[<p dir="auto">Design your own 'portal login page' with some PHP code.<br />
<a href="http://stackoverflow.com/questions/21377798/how-to-find-current-day-no-in-month-in-php" target="_blank" rel="noopener noreferrer nofollow ugc">This code selects the day number of the month</a> - and thus a hidden user-name-on-that-day. You do this only ones.</p>
<p dir="auto">Define each "user-name-on-that-day" in the pfSense's Local user manager. Each with a password for that unique user (for that day). Every month, fill up you 29/30/31 users with new passwords (POTD).</p>
]]></description><link>https://forum.netgate.com/post/594237</link><guid isPermaLink="true">https://forum.netgate.com/post/594237</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Tue, 05 Jan 2016 08:10:05 GMT</pubDate></item><item><title><![CDATA[Reply to Password of the Day on Mon, 04 Jan 2016 22:59:14 GMT]]></title><description><![CDATA[<p dir="auto">You could just update a RADIUS password and hard-code the username in the form.</p>
]]></description><link>https://forum.netgate.com/post/594171</link><guid isPermaLink="true">https://forum.netgate.com/post/594171</guid><dc:creator><![CDATA[Derelict]]></dc:creator><pubDate>Mon, 04 Jan 2016 22:59:14 GMT</pubDate></item></channel></rss>