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

WebGUI Login Local Database working when Radius is working

Scheduled Pinned Locked Moved webGUI
11 Posts 2 Posters 4.1k 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
    jimp Rebel Alliance Developer Netgate
    last edited by Aug 31, 2016, 8:34 PM

    Local database is used if an error is received from the RADIUS server, which includes a login failure. Otherwise how could you recover if the RADIUS server was actually up/responding but rejecting requests improperly?

    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

    Need help fast? Netgate Global Support!

    Do not Chat/PM for help!

    1 Reply Last reply Reply Quote 0
    • D
      djamp42
      last edited by Sep 1, 2016, 1:02 AM

      Okay but in my case I'm not receiving an error. It's authenticating users via the radius server and allowing me to login to the webgui. it's just also allowing the local admin account to login.

      Looking at the system log i do not see any radius errors. Is there somewhere else i should be looking? Authentication in diag. also works perfectly fine and shows my account assigned to "admins" group.

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Sep 2, 2016, 1:44 PM

        With the admin user or other users as well? IIRC the admin user is a special case, but I'd have to trace out the code to check for sure.

        The usual way this happens is, try to login, get a failure from the RADIUS server (e.g. auth failed because the password is wrong or that user doesn't exist), at which point it allows the local login.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • D
          djamp42
          last edited by Sep 2, 2016, 11:14 PM

          I only have the admin local user, i have not tired others. I will try next week.

          the usual way this happens is, try to login, get a failure from the RADIUS server (e.g. auth failed because the password is wrong or that user doesn't exist), at which point it allows the local login.

          So all i have to do is try a random login that fails with radius and it will fall back to local?

          If the admin user is a special case that makes sense.  If all local users allowed to login after a failed radius login attempt, that seems a bit too vulnerable to me. I can understand if the radius server is not responding to allow ALL local users, but a failed attempt is a bit too much IMO.

          1 Reply Last reply Reply Quote 0
          • D
            djamp42
            last edited by Sep 6, 2016, 2:02 PM

            I just tested this.  With Radius selected both Radius and Local User Database are allowed to login.

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Sep 6, 2016, 6:00 PM

              Following along in the code, it always checks both the configured auth server and the local database for a GUI login. If either one succeeds, then the login is allowed. It doesn't wait for a fallback.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • D
                djamp42
                last edited by Sep 6, 2016, 8:31 PM

                Is there any desire for a fallback option from the pfsense team? I could organize a bounty for the changes but if it's just going to be a patch rather then in base I would rather just hack something together myself.

                1 Reply Last reply Reply Quote 0
                • J
                  jimp Rebel Alliance Developer Netgate
                  last edited by Sep 6, 2016, 8:33 PM

                  Why would it be necessary? Under what circumstances would that be required or preferred?

                  If you don't have any other local accounts and keep the admin password synchronized (or randomized for that matter, and secured properly) there is no downside to the current method.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • D
                    djamp42
                    last edited by Sep 7, 2016, 7:27 PM

                    The issue is sometimes i have someone who isn't me logging into the pfSense with the admin/local account. (pfSense cannot reach the radius server/ISP Down) Once they have this login, they can log into it regardless if radius is working or not.

                    If fall-backed worked, as long as the radius server was responding that admin password is useless.  I have to worry a lot less that all my pfsense's admin passwords are secure because they won't work if radius is responding.

                    The only proper solution i see currently is have all my pfsense's admin password be different. This is like 100+ for me, so that's another database i have to manage and keep secure. Even if i did do this, i still think it's slightly more secure to have radius be the primary and fall back to local, as it's one or more less account's that can be used to access the system.

                    I'm interchanging admin/local users here, if admin was a special account and all other local users were fall-backed that would be fine too, as i would never give out the admin account to anyone.

                    1 Reply Last reply Reply Quote 0
                    • J
                      jimp Rebel Alliance Developer Netgate
                      last edited by Sep 12, 2016, 3:03 PM

                      Still doesn't make much sense to me. Ideally they should all be different anyhow and tracked separately (and random, secure, etc). Password managers are tailor made for that role. Perhaps that's why I'm not seeing the benefit – doing what you suggest for the reason you suggest would enable poor security practices.

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      11 out of 11
                      • First post
                        11/11
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received