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

    Pfsense and OpenLdap

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 4.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.
    • S
      shady91000
      last edited by

      Hello there !

      I'm in a corporation and i have a project, setup a captive portal with an open ldap.
      My open ldap server is fine (i think), i can open session on clients (debian 8 mate) with the username in the ldap server.

      The aim is now to allow pfsense to access internet in the captive portal with the ldap access (username and password).

      I have setup all (i think) but i have an error in the system logs :
      php-fpm[242]: /diag_authentication.php: ERROR! Could not bind to server ldap.srv.lan.

      All is running on Vmware for the moment.

      This is the ldap configuration in system>users>servers :

      And this is my ldap server :

      Could you help me please

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        what version of pfsense are you using?  Current version of pfsense ldap settings show a dropdown to pick your ldap server template

        openldappfsense.png
        openldappfsense.png_thumb

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • S
          shady91000
          last edited by

          Hello, I'm using the 2.2.5 version of pfsense.
          I have tried with the 2.2.6 but the error change to :  pfSense php-fpm[243]: /diag_authentication.php: ERROR! Either LDAP search failed, or multiple users were found.

          1 Reply Last reply Reply Quote 0
          • S
            sodasam
            last edited by

            @shady91000:

            Hello, I'm using the 2.2.5 version of pfsense.
            I have tried with the 2.2.6 but the error change to :  pfSense php-fpm[243]: /diag_authentication.php: ERROR! Either LDAP search failed, or multiple users were found.

            See if you can use anonymous bind for now. If that works then your bind user credentials are incorrect.

            1 Reply Last reply Reply Quote 0
            • S
              shady91000
              last edited by

              I have solved my problem, it was in the member attribute and the credentials for the ldap bind. Thank you
              Now i can authentify my users with the authentification diagnostic.

              I have to setup a captive portal and Freeradius package for the connectivity between pfsense and openldap server

              Freeradius is obligate for ldap loggin on the captive portal ? Sorry for my english

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