Re: [Dovecot] Using account alias as login

2009-03-09 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, 8 Mar 2009, Javier Amor García wrote:


I use dovecot with a LDAP backend for user account and aliases. The aliases
are objects of the class couriermailalias.


As Hugo pointed out, if the alias is already part of the same LDAP 
entry the userPassword attribute is located in, you'll have to add some 
OR logic. Otherwise it would involve to read the key (aka user account 
name) from yet another LDAP entry. This is currently not implemented, as 
far as I know.


Maybe, you could use the external authentification via script 
http://wiki.dovecot.org/AuthDatabase/CheckPassword, e.g. as last passdb.


Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSbTKhHWSIuGy1ktrAQKvbAgApRKSFgeLzBpnUjKxqSFjk22ism3u3Lt4
vbIZS4XWUtFNX4WK4PcpaeUVmmKnvh4SJ2kFZBVmpRe9PYN+CbTmtrYfLTs23IoJ
T0JHmMOeJKGp19ljX370CPr20YKpq6ud247Prub6/u3CiE0xJHK2PwReHXElSy6K
sMOWC4h/McZhdoHBsQRkd3io1SeQcPjGiMyv+nX1gp3auN0SRausjckCpiwIZPPm
/63kEl3K1f6XPBBvidb7g27cWr1FBnQznGNaxsrNO1dXYqjqc2iOamv9RiBZ8wB8
OL1MOUQJ3uuBjXzEuqldjkGOG9XYCO5fibhL17g0aOoq3m8U3LWTzg==
=yo8R
-END PGP SIGNATURE-

[Dovecot] Using account alias as login

2009-03-08 Thread Javier Amor García
Hello,
 I use dovecot with a LDAP backend for user account and aliases. The aliases
are objects of the class couriermailalias.
 Some users would like to use the alias address as POP/IMAP login instead of
the 'true' account.
Is this possible?.
I am using dovecot version 1.0,10, from ubuntu hardy packages.

Thanks for any answer,
  Javier


Re: [Dovecot] Using account alias as login

2009-03-08 Thread Hugo Monteiro

Hugo Monteiro wrote:

Javier Amor García wrote:

Hello,
 I use dovecot with a LDAP backend for user account and aliases. The 
aliases

are objects of the class couriermailalias.
 Some users would like to use the alias address as POP/IMAP login 
instead of

the 'true' account.
Is this possible?.
I am using dovecot version 1.0,10, from ubuntu hardy packages.

Thanks for any answer,
  Javier

  


Hello Javier,

I don't use couriermailalias, but i do use the qmailUser objectclass 
which provides both mail and mailAlternateAddress attributes. As an 
example, i would say that you can use something like


user_filter = 
((objectClass=qmailUser)(|(mail=%u)(mailAlternateAddress=%u)))


and

pass_filter = 
((objectClass=qmailUser)((uid=%u)(mailAlternateAddress=%u)))




pass_filter = 
((objectClass=qmailUser)(|(mail=%u)(mailAlternateAddress=%u)))



Hope it helps.

Regards,

Hugo Monteiro.




Sorry for the typo,


Hugo Monteiro.

--
ci.fct.unl.pt:~# cat .signature

Hugo Monteiro
Email: hugo.monte...@fct.unl.pt
Telefone : +351 212948300 Ext.15307
Web  : http://hmonteiro.net

Centro de Informática
Faculdade de Ciências e Tecnologia da
   Universidade Nova de Lisboa
Quinta da Torre   2829-516 Caparica   Portugal
Telefone: +351 212948596   Fax: +351 212948548
www.ci.fct.unl.pt ap...@fct.unl.pt

ci.fct.unl.pt:~# _