Ralf Hildebrandt
2011-Jan-05 08:51 UTC
[Dovecot] Login with firstname.lastname instead of loginname - WORKING
3 years ago (!) I aksed about this and finally I implemented it today:>> # NEW >> passdb { >> driver = passwd >> # firstname.lastname at charite.de:password:uid:gid:(gecos):home:(shell):user=realloginname >> args = /usr/local/etc/dovecot.login_via_email >> }>If you're only using it as a passdb, you don't need the uid/gid/home. So >an example field would be: > >firstname.lastname at charite.de:password::::::user=realloginnameBut now I'm encountering problems with users writing Firstname.Lastname at charite.de instead of firstname.lastname at charite.de (capitalized first letters) How can I "normalize" the usernames by lowercasing them? The coolest solution would be to strip realms AND force lowercasing of usernames in one pass -- Ralf Hildebrandt Gesch?ftsbereich IT | Abteilung Netzwerk Charit? - Universit?tsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt at charite.de | http://www.charite.de
Thomas Leuxner
2011-Jan-05 08:58 UTC
[Dovecot] Login with firstname.lastname instead of loginname - WORKING
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Jan 05, 2011 at 09:51:19AM +0100, Ralf Hildebrandt wrote:> But now I'm encountering problems with users writing > > Firstname.Lastname at charite.de > instead of > firstname.lastname at charite.de > (capitalized first letters) > > How can I "normalize" the usernames by lowercasing them? > > The coolest solution would be to strip realms AND force lowercasing of > usernames in one passNot tested, but hunch tells me something like: args = username_format=%Ln should work. http://wiki2.dovecot.org/Variables Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk0kMpkACgkQ+meF/S97aXi84gCeIk7Jg7HDZFCO0i6sdNBTDiWg 2fsAnA7gQID7JvOdiu21YSkxK3tr1/Hk =0/01 -----END PGP SIGNATURE-----
Willie Gillespie
2011-Jan-05 23:36 UTC
[Dovecot] Login with firstname.lastname instead of loginname - WORKING
Ralf Hildebrandt wrote:> How can I "normalize" the usernames by lowercasing them? > > The coolest solution would be to strip realms AND force lowercasing of > usernames in one pass >auth_username_format = %Lu
Ralf Hildebrandt
2011-Jan-06 07:45 UTC
[Dovecot] Login with firstname.lastname instead of loginname - WORKING
* Thomas Leuxner <tlx at leuxner.net>:> > Not tested, but hunch tells me something like: > > args = username_format=%Ln > > should work. > > http://wiki2.dovecot.org/VariablesYes, that worked like a charm! Now we were able to switch from an old courier-pop + patched authdaemon to dovecot for ALL services! -- Ralf Hildebrandt Gesch?ftsbereich IT | Abteilung Netzwerk Charit? - Universit?tsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt at charite.de | http://www.charite.de
Ed W
2011-Jan-06 11:04 UTC
[Dovecot] Login with firstname.lastname instead of loginname - WORKING
On 05/01/2011 08:51, Ralf Hildebrandt wrote:> 3 years ago (!) I aksed about this and finally I implemented it today: > >>> # NEW >>> passdb { >>> driver = passwd >>> # firstname.lastname at charite.de:password:uid:gid:(gecos):home:(shell):user=realloginname >>> args = /usr/local/etc/dovecot.login_via_email >>> } >Out of curiousity, given a userbase the size you have, why are you using unix users rather than say LDAP or SQL? Ed W
Ralf Hildebrandt
2011-Jan-06 12:17 UTC
[Dovecot] Login with firstname.lastname instead of loginname - WORKING
* Ed W <lists at wildgooses.com>:> On 05/01/2011 08:51, Ralf Hildebrandt wrote: > >3 years ago (!) I aksed about this and finally I implemented it today: > > > >>> # NEW > >>> passdb { > >>> driver = passwd > >>> # firstname.lastname at charite.de:password:uid:gid:(gecos):home:(shell):user=realloginname > >>> args = /usr/local/etc/dovecot.login_via_email > >>> } > > > > Out of curiousity, given a userbase the size you have, why are you > using unix users rather than say LDAP or SQL?Traditional reasons. This system was installed over ten years ago and was changed over time. We first started with courier (I think?) or uw-imap (I have no idea - mists of time and all that) I just asked a colleague who still had the old docs I wrote ages ago. But those were discarded when he changed offices. -- Ralf Hildebrandt Gesch?ftsbereich IT | Abteilung Netzwerk Charit? - Universit?tsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt at charite.de | http://www.charite.de