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.

_______________________________________________
dev-tech-ldap mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-ldap

Reply via email to