WLDAP API ldap_search_sA() fails when filter contains European symbol as double byte character


ldap_search_sa() function uses pchar parameter input fails when pass utf-8 string containing european characters filter.

question1) why happen? is issue/bug?

when convert above filter widechar_t & pass ldap_search_sw() works.

 

question 2) if use ldap_search_s() openldap works double byte character although filter passed char*. feature not supported microsoft?

 

example - if pass user char* user = "gσr", strlen(user) 4 since σ taking 2 bytes

this works openldap api accepts char*

 


thank you



this should posted in msdn forums developers.
http://social.msdn.microsoft.com/forums/en-ca/categories

--
paul bergson
mvp - directory services
mcitp: enterprise administrator
mcts, mct, mcse, mcsa, security+, bs csci
2008, vista, 2003, 2000 (early achiever), nt4
http://www.pbbergs.com    twitter @pbbergs
http://blogs.dirteam.com/blogs/paulbergson

please no e-mails, questions should posted in newsgroup. posting provided "as is" no warranties, , confers no rights.



Windows Server  >  Directory Services



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL