Care must be exercised when using testsaslauthd to check whether SASL authentication is working and saslauthd is configured to use PAM:

# cat /etc/sysconfig/saslauthd
SOCKETDIR=/var/run/saslauthd
MECH=pam
FLAGS=

By default, testsaslauthd test whether the authentication process works by invoking authentication onto the imap service, unless the -s service is passed along in the command-line. PAM configuration for the imap service is stored in /etc/pam.d/imap. However, if cyrus-imapd is not installed, the file /etc/pam.d/imap won’t exist and thus any try to use testsaslauthd against the default imap service will fail:

# ls -l /etc/pam.d/imap
ls: /etc/pam.d/imap: No such file or directory

# testsaslauthd -u felipe.alfaro -p password
0: NO "authentication failed"

# tail /var/log/messages
May 20 16:36:47 mail2 saslauthd[2626]: do_auth
: auth failure: [user=felipe.alfaro] [service=imap]
[realm=] [mech=pam] [reason=PAM auth error

# testsaslauthd -s login -u felipe.alfaro -p password
0: OK "Success.

5 Responses to “saslauthd and testsaslauthd”

  1. Liam Says:

    Thanks! That helped.

  2. arko Says:

    finally found what im looking for… thank you very much… *HUG*….

  3. dan Says:

    Thanks for the clue !

  4. Kate Nairn Says:

    xmen juggarnaught bitch Twenty-six, half-hour episodes will be produced as well as a 90-minute special of TRANSFORMERS ANIMATED which is scheduled for release in early 2008 on Cartoon Network xmen evolution nuderead more digg story

  5. Delbert Kincaide Says:

    this site sounds like it might have what you need,,,

Leave a Reply