Title: Error when removing CN
Last modified: September 6, 2017

---

# Error when removing CN

 *  Resolved [jmutsaerts](https://wordpress.org/support/users/jmutsaerts/)
 * (@jmutsaerts)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-removing-cn/)
 * Currently our LDAP setup is working with following parameters:
    LDAP Host: single29.
   single.intern LDAP Port: 389 TLS: Disabled LDAP Search Base: CN=Users,DC=Single,
   DC=intern
 * I would like to expand the Search Base to include some other Users who are not
   in the CN=Users. When I remove the part “CN=Users,” from the LDAP Search Base,
   I cannot login and I get the following errors:
 *     ```
       Warning: ldap_search(): Search: Operations error in /var/www/html/wordpress/wp-content/plugins/authorizer/authorizer.php on line 1363
   
       Warning: ldap_get_entries() expects parameter 2 to be resource, boolean given in /var/www/html/wordpress/wp-content/plugins/authorizer/authorizer.php on line 1365
       ```
   
 * How can I fix this? Also, will it be possible soon to add multiple search bases?
   Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-removing-cn/#post-9473564)
 * If you’re not specifying a directory user (bind user), it will perform an anonymous
   bind; my guess is your LDAP server doesn’t allow searching the entire LDAP tree
   anonymously, so when you set your search base to only DC=Single,DC=intern, it
   fails. I’d suggest configuring a directory user that has permissions to search
   the root.
 * Re: multiple search base feature, I’ve created an issue to track that feature,
   so hopefully it will get integrated in the near future!
    [https://github.com/uhm-coe/authorizer/issues/39](https://github.com/uhm-coe/authorizer/issues/39)
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-when-removing-cn/#post-9895730)
 * Multiple LDAP search bases will be supported in the upcoming release, 2.7.2.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error when removing CN’ is closed to new replies.

 * ![](https://ps.w.org/authorizer/assets/icon-256x256.jpg?rev=1967453)
 * [Authorizer](https://wordpress.org/plugins/authorizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/authorizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/authorizer/)
 * [Active Topics](https://wordpress.org/support/plugin/authorizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/authorizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/authorizer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/error-when-removing-cn/#post-9895730)
 * Status: resolved