Support » Plugin: Authorizer » Unable to authenticate against active directory

  • Resolved aszele


    Trying to use the LDAP external authentication against our active directory and cannot seem to get it working.

    I initially followed the configuration recommendations here, but to no avail:

    I’ve tested the ldap bind and search from our linux host via command line with the ldapsearch command and confirmed a working connection and search:

    ldapsearch -H ldap://<ourdomain> -x -W -D "<serviceaccount>@<ourdomain>" -b "dc=<our>,dc=<domain>" "(sAMAccountName=<username>)"

    However every time I try to authenticate, I get the following errors in our PHP logs:

    PHP Warning: ldap_search(): Search: Operations error in /www/wp-content/plugins/authorizer/src/authorizer/class-authentication.php on line 679
    PHP Warning: ldap_get_entries() expects parameter 2 to be resource, boolean given in /www/wp-content/plugins/authorizer/src/authorizer/class-authentication.php on line 681

    Unclear if that’s just a red herring or not.

    I’ve tried multiple variations on the ldap host (ldap://<ourdomain>, just <ourdomain>, ldap://<ourprimaryserver>) and multiple variations on the search and user format.

    Nothing seems to work, but again, confirmed via ldapsearch at command line with all the variations I’ve put into the app.

    Starting to go a bit buggy here. Any direction would be appreciated. 🙂

    • This topic was modified 2 months, 3 weeks ago by aszele. Reason: fixed error log order
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.