help with sasl and ldap
Hello,
I am trying to make my SASL /with open ldap work. I can query with ldapsearch and resolve the username and password.
I am trying to bypass pam in the middle. But somehow if I do not define -s option while running testsaslauthd it uses imap.
Here is the output of testsaslauthd
testsaslauthd -u test1 -p welcome
0: NO "authentication failed"
/var/log/messages
Aug 18 14:32:33 vernal saslauthd[19899]: do_auth : auth failure: [user=test1] [service=imap] [realm=] [mech=ldap] [reason=Unknown]
Here are my conf files.
#/etc/saslauthd.conf
ldap_servers: ldap://testme.sfsu.edu:389/
ldap_bind_dn: uid=test1,cn=users,o=sfsu.edu
ldap_bind_pw=welcome
ldap_base: o=sfsu.edu
ldap_auth_method: bind
#ldap_filter: mail=%U,o=sfsu.edu
#/etc/sysconfig/saslauthd
SOCKETDIR=/var/run/saslauthd
MECH=ldap
When I grep sasl, I see it running as
/usr/sbin/saslauthd -m /var/run/saslauthd -O /etc/saslauthd.conf -a ldap
root 19900 19899 0 14:14 ? 00:00:00 /usr/sbin/saslauthd -m /var/run/saslauthd -O /etc/saslauthd.conf -a ldap
Any help will be greatly apprecaited.
Juliyana
|