Re: Ldap_bind problem with TLS - SDK 5.1.7 and NSS 3.11 & NSPR 4.6.

Rich Megginson <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
[email protected] wrote:
> Anton - many thanks for the quick feedback, it worked perfectly.
> 
>   ldapssl_client_init( "/var/ldap/cert7.db", NULL);
>   ldap_init( MYLDAP_HOSTNAME, MYLDAP_PORT )
>   ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &ldap_version )
>   ldap_start_tls_s( ld, NULL, NULL );
>   ldap_bind_s( ld, MYBIND_DN, MYBIND_PW, LDAP_AUTH_SIMPLE );
>   ldap_unbind( ld );
> 
>>From the reply, it eludes there are more than one way to initialise
> NSS.
> 
> While hunting around, i've come accross such statements as:
>   ldap_set_option( ld, LDAP_OPT_X_TLS_CERTFILE, "/var/ldap/cert7.db" );
> 
> But when i've tried this it appears Mozilla LDAP doesn't have this as
> it reports as being "undeclared".  I skimmed over the various include
> headers and not found reference there.

Yes.  This looks like an OpenLDAP API, not a Mozilla LDAP API.  Where 
did you see this?

> 
> Can anyone provide guidance on this please, is it a non-standard ?
> 
> Thanks.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.