LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2011, 04:33 AM   #1
nqk28703
LQ Newbie
 
Registered: Apr 2011
Posts: 15

Rep: Reputation: 0
Angry OpenLDAP + Cyrus SASL with TLS ... fail


Hi all,
I'm trying to get SASL working with OpenLDAP + TLS. I got it working without TLS with these settings:

slapd.conf:
----------
TLSCipherSuite HIGH:MEDIUM:+SSLv3
TLSCACertificateFile /var/myCA/cacert.crt
TLSCertificateFile /var/myCA/server_crt.pem
TLSCertificateKeyFile /var/myCA/server_key.pem

# Use the following if client authentication is required
#TLSVerifyClient demand
# ... or not desired at all
TLSVerifyClient never

saslauthd.conf:
ldap_servers: ldaps://localhost
ldap_bind_dn: cn=admin,dc=abc,dc=com
ldap_bind_pw: 123456789
ldap_search_base: dc=abc,dc=com

This works great with testsaslauthd:
root@ldap:/usr/local/sasl2/sbin# ./testsaslauthd -u khanhnq -p 1234560: OK "Success."

However, when I add these lines to saslauthd.conf, it fails:
ldap_start_tls: yes
ldap_tls_cacert_dir: /var/myCA
ldap_tls_cacert_file: /var/myCA/cacert.crt
ldap_tls_cert: /var/myCA/server_crt.pem
ldap_tls_key: /var/myCA/server_key.pem

root@ldap:/usr/local/sasl2/sbin# ./testsaslauthd -u khanhnq -p 123456
0: NO "authentication failed"

When i checked /var/log/auth.log, i got a messages:
May 24 16:27:49 ldap saslauthd[870]: detach_tty : master pid is: 870
May 24 16:27:49 ldap saslauthd[870]: ipc_init : listening on socket: /var/run/mux
May 24 16:28:13 ldap saslauthd[870]: start tls failed (Can't contact LDAP server).
May 24 16:28:13 ldap saslauthd[870]: Authentication failed for khanhnq: Cannot connect to ldap server (configuration error) $
May 24 16:28:13 ldap saslauthd[870]: do_auth : auth failure: [user=khanhnq] [service=imap] [realm=] [mech=ldap] [reason=Unknown]

What i'm doing wrong? Please help...

Best Regards,
 
Old 06-20-2011, 10:37 AM   #2
Valentin
LQ Newbie
 
Registered: Jun 2011
Posts: 8

Rep: Reputation: Disabled
Just being curious, what does lsof -ni |grep slapd show?
 
  


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
SASL vs TLS kenneho Linux - Security 4 11-25-2022 01:55 AM
Help Regarding Cyrus SASL pushpraj Linux - Newbie 1 11-28-2006 04:11 PM
cyrus-sasl & openldap issue jiawj Slackware 2 09-18-2005 12:53 AM
Cyrus SASL help littlebill Red Hat 0 10-02-2004 08:43 PM
pam_ldap with tls and sasl hardigunawan Linux - Networking 3 05-21-2002 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10: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