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

    pfSense Plus can't work with Google LDAP

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 4 Posters 1.6k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by jimp

      Google recently changed to require SNI for LDAP, and the OpenLDAP client on pfSense Plus didn't support that yet (#11626).

      The client in the upcoming 23.01 release has been upgraded so it should work again there. If you are comfortable running a snapshot, you could try out the latest 23.01 beta snapshot and see if it works for you there.

      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!

      M 2 Replies Last reply Reply Quote 1
      • M
        marceloengecom @jimp
        last edited by

        @jimp Thanks!!!

        I will try update to 23.01 beta.

        Another question: pfSense 23.01 will be run over FreeBSD 14.0?

        https://docs.netgate.com/pfsense/en/latest/releases/versions.html

        Regards

        Marcelo Costa

        telefone: (51) 3022.5100
        e-mail: marcelo@comdesk.com.br
        web-site: www.comdesk.com.br

        stephenw10S 1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator @marceloengecom
          last edited by

          @marceloengecom said in pfSense Plus can't work with Google LDAP:

          Another question: pfSense 23.01 will be run over FreeBSD 14.0?

          It's built on FreeBSD main, currently 14.

          23.01-BETA (amd64)
          built on Fri Jan 06 06:04:43 UTC 2023
          FreeBSD 14.0-CURRENT
          
          1 Reply Last reply Reply Quote 1
          • M
            marceloengecom @jimp
            last edited by

            @jimp

            Hello,

            I updated it to 23.01-BETA, but the same error remains.

            "Could not connect to the LDAP server. Please check the LDAP configuration."

            Marcelo Costa

            telefone: (51) 3022.5100
            e-mail: marcelo@comdesk.com.br
            web-site: www.comdesk.com.br

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              I just double checked again with a packet capture and the LDAP client is definitely sending SNI in its SSL requests now so if yours isn't working then it isn't related to the Redmine issue I linked above.

              You might try taking a packet capture of the LDAP attempt and opening it up in Wireshark, you might notice something off in the exchange that may give you a hint.

              Or it might be a mismatch of some sort between the client certificate you've picked in the LDAP settings and what Google expects. Hard to say from the error it gave. Google has a bunch of docs on how it all works, though.

              We have some debug options in for LDAP now but they are more focused on the query part, not the connection part, so they are probably not too helpful. You can still try, though, by going to Diag > Auth in the GUI, pick the Google LDAP entry, enter a user/pass, check debug, then click Test. Afterward, look in the main system log and see what it shows.

              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!

              M 3 Replies Last reply Reply Quote 1
              • M
                marceloengecom @jimp
                last edited by

                @jimp

                Hello!

                The Authentication field (Diag > Auth in the GUI), don't show anything on the system logs.

                The packet capture, after tryed connect with unsucess, return the folowing image:
                pfsense-packetsCaptured.png

                Marcelo Costa

                telefone: (51) 3022.5100
                e-mail: marcelo@comdesk.com.br
                web-site: www.comdesk.com.br

                1 Reply Last reply Reply Quote 0
                • M
                  marceloengecom @jimp
                  last edited by

                  Hi @jimp

                  This is work with stunnel. Now I can authenticate in pfSense and Captive Portal, but dooes not work with my Proxy Squid.

                  Squid Authentication General Settings:
                  Authentication Method: LDAP
                  Authentication Server: 127.0.0.1
                  Authentication server port: 1636

                  Squid Authentication LDAP Settings
                  LDAP version: 3
                  Transport: TCP - Standard
                  LDAP Server User DN: UserBindGoogleCredentials
                  LDAP Password: PasswordBindGoogleCredentials
                  LDAP Base Domain: Base DN: dc=MyDomain,dc=com,dc=br
                  LDAP Username: uid
                  LDAP Search Filter: uid=%s

                  Can I help me?

                  Regards,

                  Marcelo Costa

                  telefone: (51) 3022.5100
                  e-mail: marcelo@comdesk.com.br
                  web-site: www.comdesk.com.br

                  1 Reply Last reply Reply Quote 0
                  • M
                    marceloengecom @jimp
                    last edited by

                    @jimp

                    Since it didn't work in Squid, I'm trying again whith pfSense 23.01-BETA native authentication.

                    The following error are showed in logs:
                    /system_authservers.php: ERROR! ldap_get_user_ous() could not bind to server

                    Regards,

                    Marcelo Costa

                    telefone: (51) 3022.5100
                    e-mail: marcelo@comdesk.com.br
                    web-site: www.comdesk.com.br

                    1 Reply Last reply Reply Quote 0
                    • D
                      darnoldvcs
                      last edited by

                      @jimp I Just had this issue.

                      pfSense Plus 23.05.1 would not connect to Google LDAP following the documented pfSense Plus configuration: https://docs.netgate.com/pfsense/en/latest/recipes/auth-google-gsuite.html

                      Followed the CE/Community edition instructions using Stunnel worked first time!

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Was that the first time you tried to configure it? Was it working in 23.05 and then fail when you upgraded for example?

                        1 Reply Last reply Reply Quote 0
                        • D
                          darnoldvcs
                          last edited by

                          @stephenw10 Yes, that was the first time. I did not try using Google LDAP until after I upgraded to 23.05.1.

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