Microsoft LDAP API Gotcha
Tuesday 13 July 2004
If you use the Microsoft LDAP API (wldap32.dll) and you want support for non-ASCII characters even when using the wide char versions of the functions, you must configure version 3 of LDAP:
ULONG LdapVersionOpt=LDAP_VERSION3;
ULONG ret=ldap_set_option(hLDAP, LDAP_OPT_VERSION,
(void*) &LdapVersionOpt);
Easy to forget, as I found out recently.
Posted by
at 08:22 AM.
Permalink.
Copyright © Charles Cook.
Valid XHTML 1.0