From: José Illescas Pérez (jip at jccm dot es)
Date: Fri Nov 26 2004 - 10:19:39 EST
Hello,
I have configured smtp auth in my postfix with saslauthd and pam_ldap.
My /etc/postfix/main.cf have:
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
My /usr/lib/sasl2/smtpd.conf have:
pwcheck_method: saslauthd
My /etc/pam.d/smtp have:
auth required pam_ldap.so
account required pam_ldap.so
password required pam_ldap.so use_authtok
session required pam_ldap.so
My /etc/ldap.conf have:
host myldap.es
base mybasedn
pam_filter objectclass=myobjectclass
pam_login_attribute uid
The problem is that saslauthd process seach in ldap server with the next
filter:
SRCH base="o=Junta de Castilla-La Mancha,c=es" scope=2 deref=0
filter="(&(objectClass=qmailUser)(objectClass=qmailUser)(uid=user at hostpostfix))"
then, the smtp auth fail because the user "user at hostpostfix" don't exist.
How can I configure saslauthd or Postfix for search in the ldap with:
uid=user
without the name of host postfix???.
Best regards.
--
_ ____ ____ __ __
| |/ ___/ ___| \/ | Jose Illescas Perez. Linux User #73559
_ | | | | | | |\/| | TFNO: +34 925 266 219 FAX: +34 925 266 300
| |_| | |__| |___| | | | El Webteam de http://www.jccm.es
\___/ \____\____|_| |_| Junta de Comunidades de Castilla-La Mancha
|
|
|