Forum for WLDAP API Needed
-
2011年11月16日 13:12
This is API used to search Active Directory.
ldap_search_sA() function which uses PCHAR as parameter as its input fails when we pass an UTF-8 string containing European characters as filter.
question1) Why does this happen? Is it a issue/bug?
When I convert above filter to widechar_t & pass it to ldap_search_sW() it works.
question 2) If I use ldap_search_s() from OPENLDAP it works for double byte character although filter is passed as char*. Is this feature not supported by Microsoft?
Example - if I pass user char* user = "gσr", strlen(user) is 4 since σ is taking up 2 bytes
This works with OPENLDAP API which accepts char*
Thank You
Thank You
すべての返信
-
2011年11月18日 11:33管理者
Hi,
We'd suggest posting your question on MSDN Visual C# forum for help:
Visual Studio Developer Center > Visual C# Forums > Visual C# General
Located at:
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/threads
Have a nice day
Pan Zhang
Customer Support
EPX Service Engineering Support Team
- 回答の候補に設定 Ed Price - MSFTMicrosoft Employee, Owner 2012年4月28日 23:57
- 回答としてマーク Ed Price - MSFTMicrosoft Employee, Owner 2012年5月6日 5:35