Results 1 to 7 of 7

Thread: [SOLVED] Last login time incorrect

  1. #1
    Join Date
    May 2008
    Location
    Park City, KS
    Posts
    342
    Rep Power
    7

    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?

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    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)

  3. #3
    Join Date
    May 2008
    Location
    Park City, KS
    Posts
    342
    Rep Power
    7

    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.

  4. #4
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

  5. #5
    Join Date
    May 2008
    Location
    Park City, KS
    Posts
    342
    Rep Power
    7

    Default

    After I change the setting, how would I check it to make sure I did it right?

  6. #6
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    zmprov gacf | grep Timestamp

  7. #7
    Join Date
    May 2008
    Location
    Park City, KS
    Posts
    342
    Rep Power
    7

    Default

    Looks good! Many thanks!

Similar Threads

  1. Replies: 1
    Last Post: 12-29-2008, 03:42 AM
  2. Last login time
    By mrfileio in forum Administrators
    Replies: 10
    Last Post: 06-23-2008, 09:37 AM
  3. Last login date incorrect in Admin panel
    By Miklos Kalman in forum Administrators
    Replies: 12
    Last Post: 06-23-2008, 08:07 AM
  4. [SOLVED] Last Login Time in Admin Console
    By soxfan in forum Administrators
    Replies: 4
    Last Post: 02-29-2008, 09:57 AM
  5. last login time hasn't changed
    By dhull in forum Installation
    Replies: 2
    Last Post: 02-02-2008, 03:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •