Hey Norbert,
Thursday, July 19, 2001, 8:41:58 AM, you wrote:
NK> Hi,
>> Well, as stated earlier, here's my patch. It is based on Simon
>> Loader's code. I did nothing new to the MySQL code. There are
>> several changes to his LDAP code, but really, I just added search
>> capability to it.
NK> + /* Now do the search */
NK> + if (ldap_search_ext_s(ld, ldap_basedn, LDAP_SCOPE_SUBTREE, filter,
NK> + NULL, 0, NULL, NULL, LDAP_NO_LIMIT, 1,
NK> &result) !=
NK> + LDAP_SUCCESS) {
NK> I suggest you set the attrs parameter to "1.1". This avoids retrieving
NK> the entry's attributes which are not needed.
Hmm . . . I tried to set it to LDAP_NO_ATTRS, figuring the dn could be
ripped out of the search entry somehow, but kept getting some sort of error,
even though LDAP_NO_ATTRS was defined in ldap.h. I'll make this change
though, and thanks for the feedback.
--
Kevin