Brian Candler wrote:


I would like to migrate to a different way of doing things, which would necessitate a change in the users "login" name. I would like to be able to support my "old way" as well as the new way. Doing so would require rewriting what the user passes as his login name before it gets queried by ldap.

Here is the line in the imapd/popd config files

LDAP_MAIL               loginName

Say the user has a login name (ie, what he passes as his ID to login to his account through courier-imap) "foo=domain.com" and I would like that to be changed to "foo!domain.com" before I do the lookup in ldap. Is there a way to do that in courier-imap?

Remember that LDAP allows attributes to be multi-valued. So on solution is
to simply put both values in LDAP against the same record:

loginName:	foo=domain.com
loginName:	foo!domain.com

Courier doesn't do username rewriting. When I've had to do this in the past,
I've used a POP3 proxy (smunge) with a small hack to rewrite usernames -
Wouldn't it be both easier and more straight-forward to use
maildrop? Add the courier schema to your slapd.conf, add the
maildrop attribute to all users, install maildrop, do

LDAP_MAIL mail

loginName: newlogin
mail: oldlogin@domain
maildrop: newlogin@domain

Or am I misunderstanding what you want to do?

Z





-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd522.html
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Reply via email to