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
  #1 (permalink)  
Old 01-06-2009, 02:30 PM
Elite Member
 
Posts: 336
Default [SOLVED] Last login time incorrect

I've run into an odd one that I just can't figure out. Sometimes I don't always hear if someone's left the company, so I look at last login time in the Admin UI to see who hasn't checked mail in a while. But sometimes the last login time seems to be off. For example, I've got a user who's last login time shows as 12/29. But, if you look at her inbox, messages from the last couple days show as read.

Any thoughts?
Reply With Quote
  #2 (permalink)  
Old 01-06-2009, 03:13 PM
Moderator
 
Posts: 6,236
Default

The server will update the user's zimbraLastLogonTimestamp attribute at most once every zimbraLastLogonTimestampFrequency.
Default is 7d to cutdown on ldap writes every time you auth. You can set it to values like: 1d, 1h, 1m, 1s, or 0 for disabled:
Code:
zmprov mcf zimbraLastLogonTimestampFrequency 3d
Think of the pure volume of some systems, updating an attribute for several 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).

Your /opt/zimbra/log/audit.log is continuous anyways so you can always check that. There is a MYSQL database entry in zimbra.mailbox for last_soap_access (getLastSoapAccessTime) not ported to a LDAP value because that would be nuts.

For some, 7 days 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.

Some others:
Bug 19670 - record last login timestamp in the db
Bug 18765 - Last user access (not logon)
Reply With Quote
  #3 (permalink)  
Old 01-06-2009, 03:25 PM
Elite Member
 
Posts: 336
Default

I may try that. We've only got about 160 licenses is use (counting of course all the built in accounts). So I don't think going down to 3 days will hurt anything on our system.
Reply With Quote
  #4 (permalink)  
Old 01-06-2009, 04:21 PM
Moderator
 
Posts: 6,236
Default

You'd be fine with 1d.
Reply With Quote
  #5 (permalink)  
Old 01-07-2009, 09:22 AM
Elite Member
 
Posts: 336
Default

After I change the setting, how would I check it to make sure I did it right?
Reply With Quote
  #6 (permalink)  
Old 01-07-2009, 09:23 AM
Moderator
 
Posts: 6,236
Default

zmprov gacf | grep Timestamp
Reply With Quote
  #7 (permalink)  
Old 01-07-2009, 09:26 AM
Elite Member
 
Posts: 336
Default

Looks good! Many thanks!
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.