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

    Setting up FreeRADIUS on pfSense with Google LDAP and integrating with UniFi Controller

    General pfSense Questions
    3
    7
    207
    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.
    • L
      laurens.DS
      last edited by

      Hi all,

      I'm trying to set up the FreeRADIUS package on pfSense and link it with Google LDAP for user authentication. After that, I need to integrate the FreeRADIUS server with a UniFi Controller.

      However, I’m stuck with the error message:

      I've tried troubleshooting, but I can't seem to find where the issue is. Does anyone have a good step-by-step guide for setting this up, or any tips on resolving this error?

      Any help or guidance would be greatly appreciated!

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • L
        laurens.DS
        last edited by

        The error :

        "(0) -: Expected Access-Accept, got Access-Reject".
        
        1 Reply Last reply Reply Quote 0
        • L
          laurens.DS
          last edited by

          The configuration will follow shortly.

          1 Reply Last reply Reply Quote 0
          • L
            laurens.DS
            last edited by

            Google Admin:

            • Go to Apps --> LDAP
            • Click Add Client
            • Give it a name and a discription
            • Access permissions
            • Verify user credentials = Entire domain
              
            • Read User information = Entire domain + System attributes
              
            • Read group information = ON
              
            • Download the generated google certificate
            • Generate new credentials en save it (User + Password)
            • Set the Service status = ON

            pfSense:

            1. Add Certificates
            • Go to System --> Certificates --> Certificates
            • Click +Add
            • Give it a name and paste the contents of the certificate and private key

            75a7aef9-ca9f-4b16-bb80-cea2cc2e6cb4-image.png

            1. Install FreeRadius
            • Login
            • Go to System --> Package Manager
            • Search for freeradius and click on install
            • Wait while the installation of pfSense-pkg-freeradius3 completes.
            1. Config FreeRadius
            • Go to Services --> FreeRADIUS
            • Go to interfaces
            • Click +add en make the follow interfaces
              70447efd-5edf-4aa5-968a-9bc19696bc6e-image.png
            • Go to LDAP and fill in the things
              fb87d0fb-166e-4944-a6f0-389c6983bb19-image.png
              83790350-c1ae-47dc-8d46-15be2d25de97-image.png
            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              So what's working? What isn't working?

              L 1 Reply Last reply Reply Quote 0
              • L
                laurens.DS @stephenw10
                last edited by

                @stephenw10 when i do a radtest i get always the result "(0) -: Expected Access-Accept, got Access-Reject".

                GertjanG 1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @laurens.DS
                  last edited by

                  First, in the GUI, stop FreeRadius.

                  Then, in a first console access, you run

                  radiusd -X
                  

                  Then, in the second (use SSH ?!) start our radtest :

                  @laurens-DS said in Setting up FreeRADIUS on pfSense with Google LDAP and integrating with UniFi Controller:

                  when i do a radtest

                  In the first console, with the Radius debug log output, you can see the reason.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

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