[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_ssl_client_init equivalent?



> Hi,
>
> is there a ldap_ssl_client_init function in the openldap C API? I couldn't
> find any in the openldap header files.

Because there isn't.

>
> What is the equivalent of the following ldapsearch query in C using the
> API, on Linux?
>
> ldapsearch -x -H 'ldaps://activedirectory.abc.com/636'
> -b 'dc=abc,dc=com' -D 'testdn'
> -W '(&(objectclass=user)(!(objectclass=computer))(samaccountname=myname))'
> samaccountname

You can find that information in

        clients/tools/common.c
        clients/tools/ldapsearch.c

p.