The MU forums have moved to WordPress.org

Help installing LDAP plugin in WordPress MU 1.3 (4 posts)

  1. rharrison
    Member
    Posted 16 years ago #

    I noticed over on Sean's blog that the wpmu-ldap plugin should be working like a charm under 1.3. I’ve installed the current version of the wpmu-ldap plugin and it seems like the LDAP login is never getting called even though I have enabled it under LDAP Options in the admin interface. The thing that’s really bugging me is that I can’t seem to get any error messages at all so I can’t debug my LDAP settings to see if they’re the problem.

    Any ideas?
    SourceForge Support request

  2. dcreamer
    Member
    Posted 16 years ago #

    I was wondering if any solution has come for his yet? I am having the same issue where WPMU is not authenticating through LDAP, and no error logs are popping up. I don't know what to troubleshoot, either PHP, permissions, or the plugin. Any help would be very appreciated.

    Thanks in advance,
    Dave

  3. rharrison
    Member
    Posted 16 years ago #

    OK, I did figure out what the issue was for my site. I had to remove the && ($this->dn) test at the beginning of the Search function in ldap_core.php.

    diff -urp wpmu-1.3-ldap-plugin-v1.3.0/ldap/lib/ldap_core.php wpmu-1.3-ldap-plugi
    n-v1.3.0-rlh/ldap/lib/ldap_core.php
    --- wpmu-1.3-ldap-plugin-v1.3.0/ldap/lib/ldap_core.php 2007-11-17 14:37:39.0000
    00000 -0500
    +++ wpmu-1.3-ldap-plugin-v1.3.0-rlh/ldap/lib/ldap_core.php 2007-11-28 14:13
    :11.000000000 -0500
    @@ -140,7 +140,7 @@ class LDAP {
    }

    function Search() {
    - if (($this->connection_handle) && ($this->dn)) {
    + if ($this->connection_handle) {
    if ($this->debug) {
    $this->search_result = ldap_search ($this->conne
    ction_handle, $this->search_dn, $this->search_string, $this->attributes_to_get);

    $this->info = ldap_get_entries ($this->connectio
    n_handle, $this->search_result);
    [rusharri@rusharri-lnx WordPress]$ more wpmu-1.3-ldap-plugin-search-dn-rlh.patch
    diff -urp wpmu-1.3-ldap-plugin-v1.3.0/ldap/lib/ldap_core.php wpmu-1.3-ldap-plugin-v1.3.0-rlh/ldap/lib/ldap_core.php
    --- wpmu-1.3-ldap-plugin-v1.3.0/ldap/lib/ldap_core.php 2007-11-17 14:37:39.000000000 -0500
    +++ wpmu-1.3-ldap-plugin-v1.3.0-rlh/ldap/lib/ldap_core.php 2007-11-28 14:13:11.000000000 -0500
    @@ -140,7 +140,7 @@ class LDAP {
    }

    function Search() {
    - if (($this->connection_handle) && ($this->dn)) {
    + if ($this->connection_handle) {
    if ($this->debug) {
    $this->search_result = ldap_search ($this->connection_handle, $this->search_dn, $this->search_string, $this->attributes_to_get);
    $this->info = ldap_get_entries ($this->connection_handle, $this->search_result);

  4. garthk
    Member
    Posted 16 years ago #

    Mine was failing until I disabled SSL and switched to Linux mode.

    I nutted it out by putting error_log calls through the plugin, particularly in LogError in ldap_core.php and the error reporting parts of wpmu_ldap.functions.php.

    I've posted the patch to SourceForge.

About this Topic

  • Started 16 years ago by rharrison
  • Latest reply from garthk