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

Authenticating Users with Google Cloud Identity

General pfSense Questions
3
103
9.3k
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.
  • S
    stephenw10 Netgate Administrator @leonida368
    last edited by May 17, 2024, 3:22 PM

    @leonida368 said in Authenticating Users with Google Cloud Identity:

    LDAP Debug: URI: ldap://127.0.0.1:1636 (v3)

    Are you running this in CE using Stunnel? Is that running correctly?

    L 1 Reply Last reply May 17, 2024, 3:27 PM Reply Quote 0
    • L
      leonida368 @stephenw10
      last edited by May 17, 2024, 3:27 PM

      @stephenw10 I configured Stunnel by following the step-by-step guide above.
      Stunnel is listening on IP 127.0.0.1 on port 1636 and will then forward requests to ldap.google.com on port 636

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by May 17, 2024, 4:54 PM

        Check the state table when you try to connect. Do you see states for the in and out connections from Stunnel?

        If that's difficult to see I would try running a pcap on WAN filtered by port 636 to make sure there is at least a TCP connection happening.

        L 1 Reply Last reply May 18, 2024, 7:36 AM Reply Quote 0
        • L
          leonida368 @stephenw10
          last edited by May 18, 2024, 7:36 AM

          hi @stephenw10 and thanks for the reply

          Since I have worked with other firewalls up to now, I don't know PFsense very well yet. Could you tell me how to check the state table regarding Stunnel and do a pcap on the WAN filtered by port 636?

          I would also kindly like to know if I did the right thing with regards to uploading the certificate and related key downloaded from the LDAP app created in the Google Workspace admin console:
          I opened the certificate's .crt file with notepad and copied all the text (including -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----) and pasted it into the Certificate text box given leaving as Certificate Type: X.509 (PEM).
          Same thing for the key file that I pasted into the Private key data text box.
          I did well?

          A thousand thanks

          L 1 Reply Last reply May 18, 2024, 10:32 AM Reply Quote 0
          • L
            leonida368 @leonida368
            last edited by May 18, 2024, 10:32 AM

            maybe I found it: Stunnel is not started!
            I was suspicious of the fact that in Stunnel there is a "Start service" arrow and then in Status / Services it says Stopped. How come? How can I solve it? Thank you

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by May 18, 2024, 2:22 PM

              Ok, that would do it!

              Try to start it with the button there. Then check the system logs if it fails to start.

              L 1 Reply Last reply May 19, 2024, 8:33 PM Reply Quote 0
              • L
                leonida368 @stephenw10
                last edited by May 19, 2024, 8:33 PM

                Hi, ok I'll check, in the meantime if you kindly answer me to a previous question I asked, i.e. if I did the right thing regarding the uploading of the certificate and the related key downloaded from the LDAP app created in the Google Workspace administration console:
                I opened the certificate .crt file with notepad and copied all the text (including -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----) and pasted into the Certificate text box initially given as Certificate Type: X.509 (PEM).
                Same thing for the key file I pasted into the Private Key Data text box.
                Thank you

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by May 19, 2024, 9:36 PM

                  That's the Google CA cert they are using for your domain?

                  pfSense needs that to trust the LDAP server cert but it shouldn't need the key. You'd only need that to create certs from the CA. So only if you need to create a client cert perhaps.

                  L 1 Reply Last reply May 19, 2024, 9:38 PM Reply Quote 0
                  • L
                    leonida368 @stephenw10
                    last edited by May 19, 2024, 9:38 PM

                    I understand, but is the procedure with which I pasted the certificate file correct?

                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by May 19, 2024, 10:21 PM

                      Yes, that's fine for importing a cert.

                      L 1 Reply Last reply May 20, 2024, 2:26 PM Reply Quote 0
                      • L
                        leonida368 @stephenw10
                        last edited by May 20, 2024, 2:26 PM

                        Hi @stephenw10 , Where can I see the cause of Stunnel not starting?

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by May 20, 2024, 2:45 PM

                          Well as I suggested I would try to start the service then check the logs.

                          L 1 Reply Last reply May 20, 2024, 2:52 PM Reply Quote 0
                          • L
                            leonida368 @stephenw10
                            last edited by May 20, 2024, 2:52 PM

                            @stephenw10 said in Authenticating Users with Google Cloud Identity:

                            Well as I suggested I would try to start the service then check the logs.

                            Reply

                            I find Stunnel only in System/General and it only affects the installation phase. Then I don't see it anywhere else

                            1 Reply Last reply Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by May 20, 2024, 3:23 PM

                              How do you have it configured? What happens when you try to start it?

                              L 1 Reply Last reply May 20, 2024, 3:32 PM Reply Quote 0
                              • L
                                leonida368 @stephenw10
                                last edited by May 20, 2024, 3:32 PM

                                🔒 Log in to view

                                L 1 Reply Last reply May 20, 2024, 3:35 PM Reply Quote 0
                                • L
                                  leonida368 @leonida368
                                  last edited by May 20, 2024, 3:35 PM

                                  both in Services/Stunnel and in Status/Services if I click on the arrow to start it after a while it returns again

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by May 20, 2024, 4:07 PM

                                    @leonida368 said in Authenticating Users with Google Cloud Identity:

                                    https://docs.netgate.com/pfsense/en/latest/recipes/auth-google-gsuite.html

                                    Ok so reviewing that it is a cert and not a CA cert. So did you import it with the key as described there?

                                    L 1 Reply Last reply May 20, 2024, 4:12 PM Reply Quote 0
                                    • L
                                      leonida368 @stephenw10
                                      last edited by May 20, 2024, 4:12 PM

                                      yes

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by May 20, 2024, 4:18 PM

                                        Try setting logging to DEBUG, see if that generates something when it tries to start.

                                        L 1 Reply Last reply May 20, 2024, 4:27 PM Reply Quote 0
                                        • L
                                          leonida368 @stephenw10
                                          last edited by May 20, 2024, 4:27 PM

                                          unfortunately nothing

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