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

    Captive Portal with LDAP Active Directory

    Scheduled Pinned Locked Moved Captive Portal
    9 Posts 2 Posters 2.4k Views 2 Watching
    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.
    • A Offline
      aspiringnetworkadmin
      last edited by

      Good day guys. I'm newbie here.

      I have a problem on my pfsense. I have a Active Directory LDAP and I bind it on my pfsense(Working good) then I configure my Captive Portal on my pfsense. My problem is if I enable my Captive Portal the login page wont appear on my browser and because of that I can't login to have access on my internet. Can someone help me with this? TIA.

      P.S. my DHCP and DNS is on my Window Server and I already disable the DHCP Server and DNS Resolver, Forwarder on my pfsense.

      1 Reply Last reply Reply Quote 0
      • A Offline
        ahsunh
        last edited by

        hello,
        please note my point.

        1. LDAP binding in captive portal is for authentication purpose if you not using local pfsense user credential information.
          2.for Web login URL your DNS should be you pfsense gateway for example : 192.168.1.1(if your pfsense local IP.
        2. for using windows based DHCP and DNS you use DHCP relay settings available in pfsense option.search google about DHCP relay option when using windows based DHCP or DNS services.

        For my recommendation : enable DNS resolver or use DHCP of pfsense instead of windows server DHCP.

        Thanks

        A 3 Replies Last reply Reply Quote 1
        • A Offline
          aspiringnetworkadmin @ahsunh
          last edited by

          @ahsunh I'll try this one Sir. Thank you.

          1 Reply Last reply Reply Quote 0
          • A Offline
            aspiringnetworkadmin @ahsunh
            last edited by

            @ahsunh it didnt work Sir.

            1 Reply Last reply Reply Quote 0
            • A Offline
              aspiringnetworkadmin @ahsunh
              last edited by

              @ahsunh update Sir. my login portal already appeared on my browser but the problem is everytime I login my user credentials(from LDAP) I still can't access internet. BUT if I disable my Captive Portal my internet is good and I can browse any sites. Any idea Sir?

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                ahsunh @aspiringnetworkadmin
                last edited by

                @aspiringnetworkadmin See my below point
                1 . Check your captive portal interface IP DNS or gateway is properly set on DHCP interface of PFsense
                2. Check Interface have proper firewall rules set for allow all traffic
                3. Check Captive portal is default pfsense page or any customization in it.
                4. check LDAP user is properly authenticated via user credentials.

                For information when login captive page after that ping google.com or 8.8.8.8 to verify browser get through IP or DNS resolver

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  aspiringnetworkadmin @ahsunh
                  last edited by

                  @ahsunh Hi Sir how to perform this 3rd and 4th steps? Sorry Sir I'm just confuse.

                  1. Check Captive portal is default pfsense page or any customization in it.
                  2. check LDAP user is properly authenticated via user credentials.
                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    ahsunh @aspiringnetworkadmin
                    last edited by

                    @aspiringnetworkadmin
                    Point 3 = user connect to your captive interface the login page shows or not properly if customization it can not show or not login properly to send request to your LDAP server

                    Point 4 = go go Diagnostic > Authentication and check your credentials working or not via Pfsense to LDAP server by selecting your LDAP database on drop box.

                    A 1 Reply Last reply Reply Quote 0
                    • A Offline
                      aspiringnetworkadmin @ahsunh
                      last edited by

                      @ahsunh Thank you for the reply Sir. I already solve the problem. Thanks again. God bless!

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