Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I noticed in Solaris they do accept certificate path, but the question I have where I can point the Root CA file? Assuming that my certificate file is abc.cert.
Under Redhat (PAM_LDAP), the ldap.conf has the option of -CACERTFile <filename> where I can point to a specific cert.
Thanks for the reply. I have been playing around with this ldapclient but with no luck. On /var/adm/messages
libsldap: make connection: failed to open connection. I turn on wireshark on the ldapserver, found out that the ldapclient sent an alert saying "bad certificate".
My question is Does libsldap normally get the certificate from /var/ldap/cert8.db?
I managed to get it working if I run query manually via ldapsearch and pointed to /var/ldap/cert8.db
If ldapsearch works, then you're most of the way there.
Are you using fully-qualified hostnames everywhere (including in the LDAP server's certificate)?
If you run 'getent hosts <IP>' for the LDAP server's IP does it return the hostname specified in the SSL cert?
I executed this command and it gave me a result
1) ldapsearch -vvv -h 10.200.19.5 -p 636 -D ldapuser -w passowrd -Z -P /var/ldap/cert8.db -b dc=smns,dc=blue,dc=com,dc=cn -s base objectclass=* nisDomain
----- 1 matches
it gives me a confidence that the cert8.db is the right cert.
2) # getent hosts 10.200.19.5
10.200.19.5 hostname.smns.blue.com.cn smns.blue.com.cn
my certificate is issued to "hostname" issued by "hostname", certificate path "hostname" - does this matter?
The certificate hostname has to be exactly right, so if the reverse lookup comes back with 'hostname.smns.blue.com.cn' , then the certificate has to be issued to 'hostname.smns.blue.com.cn' - 'hostname' isn't enough.
I modified the /etc/hosts so that when I executed
getent hosts 10.200.19.5 it gives me
hostname hostname.domain.name
but it still doesn't work. I was wondering is there any way to get a verbose? message? I've got all of this from Wireshark (3rd party tool) rather than Solaris own logging system
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.