On Mon, 7 Jun 2004, AJ wrote: > Hi, > I am using LDAP for authentication and my uid attribute is in the form of: > [EMAIL PROTECTED] I want to use this to authenticate, but I am having some > problems. I came across some info via google search, but no real answers. > I wanted to search the archives, but it looks like they are gone?? > Anyway, I am using SASL 2.1.18 and Cyrus IMAP 2.2.3 with the following config: > > saslauthd.conf: > ldap_auth_method: bind > ldap_servers: ldap://127.0.0.1 > ldap_search_base: ou=Users,dc=domain,dc=com > ldap_use_sasl: no > ldap_method: simple
I hope the enhancement I submitted recently will make it to CVS soon which will handle this. Once this patch is applied, you need to add ldap_filter: (uid=%U%R) to your config. %R is the same is @%r except that '@' is omitted when %r (realm/domain) is not available. If you cannot wait for the CVS update, I can email you the patch. > > imapd.conf: > configdirectory: /var/cyrus/imap > partition-default: /var/cyrus/spool/imap > admins: cyrus > sievedir: /var/cyrus/sieve > sendmail: /usr/sbin/sendmail > hashimapspool: true > sasl_pwcheck_method: saslauthd > sasl_mech_list: PLAIN LOGIN > virtdomains: yes > defaultdomain: domain.com > altnamespace: yes > unixhierarchysep: yes > > > Some of the uid's though, do not have an @ sign and I wanted to handle that case > as well.. Is this possible? > > > Thanks. > AJ > > --- > 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 > -- Igor --- 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