Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Captive portal auto change user's password

    Scheduled Pinned Locked Moved Captive Portal
    8 Posts 5 Posters 6.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jithurbide
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • M
        marcoof
        last edited by

        hello !

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

        1 Reply Last reply Reply Quote 0
        • B
          buraglio
          last edited by

          pwgen?

          https://www.forwardingplane.net/

          1 Reply Last reply Reply Quote 0
          • J
            jithurbide
            last edited by

            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?

            1 Reply Last reply Reply Quote 0
            • A
              aneip
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • J
                jithurbide
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • G
                  ginosteel
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • J
                    jithurbide
                    last edited by

                    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?

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.