[Dovecot] last login timestamp

Peer Heinlein p.heinlein at heinlein-support.de
Mon Apr 29 18:03:22 EEST 2013


Am 29.04.2013 16:50, schrieb Oscar A. Jara:>
>
> Hello, I am settiing up a dovecot (imap, pop, sieve, lda) + openldap
> infrastructure. I need to store the timestamp of the last login of each
> user in an attribute of its corresponding ldap object. I could not find
> a way of doing this through configuration options so I am thinking of
> coding this task into the dovecot-auth source code, maybe in the
> passdb-ldap.c file. What do you recomend about this? Thanks.

It's very easy to use post-login-scripting as described on

http://wiki2.dovecot.org/PostLoginScripting

You just have to code the LDAP-updates in bash.

But: We have done this in the past, but we realized, that those many
user-logins (~15.000 to ~20.000 active users simultaneously) had been a
measureable impact on our LDAP. Okay, not very suprising...

We decided to use the simple way of touching ~/.lastlogin.

It should be easy to set up a second script that updates the
LDAP-records once per night. Normally there shouldn't been a reason to
have lastlogin updated "realtime" in LDAP many time per hour.

Peer



-- 
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

http://www.heinlein-support.de

Tel: 030 / 405051-42
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht
Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin


More information about the dovecot mailing list