Quoting Igor Brezac <igor@xxxxxxxxx>:
On Sun, 18 Jun 2006, Pedro Algarvio wrote:
Is it possible to login like username@xxxxxxxxxx and get the
mailbox for that user to be for example username_domain.tld?
I'm using ldap as the saslauthd backend, so would it be possible to
translate username@reaml to username_realm, that way users could
login with their normal email address to services like pop/imap.
I know authentication is possible, that's plain ldap, but the
mailbox "translation" is my doubt.
P.S.: I'd like to get this without using cyrus virtdomains setting,
or at least leaving it to off.
You will need to write/hack code for this to work. You have several
options: write a custom authorization module (it can be ldap driven) or
hack an existing authorization module, hack ptloader/ldap code or write
your own ptloader plugin, or write a custom canon sasl plugin.
--
Igor
Where exacly should I "hack" the code to achieve this?
And how exactly can I tell cyrus to use a mailbox name diferent from
the username, will a PTLOADER be able to do this?
To make things harder, I don't know C, I'm just reading documentation
as need, although I might get some help from somewhone who knows but
he's not that aquainted to cyrus, so any starting points would be
wonderfull.
Perhaps another config var could be added to the ldap PTLOADER so that
we can provide the maildrop ldap attribute name, besides maildrop of
course(this might be another way).
Well, what I think the ldap ptloader could gain is give the user the
ability to provide the atribute he wants to retain from an ldap query.
Just some other ideas to improve your ptloader.
Thanks!
--
Pedro Algarvio
__ ___ ___ _______ ___ __
| Y .' _| _ .-----.' _| |_ .-----.----.-----.
|. | | _| 1___| _ | _| _|__| _ | _| _ |
|. | |__| |____ |_____|__| |____|__|_____|__| |___ |
|: 1 | |: 1 | |_____|
|::.. . | |::.. . | ufs [AT] ufsoft [DOT] org
`-------' `-------' ufs [AT] sapo [DOT] pt
----
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