Answered 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

すべての返信