Re: [courier-users] Fw: Courier-maildrop, courier-imap and ldap authorization through authlib
Brought to you by:
mrsam
From: Larry M. <lm...@st...> - 2006-09-28 11:24:06
|
Sti...@si... wrote: > > I'm asking this question again because I didn't get a reply yet, and I > suppose others using an ldap backend for imap and maildrop should have > the same problem... > > ----- Doorgestuurd door Stijn Lamens/Personeel/StLukas op 27/09/2006 > 17:52 ----- > *Stijn Lamens* > > 20/09/2006 17:09 > > Aan: cou...@li... > cc: > Onderwerp: Courier-maildrop, courier-imap and ldap authorization > through authlib > > > > Hello, > > I am running a mail server (postfix) which uses courier-maildrop to > deliver mails in the home directories of my users and courier-imap for > remote access to the mailboxes. > Both courier-maildrop and courier-imap access authdaemond for retrieving > the home directories and verifying the user's credentials when they log > in using imap. > Now the problem is that courier-maildrop and courier-imap need to query > a different field on my ldap directory: maildrop needs to query on the > email adress, and imapd should query the uid. > At the moment, the LDAP_MAIL property in /etc/authlib/authldaprc is set > to "mail". Using this setting, courier-maildrop is able to query for the > e-mail adress when delivering a mail. > However, I can't login with my userid through imapd. I can use my email > adress as login name but it's easier for my users when they have to > enter just a (short) user id. > When I change the LDAP_MAIL property to "uid", I can log in with my user > id but my e-mails don't get delivered. > So how can I have courier-maildrop and courier-imap query different > fields in my ldap directory? > In your authldaprc file keep LDAP_MAIL set to mail an then set LDAP_DOMAIN to your domain and restart your authdaemon. Larry. |