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:

109 questions
1
vote
2 answers

Cyrus: How Do I Configure saslauthd For Authentication?

I'm trying to get Cyrus IMAP (v 2.2 on Ubuntu 9.04) setup and working, but I'm having a bit of trouble getting the login working correctly. I've created a mailbox for my test user "nrahl": cm user/nrahl and then created a password: $ saslpasswd2…
Nick
  • 4,503
  • 29
  • 69
  • 97
1
vote
0 answers

Tell saslauthd to reject authentication attempts for all domains other than ours

We are running Postfix and require authentication for the sending of mail through SMTP. The authentication uses Cyrus' saslauthd which does a Kerberos authentication against our Kerberos domain. Is there a way to tell saslauthd to attempt…
user35042
  • 2,681
  • 12
  • 34
  • 60
1
vote
1 answer

Postfix: how to use SASL authentication?

Hi I am trying to use a very simple sasl authentication. I have been testing the method here but still encounter error. my server is a fresh install server. And the command I run: # saslpasswd2 -c -u `postconf -h mydomain` user1 Password: Again…
sloweriang
  • 121
  • 1
  • 6
0
votes
0 answers

postfix+saslauthd+pam_mysql adds EOL to passwords, thus breaks

I'm trying to use the pam_mysql module in conjunction with postfix and saslauthd. Everything appears to be working, except the actual password comparison is failing. Note: the case being tested is SMTPD authentication for submission. I've built…
0
votes
0 answers

Get saslauthd to use a Kerberos principal other than one based on the hostname

We are using saslauthd on a Debian stretch Linux environment. We use saslauthd to do GSSAPI (i.e., kerberos) authentications. I see that saslauthd uses the principal host/ when doing Kerberos authentications where servername is the…
user35042
  • 2,681
  • 12
  • 34
  • 60
0
votes
0 answers

Pass through authentication from Openldap to Openldap

I am looking for a method to setup a Pass Through Authentication (PTA) between 2 openldap instances. All what I found is that is is possible to have this feature between an openldap instance to which clients are connected and an Active Directory as…
0
votes
1 answer

Openldap RootDN and other 'admin' user work differently when changing userPassword

Using OpenLDAP (2.4.44) on CENTOS 7 and have configured {SASL} pass-thru to another remote LDAP for some users using the userPassword field. This can change (overwrite) to using the local password {CRYPT} - rather than the SASL pass-thru - for…
0
votes
1 answer

How to restart linux services if it reaches 100% CPU?

I have postfix email server with saslauthd. Time and again saslauthd daemon eats 100% CPU. Restarting these services returns to normal cpu usage. Is there any proper script to determine services with high CPU usage and restart it…
Anand Shrestha
  • 41
  • 5
  • 12
0
votes
1 answer

sasl authentication with postfix

I have a weird problem on postfix trying to authenticate user/pass saslauthd relevant lines in mail.log Feb 14 16:06:21 smswtc postfix/smtpd[3577]: warning: SASL authentication failure: Requested identity not authenticated identity Feb 14 16:06:21…
0
votes
1 answer

Postfix SMTP SASL Authentication with pam_mysql can't accept email addresses as username

I'm currently trying working on a project to update an existing postfix deployment. I'm having issues with authenticating users against smtp. The primary issue I have is that our postfix users database is fully qualified (email@domain.com). However…
Michael Moser
  • 219
  • 2
  • 4
  • 16
0
votes
0 answers

Postfix+saslauthd: pam_unix(smtp:auth): authentication failure

I'm run postfix 2.10 + Cyrus sasl 2.1 + Dovecot 2.2 on Oracle Linux 7. Dovecot works with saslauthd normally, but Postfix always failed on authentication, wish someone can help to check what problem it is. The testing steps as below: telnet tiger…
Yun Wang
  • 1
  • 1
  • 2
0
votes
1 answer

Unable to send email from Command Line in Postfix (warning: TLS library .....)

I configured postfix with ssl/tls. and created an smtp. However I am unable to send test email and/or login. "Text below first defines error log (different attempts) and then configuration files." Error log on terminal. [First Attempt] [root@domain…
nix
  • 53
  • 3
  • 13
0
votes
0 answers

fail2ban saslauth ban not working

when I run: fail2ban-regex /var/log/mail.warn /etc/fail2ban/filter.d/sasl.conf output: Date template hits: 8158 hit(s): MONTH Day Hour:Minute:Second 0 hit(s): WEEKDAY MONTH Day Hour:Minute:Second Year 0 hit(s): WEEKDAY MONTH Day…
exxon
  • 83
  • 2
  • 12
0
votes
1 answer

testsaslauthd on openLDAP centos worked for first time but failed after that

testsaslauthd only works for first time after i edited the file /etc/saslauthd.conf and restarted openLDAP when i run it the second time, it is showing authentication failed. When i reedited the file and restart openLDAP then it will be repeating…
Loon Yew
  • 11
  • 3
0
votes
1 answer

What is a saslpasswd2 domain?

What does saslpasswd2 do, in particular, what is the domain option for: -u domain use domain for user domain (realm). UPDATE: Suppose, I: smtp login to smtp.mydomain.com, as myself@myotherdomain.com (with password1) and want to send and email…
user14645
  • 1,590
  • 2
  • 13
  • 17