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
33
votes
3 answers

POSTFIX fatal: no SASL authentication mechanisms

I am struggling with the error above for more than 5 hours. I had tried to remove Postfix completely and I had followed the instructions of the next manual and the SASL manual in order to reinstall it. When I am trying to login with telnet, the…
user2979757
  • 501
  • 1
  • 5
  • 5
10
votes
3 answers

How to get SASL authentication to work with DIGEST-MD5 for OpenLDAP?

I'm setting up OpenLDAP slapd on Ubuntu 14.04 Trusty Tahr. I want certain instances (replication etc.) that aren't users to be able to login via SASL using DIGEST-MD5 mechanism. Unlike users, they are not supposed to have a corresponding DN (along…
blubberdiblub
  • 595
  • 1
  • 5
  • 15
9
votes
1 answer

Postfix on CentOS 7 cannot authenticate against cyrus saslauthd

Postfix fails to authenticate against cyrus saslauthd. However, saslauthd itself is willing to authenticate. What am I missing? From syslog mail facility: Aug 5 14:47:26 centos7-msa-test postfix/postfix-script[20286]: starting the Postfix mail…
84104
  • 12,698
  • 6
  • 43
  • 75
9
votes
1 answer

Postfix + sasl method rimap strips domain name from user

I'm setting up a mail server with Postfix and Courier-IMAP. I'd like to do SMTP authentication with rimap, so that I don't have to maintain two user DB's. The problem I'm having, is that the username postfix passes is stripped of its domain name. It…
Halfgaar
  • 7,921
  • 5
  • 42
  • 81
7
votes
4 answers

saslauthd authentication error

My server has developed an expected problem where I am unable to connect from a mail client. I've looked at the server logs and the only thing that looks to identify a problem are events like the following: Nov 23 18:32:43 hig3 dovecot: imap-login:…
James
  • 613
  • 2
  • 6
  • 13
7
votes
2 answers

Saslauth with ldapdb on debian

I'm trying to get saslauthd working with openldap. ldapsearch and every service connected to openldap works fine. sasldblistusers2 doesn't work - and ldapwhoami does not work either. getent passwd works fine too. sasldblistusers2 produces this log…
Andreas Rehm
  • 841
  • 6
  • 11
6
votes
2 answers

How can I configure my postfix server so reject_sender_login_mismatch doesn't block aliases of the main account?

I've recently setup postfix, dovecot, amavis and a suite of other tools using iRedMail, and I'm having difficultly authenticating to my outgoing mail server. The issue is this: xyz@mydomain.com is an alias to abc@mydomain.com. I authenticate using…
FilmJ
  • 756
  • 2
  • 9
  • 16
6
votes
2 answers

How to debug SASL authentication via LDAP towards active directory

I am trying to configure SASL running on Centos 6.5 to allow authentication towards the corporate active directory server. The end goal is to authenticate access to some subversion repos which are running on this server, but at this stage I am just…
harmic
  • 258
  • 1
  • 2
  • 13
6
votes
3 answers

saslauthd using too much memory

Woke up today to see my site slow/unresponsive. Pulled up top and it looks like a ton of saslauthd processes have spun up using about 64m of RAM each, causing the machine to enter swap space. I've never seen this many used on there. top - 16:54:13…
Brian Armstrong
  • 1,557
  • 3
  • 18
  • 22
5
votes
0 answers

Low Entropy on Container

I am thinking my entropy level may be low? $ cat /proc/sys/kernel/random/entropy_avail I am around 132-178 on average. Pool size is default 4096 (this is a container on a virtualizer by the way). I also have ran: $ cat /dev/urandom | rngtest -c…
5
votes
1 answer

svnserve+sasl+ldap : saslauthd not contacted?

I am trying to authenticate subversion users against sasl+ldap. Other questions about this problem seem to be related to earlier versions of subversion, or sasldb authentication. lsb_release -a No LSB modules are available. Distributor ID:…
user1387
  • 61
  • 4
5
votes
4 answers

"503 5.5.1 Error: authentication not enabled" when trying to connect to my postfix server remotley

I have the following: postfix-2.10.1-6.el7.x86_64 cyrus-sasl-lib-2.1.26-17.el7.x86_64 cyrus-sasl-plain-2.1.26-17.el7.x86_64 cyrus-sasl-2.1.26-17.el7.x86_64 my postconf -n is: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases …
edotan
  • 1,786
  • 12
  • 37
  • 57
5
votes
3 answers

Postfix: SASL authentication failure: cannot connect to saslauthd server: Permission denied

I had a Postfix/Dovecot server up and running for about a week until I had to reboot it. When I did, things stopped working. I've been up searching for hours to no avail. IMAP successfully authenticates (despite dovecot being configured to piggyback…
flashbang
  • 135
  • 1
  • 1
  • 11
5
votes
1 answer

saslauthd multi instance for postfix smtp authentication

I have mail server Postfix+Saslauth. I configure multiple instance for Postfix: postfix postfix-out and two instances for saslauth: saslauthd saslauthd-out Setting saslauthd is for authenticating Postfix service and saslauthd-out for another…
superuser
  • 271
  • 1
  • 10
5
votes
1 answer

SMTP authentication failure + PAM-MySQL cannot authenticate

I am building a mail server using Postfix, and set up the authentication to check against a database set-up using Postfixadmin. I can authenticate via Courier IMAP okay, as it can authenticate against the hashed password properly, but I am…
Bez Hermoso
  • 171
  • 1
  • 6
1
2 3 4 5 6 7 8