The pfSense Store

Author Topic: Captive portal auto change user's password  (Read 4144 times)

0 Members and 1 Guest are viewing this topic.

Offline jithurbide

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Captive portal auto change user's password
« on: May 08, 2008, 06:18:18 am »
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.


Offline marcoof

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Captive portal auto change user's password
« Reply #1 on: May 10, 2008, 11:51:40 am »
hello !

Easy to change the pasword in a file and send it by mail, but how
to generate the new password?

Offline buraglio

  • Full Member
  • ***
  • Posts: 150
  • Karma: +0/-0
    • View Profile
    • http://www.buraglio.com/nick/
Re: Captive portal auto change user's password
« Reply #2 on: May 19, 2008, 02:43:10 pm »
pwgen?

Offline jithurbide

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Captive portal auto change user's password
« Reply #3 on: May 22, 2008, 12:41:15 am »
Quote
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?

Offline aneip

  • Jr. Member
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: Captive portal auto change user's password
« Reply #4 on: June 30, 2008, 09:49:27 pm »
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.

Offline jithurbide

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Captive portal auto change user's password
« Reply #5 on: July 07, 2008, 03:48:03 am »
Quote
do you use the local user manager?

Yes, I do.

Quote
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.

Offline ginosteel

  • Full Member
  • ***
  • Posts: 138
  • Karma: +0/-0
    • View Profile
Re: Captive portal auto change user's password
« Reply #6 on: July 27, 2008, 05:22:32 am »
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.

Offline jithurbide

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Captive portal auto change user's password
« Reply #7 on: August 14, 2008, 12:52:56 am »
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?