Cyrus-sasl Digest, Vol 29, Issue 7
NguyenHuynh
huynhnguyen at mikorn.com
Tue Dec 11 20:39:46 EST 2007
Dear All,
I have just solved the problem.It works good
I still keep the old configuration
And I change only ldap_filter parameter in /etc/saslauthd.conf:
# vi /etc/saslauthd.conf
ldap_servers: ldap://192.168.1.70
ldap_search_base: dc=yescall,dc=com,dc=vn
ldap_bind_dn: cn=admin,dc=yescall,dc=com,dc=vn
ldap_bind_pw: 123
ldap_filter: mail=%u@%d
ldap_default_realm: yescall.com.vn
# now I can send message with SASL authentication ( from LDAP's information)
if I have any wrong in my configuration, please tell me.I think now
it work good
Thanks
==========================================
=More in my configuration which contains in the first messages
==========================================
Details:
OS: FreeBSD
Packages:
cyrus-sasl-2.1.22 RFC 2222 SASL (Simple Authentication and Security Layer)
cyrus-sasl-ldapdb-2.1.22 SASL LDAPDB auxprop plugin
cyrus-sasl-saslauthd-2.1.22 SASL authentication server for cyrus-sasl2
postfix-current-2.5.20071006,4 A secure alternative to widely-used Sendmail
Configure SASL in main.cf for postfix:
........
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,
reject_unauth_destination, permit_mynetworks, reject
smtpd_sasl_authenticated_header = yes
........
Configure SASL for authentication:
#vi /usr/local/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
auxprop_plugin: ldap
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
the details of one node in my LDAP
dn: cn=huynhnguyen,dc=yescall.com.vn,o=hosting,dc=yescall,dc=com,dc=vn
accountStatus: active
cn: huynhnguyen
homeDirectory: /vmail/hosting/yescall.com.vn/huynhnguyen
mailMessageStore: /vmail/hosting/yescall.com.vn/huynhnguyen/Maildir/
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: qmailUser
objectClass: CourierMailAccount
sn: Nguyen Dac Huynh2
structuralObjectClass: inetOrgPerson
entryUUID: f069f88e-1c17-102c-93d5-25c7f79a19b1
creatorsName: cn=admin,dc=yescall,dc=com,dc=vn
createTimestamp: 20071031161319Z
mailHost: mail.mikorn.com
userPassword:: aWtvcm40MTI4NA==
mail: huynhnguyen at yescall.com.vn
entryCSN: 20071205114520.832948Z#000000#000#000000
modifiersName: cn=admin,dc=yescall,dc=com,dc=vn
modifyTimestamp: 20071205114520Z
Start saslauthd:
#saslauthd -a ldap
======================================================================
More information about the Cyrus-sasl
mailing list