• Resolved melidonis

    (@melidonis)


    I was trying to allow login only to users that are members of a specific group and used the “LDAP Search Filter” but it was not working.
    Thanks to the new “Test” button I got some more info about the search.
    So I changed a line in “class-authentication.php”

    In line 1116 I changed it from:

    $search_filter = ‘(&’ . $search_filter . $ldap_search_filter . ‘)’;

    to:

    $search_filter = ‘(&’ . $search_filter . ‘(‘ . $ldap_search_filter . ‘)’ . ‘)’;

    and now it’s working, but I was wondering if it’s ok to keep this change.

Viewing 1 replies (of 1 total)
  • Plugin Author Paul Ryan

    (@figureone)

    Better to just put your parentheses in the LDAP Search Filter field like in the example:
    (memberOf=cn=wp_users,ou=people,dc=example,dc=edu)

    The next time there’s an update to Authorizer, your code change would get overwritten, so it’s easier to just format the search filter option correctly.

    Hope that helps!

Viewing 1 replies (of 1 total)

The topic ‘LDAP Search Filter’ is closed to new replies.