We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17403 ☆ A M B ☆
    • 183 Posts
    Refactoring modActiveDirectory and created new ModLDAP package. This new package has been tested against OpenLDAP using ldap (normal) and ldaps (SSL) connection.

    The package can be found on Github: https://github.com/lokamaya/ModLDAP
    Pre Release 2.4.1-alpha: https://github.com/lokamaya/ModLDAP/releases (Tested on my 2.4.2 MODX installation)

    Thanks for testing and feedback
    @zaenal
      zaenal.lokamaya
      • 17403 ☆ A M B ☆
      • 183 Posts
      Now available on MODX and can be downloaded via Package Management in MODX Revolution Manager page.
      http://modx.com/extras/package/modldap
        zaenal.lokamaya
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Does this require that LDAP be enabled in PHP?
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 17403 ☆ A M B ☆
          • 183 Posts
          Yes. LDAP must be enabled.
            zaenal.lokamaya
            • 3914
            • 12 Posts
            I am trying to use this plugin to let users login in the manager. I tried the debugging as explained in the readme.md and that works perfect, I see an array of all of my Active Directory users of the given OU. But when I configure it in the manager and use the [[!ModLDAPDebug? &username=`bosse1981` &password=`xxx`]] I get a page with empty values. The logging only says:

            [2017-03-20 12:52:02] (INFO @ /core/components/modldap/model/modldap/modldapdriver.class.php : 406) [ModLDAP:Driver] modLDAPDriver initialized...

            What am I doing wrong? I use an AD account in the snippet call (see `bosse1981` above) is that correct? Or is it supposed to be the account that enumerates the ldap objects?
            In the system settings I have a section `modldap` but also a section `modldapuser` with no settings in it. I tried to create settings ldap_bind_username and ldap_bind_password but that does not work. Bind format etc. is the same as in the debug file. [ed. note: bosse1981 last edited this post 7 years, 8 months ago.]
              • 47610
              • 3 Posts
              Quote from: bosse1981 at Mar 20, 2017, 12:00 PM
              I am trying to use this plugin to let users login in the manager. I tried the debugging as explained in the readme.md and that works perfect, I see an array of all of my Active Directory users of the given OU. But when I configure it in the manager and use the [[!ModLDAPDebug? &username=`bosse1981` &password=`xxx`]] I get a page with empty values. The logging only says:

              [2017-03-20 12:52:02] (INFO @ /core/components/modldap/model/modldap/modldapdriver.class.php : 406) [ModLDAP:Driver] modLDAPDriver initialized...

              What am I doing wrong? I use an AD account in the snippet call (see `bosse1981` above) is that correct? Or is it supposed to be the account that enumerates the ldap objects?
              In the system settings I have a section `modldap` but also a section `modldapuser` with no settings in it. I tried to create settings ldap_bind_username and ldap_bind_password but that does not work. Bind format etc. is the same as in the debug file.

              The same situation(( How did u solve it?