LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-27-2012, 12:05 PM   #1
fritz001
Member
 
Registered: Aug 2004
Posts: 176

Rep: Reputation: 18
Exclamation RHEL 6 openldap strange TLS behaviour


OKi, so here is the basic setup

REHEL6.2 x64 + openldap-servers installed
TLSCertificateFile /etc/openldap/cacerts/slapdcert.pem
TLSCertificateKeyFile /etc/openldap/cacerts/slapdkey.pem

openssl req -new -x509 -nodes -out /etc/openldap/cacerts/slapdcert.pem -keyout /etc/openldap/cacerts/slapdkey.pem -days 365

ldap.conf
URI ldap://192.168.40.220/
BASE dc=domain1,dc=local
TLS_CACERTDIR /etc/openldap/cacerts
TLS_REQCERT allow

on ldap server
create and tested the connection with user1

!!!!!!!now on remote machine [192.168.40.11]!!!!!

-enabled ldap auth
ldap.conf
URI ldap://192.168.40.220/
BASE dc=domain1,dc=local
TLS_CACERTDIR /etc/openldap/cacerts
TLS_REQCERT allow

!!! on ldap server debug option has been enabled !!!

- when user1 trying to connect on remote machine [192.168.40.11] it fails

Here is the log of slapd !!
conn=1002 op=0 do_extended
ber_scanf fmt ({m) ber:
send_ldap_extended: err=0 oid= len=0
send_ldap_response: msgid=1 tag=120 err=0
ber_flush2: 14 bytes to sd 14
connection_get(14): got connid=1002
connection_read(14): checking for input on id=1002
TLS: certificate [CN=*.domain1.local,O=IBM,L=myCity\\,ST=Wienn,C=AT] is valid
connection_get(14): got connid=1002
connection_read(14): checking for input on id=1002
TLS: error: accept - force handshake failure: errno 11 - moznss error -12195
TLS: can't accept: TLS error -12195:Unknown code ___P 93.
connection_read(14): TLS accept failure error=-1 id=1002, closing
connection_close: conn=1002 sd=14


just to mention: on ldap server user1 is able to authenticate...

So... it's a ldap/openssl bug... or i did something wrong ??????
 
Old 08-28-2012, 04:02 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,149

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
"Error -12195 is SSL_ERROR_UNKNOWN_CA_ALERT - it means the client does not know about or does not trust the CA cert that issued the SSL server cert of the server."

It means you need to install the CA cert on the client. Not sure why it doesn't give a better error.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openldap over tls achoos13 Linux - Server 5 05-08-2012 07:38 AM
Using TLS with Openldap - How to nqk28703 Linux - Software 2 04-25-2011 02:59 AM
OpenLDAP and TLS-SSL karlochacon Linux - Server 5 02-03-2011 01:01 AM
gdb attach detach - strange behaviour on RHEL 3.0 pankajtakawale Linux - Enterprise 0 07-11-2005 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:09 PM.

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