On Wed, 2008-02-13 at 09:34 +0100, Paul J Stevens wrote:
> Aaron Stone wrote:
> > On Tue, 2008-02-12 at 19:42 -0700, Bryan Rehbein wrote:
> >> I have been following the dbmail development for about a year now and 
> >> have finally starting working on migrating email accounts to dbmail. 
> >>
> >> I have one major issue:
> >> My users authenticate using their email address as a user name, I would 
> >> actually like them to be able to authenticate using any alias and their 
> >> password.  I'm trying to go for user convenience here, with hopefully no 
> >> changes to how my users currently check email (a seamless transition).  
> >> Is this possible (I'm using the 2.2.x series).  I am using pgsql as the 
> >> back end, would I have to implement LDAP for this to work, or is there 
> >> something that could be easily done with the code?
> > 
> > It's not possible to do this in LDAP code does not retrieve and compare
> > a password, rather, it looks up the user account then attempts to bind
> > to the LDAP server as that user. This validation strategy allows the
> > LDAP server to maintain a policy of not allowing the password to be
> > retrieved, encrypted or not, at all.
> > 
> > In SQL it's not possible because a single alias can resolve to a number
> > of user accounts.
> 
> But there *is* a mechanism in place for this: usermap.
> 
> Of course it would be up to you to make sure that for every alias inserted 
> into
> dbmail_aliases you insert a mapping in dbmail_usermap, but that's what 
> triggers
> are for :-)
> 
> ref: README.usermap

Ah, I hadn't thought of usermaps except in the split ip space situation!

Thanks for pointing out this out :0)

Aaron

_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to