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

    Invalid Credential on Capitive Portal

    Scheduled Pinned Locked Moved Captive Portal
    13 Posts 3 Posters 5.2k 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.
    • N
      n3by
      last edited by

      hi,

      just be sure the user is part of Captive Portal Group ( you will find this group already created  ).

      ![2015-09-03 14.41.46.jpg](/public/imported_attachments/1/2015-09-03 14.41.46.jpg)
      ![2015-09-03 14.41.46.jpg_thumb](/public/imported_attachments/1/2015-09-03 14.41.46.jpg_thumb)
      ![2015-09-03 14.41.49.jpg](/public/imported_attachments/1/2015-09-03 14.41.49.jpg)
      ![2015-09-03 14.41.49.jpg_thumb](/public/imported_attachments/1/2015-09-03 14.41.49.jpg_thumb)

      1 Reply Last reply Reply Quote 0
      • P
        peter.millsplymouth.ac.u
        last edited by

        Thanks for the response.

        Check and there was no group for capitive portal.
        So created the group under System:Group Manager
        Then assigned the user to the Capitive portal group

        On the Zones I have setup a zone called Portal, which shows no users.

        Have retried the login procedure and still no joy.
        Still getting the Invalid Credentials message.

        HELP  PLEASE

        group.PNG
        group.PNG_thumb
        user.PNG
        user.PNG_thumb
        zone.PNG
        zone.PNG_thumb

        1 Reply Last reply Reply Quote 0
        • N
          n3by
          last edited by

          ok now check to see if Group have assigned privileges for Portal login.

          ![2015-09-03 15.29.08.jpg](/public/imported_attachments/1/2015-09-03 15.29.08.jpg)
          ![2015-09-03 15.29.08.jpg_thumb](/public/imported_attachments/1/2015-09-03 15.29.08.jpg_thumb)
          ![2015-09-03 15.31.13.jpg](/public/imported_attachments/1/2015-09-03 15.31.13.jpg)
          ![2015-09-03 15.31.13.jpg_thumb](/public/imported_attachments/1/2015-09-03 15.31.13.jpg_thumb)

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

            Note: this is applicable only if your captive portal settings have the "Allow only users/groups with 'Captive Portal Login' privilege set" box ticked. If you're unsure, you can untick this (temporarily) to see if you can log in successfully. If this is the issue, amend the Group settings, as n3by suggests, and add the 'User - Services - Captive portal login' privilege to the group your user(s) belong to.

            1 Reply Last reply Reply Quote 0
            • P
              peter.millsplymouth.ac.u
              last edited by

              OK, making progress thanks

              I can now authenticate, but the browser sits there saying redirceting to my url "www.google.co.uk" but does load the page.

              If I open a new browser tab and click my google bookmark it loads the page.

              What may be the problem??

              If I now wanted to change the suthenication to LDAP what changes would I need to make re the privelliges etc?

              Thanks Guys

              Peter

              1 Reply Last reply Reply Quote 0
              • N
                n3by
                last edited by

                We can't know why your page is not redirected properly because this involve a lot of settings in pfsense or computer.

                For example in my setup I block google & co, advertisers and trackers… with all I can: Squid, pfblocker... so for me it is normal to fail.

                But as long as you are authenticated and can exit to internet captive portal login/authentication looks ok.

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

                  Sounds like you may have wrongly entered the redirection URL (for Google, use 'http://www.google.com').  Otherwise have you set a proxy on your web browser?

                  For AD/LDAP authentication, see here: https://forum.pfsense.org/index.php?topic=44689.0

                  1 Reply Last reply Reply Quote 0
                  • P
                    peter.millsplymouth.ac.u
                    last edited by

                    OK, that sorted the google forwarding out perfectly - thanks

                    On the LDAP authentication, i have set up the LDAP connection to the server and tested the user name etc and this authenticates correctly.

                    I have set up a group LDAP and assigned the privileges as per the url link you gave me. (I think!!)
                    In System: User manager settings I switched the Authentication server from Local to UOPNET, which is our LDAP Service.

                    But when I try to authenticate this comes back with Invalid Credentials again.

                    For info if I try to now login as a local user this works, which to me should not happen.  >:(

                    Please advise.

                    Screen shots attached

                    ![Authentication Server.PNG](/public/imported_attachments/1/Authentication Server.PNG)
                    ![Authentication Server.PNG_thumb](/public/imported_attachments/1/Authentication Server.PNG_thumb)
                    ![LDAP Group Permissions.PNG](/public/imported_attachments/1/LDAP Group Permissions.PNG)
                    ![LDAP Group Permissions.PNG_thumb](/public/imported_attachments/1/LDAP Group Permissions.PNG_thumb)
                    ![LDAP Group.PNG](/public/imported_attachments/1/LDAP Group.PNG)
                    ![LDAP Group.PNG_thumb](/public/imported_attachments/1/LDAP Group.PNG_thumb)
                    ![LDAP Authenticated.PNG](/public/imported_attachments/1/LDAP Authenticated.PNG)
                    ![LDAP Authenticated.PNG_thumb](/public/imported_attachments/1/LDAP Authenticated.PNG_thumb)

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

                      Captive portal authentication is done via a local database or through RADIUS, as I understand it. LDAP is used to authenticate access to the firewall itself. If you install/enable RADIUS services on your Windows DC you can then point the CP to use that server to authenticate your users. That would be my suggestion, unless anyone else has any information I'm not privy to.

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

                        PS: It sounds a little round-the-houses, but if you don't like the idea of making your AD server a Radius server, you can integrate FreeRADIUS with Windows and target the FreeRADIUS server instead: http://wiki.freeradius.org/guide/FreeRADIUS-Active-Directory-Integration-HOWTO

                        1 Reply Last reply Reply Quote 0
                        • P
                          peter.millsplymouth.ac.u
                          last edited by

                          Thanks for your reply.

                          The confusing thing is that on a different machine we have setup PFSense v2.03 and this works perfectly with LDAP authentication.
                          It seems to be the way the software developers have changed the way privilleges are set tp groups that is now causing the issue.

                          Simply before I setup the LDAP connection settings and then Authentication Server set this to use the LDAP - it just worked  :)

                          Why do they have to make things so complicated  >:( >:( >:( >:(

                          I have too many users to make it a local system and I dont really want to go down the road of a Radius server as this is just defeating the object of having LDAP as an option.

                          Has anyone else come across LDAP setup problems??

                          More so, has anyone resolved the issue of group privilleges to LDAP.

                          How the meck do you assign users to a group when you dont know who the heck they are  ::) ::)

                          Thanks
                          Peter

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

                            If RADIUS isn't your thing, then another possible route you could take would be to install a proxy on your pfSense and bind that to your AD domain. This would then require your users to authenticate through the proxy with their Windows credentials before accessing the internet. There are plenty of links showing how this is done. Here are a few:

                            https://vicryhc.wordpress.com/2013/07/08/how-to-setting-squid-on-pfsense-with-authentiaction-ldap-windows/

                            https://forum.pfsense.org/index.php?topic=58700.0

                            http://blog.cadena-it.com/linux-tips-how-to/how-to-setting-squid-on-pfsense-with-authentiaction-ldap-windows/

                            There are many more to be found via Google, of course.

                            You can assign group policies to AD groups via a Squid/Dansguardian combination (the way I've done it). Members of that AD group can then be assigned specific access or non-access through rules you can set up in Dansguardian. Again, you'll find quite a few examples of this on the internet already if you fire up Google.

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