Hi, everyone here.

There is a question about the query via ldap pazzle me for several days.

One entry in my ldapdatabase is follow:

=====================================================
dn: uid=wangpenghui,ou=realss,ou=EOA,dc=eoa,dc=cn
userPassword: {MD5}kU7j0AdNFNTSlCxo92ReAg==
phpgwAccountType: u
phpgwAccountExpires: -1
homeDirectory: /home/admin
loginShell: /bin/false
cn: penghui
sn: wang
givenName: admin
uid: wangpenghui
uidNumber: 501
gidNumber: 1
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: phpgwAccount
phpgwAccountStatus: A
=====================================================

and the user wangpenghui's domain is @realss.xxx
The field should be auth via ldap is [EMAIL PROTECTED]
How to make the ldap_filter in saslauthd.conf to make out the mailaddress [EMAIL PROTECTED] to query.
I guess maybe i should use %U and %1-9 to make out the [EMAIL PROTECTED] with uid=wangpenghui and ou=realss.


And i also have a default domain, how to solve the auth both default domain and virtual domains.
The default domain's field should be auth via ldap is just wangpenghui


And in main.cf of postfix, it should be also work.

My versions :

Cyrus-imapd 2.2.3
Cyrus-SASL 2.1.18
Postfix 2.0.19
OpenLDAP 2.1.26

I am blind with it now. Any response is appreciation.

Thank you very much.

Wang Penghui
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to