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

[email protected]
Newsgroups gmane.comp.mozilla.devel.directory
Organization http://groups.google.com
Message-ID <[email protected]>
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.

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.