C language function:ldap_compare_s sample codes

Search sample code in the internet.It is the result.

TITLE : c++ - How to do password authentication for a user using LDAP? - Stack Overflow
has_value = ldap_compare_s( ld, dn, "userPassword", "secret" );.......

TITLE : Mozilla LDAP C SDK: Chapter 1 - The Mozilla LDAP C SDK
compare.c Shows how to use ldap_compare_s(), which allows you to test if a particular value is contained in an attribute of an entry........
TITLE : .NET Client Classes for openldap/winldap - CodeProject
if(c.ldap_compare_s(entryDN, "cn", "test") == true).......
search Google