Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 02-18-2008, 02:27 AM
Member
 
Posts: 14
Default

Where should the lastlogin information be stored?

I've looked (quickly) at the Zimbra LDAP tree for a given user and can't see it there. I figured this might be why the bug's showing up but there are still values on everyone's accounts so I'm wondering where they come from.

Just to make sure that when the bug's fixed in 5.0.3 or whatever, I can rely on these figures to delete accounts older than 3 months.

Thanks.
Reply With Quote
  #12 (permalink)  
Old 06-21-2008, 02:44 PM
Active Member
 
Posts: 41
Default

Quote:
Originally Posted by mmorse View Post
su - zimbra
zmprov gacf | grep zimbraLastLogonTimestampFrequency

Set by:
zmprov mcf zimbraLastLogonTimestampFrequency 3d
Thanks for this. I set ours to 1h and logged my own account in. Low and behold, there was my updated login time.

Thanks again. Very helpful.
Reply With Quote
  #13 (permalink)  
Old 06-23-2008, 08:07 AM
Moderator
 
Posts: 6,237
Default

Gave a more detailed one the otherday so might as well paste it here for ya:
Quote:
Originally Posted by mmorse View Post
There is a database entry for LAST_SOAP_ACCESS (getLastSoapAccessTime) in ZIMBRA.MAILBOX - not ported to a LDAP value because that would be nuts. The 'last SOAP activity time' is the time in milliseconds of the last write operation on the mailbox by the mailbox's owner; this is maintained in the session and written at the time of the session's first write and the session's expiry.

Your /opt/zimbra/log/audit.log is continuous anyways so you can always check that. (I port to a nice log index program called Splunk.)

Ok, so the zimbraLastLogonTimestampFrequency default is 7d to cutdown on ldap writes every time you auth... The value isn't new to 5.0.x, just now displayed in the admin console. The server will update the user's zimbraLastLogonTimestamp user attribute at most once every zimbraLastLogonTimestampFrequency.

It's your call - you can set it to values like: 1d, 1h, 1m, 1s, or 0 for disabled.
Think of the pure volume of some systems, updating an attribute for a million+ active users all day long makes for a lot of writes and replication. Prompted implementation of: Bug 18972 - provide way to completely disable zimbraLastLogonTimestamp (setting to 0).

For some, 7 days on zimbraLastLogonTimestampFrequency does seem a little high though given the average installation size and faster systems. To that end, someone had an bugzilla entry in to get the default changed from 7d > 3d but I don't know what happened to it. If you have the time/ability for a large scale performance test go for it

Btw Bug 24012 - "Last logged in" not updating when using external LDAP was fixed for 5.0.3)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.