Hello,
Please I need a hint to troubleshoot the following a problem. It is not clear to me why a user successfuly can auth against LDAP without REALM ( -r flag) . And it can not with its realm or domainname.
===
root@mail:/etc/pam.d# testsaslauthd -u $USERNAME -p $PASS
0: OK “Success.”
root@mail:/etc/pam.d# testsaslauthd -u $USERNAME -p $PASS -r $DOMAINNAME
0: NO “authentication failed”
OUTPUT OF AUTH.LOG
Sep 22 12:25:47 mail saslauthd[3768]: pam_unix(imap:auth): check pass; user unknown
Sep 22 12:25:47 mail saslauthd[3768]: pam_unix(imap:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
Sep 22 12:25:47 mail PAM-univentionmailcyrus[3768]: continuing as user $USERNAME
Sep 22 12:25:47 mail saslauthd[3768]: pam_ldap: error trying to bind (Invalid credentials)
Sep 22 12:25:47 mail saslauthd[3768]: pam_krb5(imap:auth): authentication failure; logname=$USERNAME uid=0 euid=0 tty= ruser= rhost=
Sep 22 12:25:49 mail saslauthd[3768]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Sep 22 12:25:49 mail saslauthd[3768]: do_auth : auth failure: [user=$USERNAME@$DOMAINNAME] [service=imap] [realm=$DOMAINNAME] [mech=pam] [reason=PAM auth error]
===
Any hints highly appreciate. This problems is reflected on postfix smtp, cyrus-imap
Rolando Riley