Microsoft LDAP API Gotcha
July 13, 2004 Written by Charles CookIf 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.
Copyright © 2011, Charles Cook.