Re: SSL for Ldap -- implementation help

[email protected]
Newsgroups gmane.comp.mozilla.devel.directory
Organization http://groups.google.com
Message-ID <40f40381-c4b1-4bb5-a458-ee0d3a1f320a@s19g2000prg.googlegroups.com>
Hi Rich,

1)The function code that i used :

char CERTDB[MAXFILENAMELEN] = "/opt/tibco/iprocess/libs/cert7.db";
if (ldapssl_client_init(CERTDB,NULL) < 0)
        {
                write_log("ERROR", "Client Initialisation for SSL
failed \n");
                pthread_mutex_unlock (&mutex_suvamod_c);
                return ER_SYSTEM;
        }

I tried,, directly giving the path to the DB when calling the function
& giving just the "path to the directory" containing cert7.db .
However the return value of the function is always 1.

2)I am using RHEL AE 4.0 on x86 platform.

3) I am now begining to feel that i may have packaged the libraries
incorrectly. Is there a dependency among the versions of Ldap c sdk,
NSS & NSPR libraries. I obtained the ldapc5.1.7.tar package and then
the nss-3.11.tar & nspr-4.6.tar extracted them and copied the
libraries & include files into the ldapc_sdk folders.
Is this approach correct ?
Can you give me the current stable & compatible versions of LdapCSDK,
nss & nspr sources that i need to get and package them correclty. I
went with the approach that i mentioned above because, when i try to
build/compile from the source code, i kept getting a lot of errors.

Can you please tell me, the versions that i need to obtain and the
build process, to get the libraries packaged properly.

4) Can i build my own certificate from the utility that you mentioned
and use that certificate? What is cert8.db, in the documentation for
the utility, the examples shows cert8.db. Do i need that or the
cert7.db is fine.
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.