Please review the patch which fixes the following issue.
When anonymous access is set to off for the DS server to be used by a
subsystem, it the search_s method for the ldap object for that URI will
through an Inappropriate Authentication error.
Fix:
Call the simple_bind_s to bind with the DS server using the DN and
the ds password and then perform search for the specific base. Thus
providing a proper authentication.
--Abhishek