Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th October 2005, 02:50 PM
sagasy Offline
Registered User
 
Join Date: Sep 2005
Posts: 3
About cyrus-sasl and openldap

Hi,

I'm trying to use cyrus-sasl with ldap mechanism.

I use FC4 packages (cyrus-sasl, openldap ...), testsaslauthd don't access to ldap.

Is cyrus-sasl package compiled with ldap ?

Is-there a how-to somewhere ?

Thanks

PS : sorry, I don't speak a very good english
Reply With Quote
  #2  
Old 5th October 2005, 11:55 PM
amessina's Avatar
amessina Offline
Registered User
 
Join Date: Apr 2005
Location: Chicago, IL, US
Age: 35
Posts: 100
what you will need to do is this:

edit /etc/imapd.conf and set the following:
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN

then create and edit /etc/saslauthd.conf as:
ldap_servers: ldap://ldap.your_domain.com/
ldap_version: 3
ldap_scope: one
ldap_search_base: ou=People,dc=your_domain,dc=com
ldap_auth_method: bind
ldap_filter: (uid=%u)
ldap_start_tls: yes
ldap_tls_check_peer: yes
ldap_tls_cacert_file: /etc/pki/tls/certs/ca.crt (or whatever your specific cert is)
ldap_tls_cacert_dir: /etc/pki/tls/certs

the tls stuff is only if you want/need tls.

read the man page for saslauthd and imapd to give you all the parameters.
__________________
Visit my website: http://messinet.com
Visit my online gallery: http://messinet.com/modules.php?name...op=visit&lid=3

Registered Linux User #389089
Get counted!: http://counter.li.org
Reply With Quote
  #3  
Old 6th October 2005, 12:47 PM
sagasy Offline
Registered User
 
Join Date: Sep 2005
Posts: 3
Thank you,

I don't understand something :
Is it possible to test sasl / ldap (testsaslauthd) without imap ?

In fact my saslauthd.conf seem to be OK, but testsaslauthd don't ask my openldap server (noting in logs).

I have
auth failure: [user=user1] [service=imap] [realm=] [mech=ldap] [reason=Unknow]
Reply With Quote
  #4  
Old 6th October 2005, 03:31 PM
amessina's Avatar
amessina Offline
Registered User
 
Join Date: Apr 2005
Location: Chicago, IL, US
Age: 35
Posts: 100
oh i forgot to saty that your /etc/sysconfig/saslauthd file should look like:

# Directory in which to place saslauthd's listening socket, pid file, and so
# on. This directory must already exist.
SOCKETDIR=/var/run/saslauthd

# Mechanism to use when checking passwords. Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled to use.
#MECH=shadow
MECH=ldap

# Additional flags to pass to saslauthd on the command line. See saslauthd(8)
# for the list of accepted flags.
FLAGS=
__________________
Visit my website: http://messinet.com
Visit my online gallery: http://messinet.com/modules.php?name...op=visit&lid=3

Registered Linux User #389089
Get counted!: http://counter.li.org
Reply With Quote
Reply

Tags
cyrussasl, openldap

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum and cyrus-sasl CrasyHorse Using Fedora 0 7th December 2007 11:07 AM
tested tutorial: postfix + cyrus-sasl + cyrus-imap + mysql powereds Fedora Focus 0 3rd October 2006 06:29 AM
SASL and OpenLdap see wrong realm! mesh2005 Servers & Networking 1 22nd December 2005 10:46 AM
openldap w/ gssapi/sasl after reboot question blurpee Servers & Networking 0 16th October 2005 06:21 PM
openldap, mit kerberos, gssapi/sasl integration blurpee Servers & Networking 1 10th October 2005 10:40 PM


Current GMT-time: 21:30 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat