Ralf Hildebrandt
2007-May-16 09:26 UTC
[Dovecot] Login with firstname.lastname instead of loginname
Some of our users use to login as firstname.lastname or firstname.lastname at charite.de instead of using the "correct" "flastname" login name. In order to get this behaviour a long-gone co-worker wrote an authdaemon.pl, which speaks the courier-authdaemon protocol. How can I emulate this behaviour with dovecot? Basically, all I need is a usernamen mapping ala: Ralf.Hildebrandt at charite.de rhilde Ralf.Hildebrandt rhilde for all my users -- I can generate this programatically using awk, but how can I make dovecot use that? -- Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt at charite.de Charite - Universit?tsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to plonk at charite.de
Timo Sirainen
2007-May-16 12:01 UTC
[Dovecot] Login with firstname.lastname instead of loginname
On Wed, 2007-05-16 at 11:26 +0200, Ralf Hildebrandt wrote:> Some of our users use to login as > firstname.lastname > or > firstname.lastname at charite.de > instead of using the "correct" > "flastname" login name. > > In order to get this behaviour a long-gone co-worker wrote an > authdaemon.pl, which speaks the courier-authdaemon protocol. > > How can I emulate this behaviour with dovecot?What passdb are you using? Dovecot supports aliases if you make the passdb return "user=the-real-user" field. http://wiki.dovecot.org/PasswordDatabase/ExtraFields -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070516/83ec6c49/attachment.bin>
Ralf Hildebrandt
2007-May-16 12:12 UTC
[Dovecot] Login with firstname.lastname instead of loginname
* Timo Sirainen <tss at iki.fi>:> What passdb are you using?auth default: master_user_separator: * verbose: yes passdb: driver: passwd-file args: /usr/local/etc/dovecot.masterusers pass: yes master: yes passdb: driver: shadow passdb: driver: pam userdb: driver: passwd userdb: driver: passwd> Dovecot supports aliases if you make the > passdb return "user=the-real-user" field. > http://wiki.dovecot.org/PasswordDatabase/ExtraFieldsHmm, does this mean I add another dummy database containing: ralf.hildebrandt:user=rhilde ralf.hildebrandt at charite.de:user=rhilde for all users? How? -- Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt at charite.de Charite - Universit?tsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to plonk at charite.de