LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-19-2006, 12:27 AM   #1
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 22.04
Posts: 199

Rep: Reputation: 33
strange ldapsearch error


Hello,

When I installed OpenLDAP2.3.9 + Open SSL0.9.8c + BerkeleyDB.4.3, and configured the LDAP as Self sign certification,
then run the slapd as "slapd -h "ldaps://:636", yes, the port 636 was open, and in my own client computer, I could use LAT tools to access the LDAP server. But I found a issue made me very confused. Also in my client computer(192.168.123.33), I modify the "/etc/openldap/ldap.conf" as following:

# $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.4.8.6 2000/09/05 17:54:38 kurt Exp $
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

#BASE dc=example, dc=com
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666

#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never

base dc=plasmon,dc=sit
uri ldaps://192.168.123.33:636
ssl on

Then issue the ldapsearch, I got the error messages:

[root@localhost openldap]# ldapsearch -x
ldap_bind: Can't contact LDAP server (-1)
additional info: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

The matter happened here, when I tried to use another client computers which have the same OS as 192.168.123.33, also did I modify the "/etc/openldap/ldap.conf" as the formal text, the other two runs well and the ldapsearch could return the entries from LDAP server.

I've check my own setting for so many times, but I still got the "error:14090086" message.


I added "TLS_REQCERT allow" in "/etc/openldap/ldap.conf" just now, then "ldapsearch -x" could return the entries.
Only this computer has such issue. the other clients do not need add TLS_REOCERT strings.

Would you please give me some advice on how to check and fix this issue?

Any help appreciated.

Thanks and regards,
Phillip
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldapsearch with incomplete base returns no results superhausi Linux - Software 0 10-25-2005 03:23 AM
A strange error about c++ icoming Programming 5 10-04-2004 07:55 PM
OpenLDAP, ldapsearch: how to list all attributes Hko Linux - Networking 0 08-15-2004 10:43 AM
ps gives me a strange error costasm Linux - Software 6 12-03-2003 07:22 AM
2.2 strange error svar Linux - General 0 08-21-2003 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration