Questions tagged [saslauthd]

saslauthd is a daemon process that handles plaintext authentication requests on behalf of the SASL library.

saslauthd is binary shipped in cyrus SASL bundle. It's functioned as a background process who checks passwords using a variety of mechanisms. This server fulfills two roles

  1. It isolates all code requiring superuser privileges into a single process
  2. It can be used to provide proxy authentication services to clients that do not understand SASL based authentication.

This binary accept several parameters, for example

  • -m path : Specify pathname to the named socket to listen on for connection requests.
  • -c : Enable cacheing of authentication credentials

The important parameter is -a to specify authentication mechanism used by saslauthd. The mechanism is dependent upon the facilities provided by the underlying operating system. The example of them is

  • getpwent -- use the getpwent() library function
  • kerberos5 -- use Kerberos 5
  • pam -- use Pluggable Authentication Modules (PAM)
  • rimap -- use a remote IMAP server specified in -O parameter
  • shadow -- use the local shadow password file
  • sasldb -- use the local sasldb database file
  • ldap -- use LDAP (configuration is in /etc/saslauthd.conf)

testsaslauthd binary was used as test utility for the SASL authentication server. Specify an additional -f /path/to/socketdir/mux if saslauthd establishes the UNIX-domain socket in a non-default location. The example shows the response when authentication is successful:

% testsaslauthd -u username -p password
0: OK "Success."

For further references:

108 questions
-1
votes
1 answer

postfix fails to autheticate aginst saslauthd

I have a weird problem trying to autheticate postfix against saslauthd. I am on a standard linux system: Linux smswtc 3.16.0-4-amd64 #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64 GNU/Linux postfix configuration is very basic root@smswtc:/etc/postfix#…
-1
votes
1 answer

535 5.7.8 Error: authentication failed: no mechanism available

I'm using Debian 7, with postfix/courier. When I attempt to login using SMTP I get the following error telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail.mydomain.com ESMTP Postfix (Debian/GNU) ehlo…
Sbx
  • 69
  • 1
  • 2
  • 5
-1
votes
1 answer

Mail server: SASL authentication failure - Postfix + Dovecot + Mysql

I tried to set up my own mail server (postfix, dovecot, mysql, ) and I can connect via imaps/pop3s without any problems. But every time I try to connect to the SMTP server (e.g. with the Apple Mail App) I get the error that "Logging in to the SMTP…
user2284568
  • 31
  • 1
  • 2
  • 5
1 2 3 4 5 6 7
8