Captive portal auto change user's password
-
Hello,
I use pfsense and captive portal to authenticates wireless user. I want to change a user's password everyday to improve security.
Can someone help me to create a script that change the password and send a email with the new password?
Thank's in advance.
-
hello !
Easy to change the pasword in a file and send it by mail, but how
to generate the new password? -
pwgen?
-
hello !
Easy to change the pasword in a file and send it by mail, but how
to generate the new password?Did you know how I can change the captive portal password for a user?
-
do you use the local user manager?
You need to write a script to read the file and update with new password and email it to them. Where do you put user email? Pfsense local user doesn't have field for email. fullname maybe? or username itself.
But I think, emailing a password everyday seems a little to much, maybe 20-30 users is ok..
BTW, if you interested to create a bounty about this do contact me.
-
do you use the local user manager?
Yes, I do.
Where do you put user email?
In fact, I use pfsense as a wireless access point form external people. Then, I have only one user on the local user manager. And I need to send to password only to one fixed email address like reception@mysociety.com.
It's probably really simple but I don't know how to do it.
-
U will need an external mysql data base and a script to do that. I have a question for u:
If u want that the cp change the user pass every day and send it to email how u will be able to check your email to see the new pass needed to access the cp????
Maybe is better to create a user for u and another user and pass for the rest. -
In fact, I use CP only for wireless user. Then, I just need to send a email for a user that user wired network.
I'll try to explain. I have a wired and wireless network for my company. I use PF and Cp only for external people of my company. For some security policies, I need to change the CP password everyday and send the new password to the reception email. Then, when a external person come to the reception, the receptionist can give the new password of the day.
To do this, did I realy need a external mysql database? can't I create and cron job to launch a scrit to change the local database?