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-30-2007, 07:45 PM
Active Member
 
Posts: 30
Default Last login time

Is there way to tell either in ldap or otherwise when the last time a Zimbra account successfully logged in?

Thanks,
Chris
Reply With Quote
  #2 (permalink)  
Old 01-30-2007, 08:41 PM
Zimbra Employee
 
Posts: 1,434
Default zimbraLastLogonTimestamp

The server will update the user's zimbraLastLogonTimestamp user attribute at most once every zimbraLastLogonTimestampFrequency (set in global config).
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 05-08-2007, 10:30 AM
Senior Member
 
Posts: 51
Default Last Logon report

I can do this at the command line on a one by one. Is there a CLI for by domain or all users LastLogon?

We like to run this once per month to verify employee lists.
Reply With Quote
  #4 (permalink)  
Old 05-08-2007, 10:41 AM
Former Zimbran
 
Posts: 5,606
Default

Not sure if this helps, but all logins are logged into /opt/zimbra/log/audit.log

You might want to run a diff command from month to month to see who's logging in and who isn't.

jh
Reply With Quote
  #5 (permalink)  
Old 05-08-2007, 11:17 AM
Senior Member
 
Posts: 51
Default

It does help. I was concerned that I would not get 100% accurate results with zimbraLastLogonTimestamp and was not real interested in setting zimbraLastLogonTimestampFrequency to daily.

Maybe we will just mod our perl script from maillog to audit.log
Reply With Quote
  #6 (permalink)  
Old 05-08-2007, 12:42 PM
Project Contributor
 
Posts: 47
Default

Quote:
Originally Posted by bowergo View Post
I can do this at the command line on a one by one. Is there a CLI for by domain or all users LastLogon?

We like to run this once per month to verify employee lists.
The 'zmaccts' command will produce a report of all the accounts, their status, when they were created, and the last time they were logged in to.

Jim...
__________________
Jim...
Reply With Quote
  #7 (permalink)  
Old 11-05-2007, 02:35 AM
Project Contributor
 
Posts: 28
Default Forcing an update

Quote:
Originally Posted by dkarp View Post
The server will update the user's zimbraLastLogonTimestamp user attribute at most once every zimbraLastLogonTimestampFrequency (set in global config).
Is there a script or command I can execute in order to ensure that the zimbraLastLogonTimestamp is updated (manually) right before my maintenance script runs?
Reply With Quote
  #8 (permalink)  
Old 11-05-2007, 08:54 AM
Project Contributor
 
Posts: 28
Default

Quote:
Originally Posted by dkarp View Post
The server will update the user's zimbraLastLogonTimestamp user attribute at most once every zimbraLastLogonTimestampFrequency (set in global config).
Some more questions:
  • You mention that this value is stored in global config, which means it is the same for all accounts. Does that also mean that every account's zimbraLastLogonTimestamp is updated at the same time (e.g. sat night). Or is it something like "every x days starting at account creation", meaning an individual update date/time for each account? The reason I ask is that my account still shows 10-30-07 21:05 while other users' accounts already show today's date and time.
  • Does zimbraLastLogonTimestamp mean a webclient logon or also Thunderbird/Outlook POP/IMAP access? I guess that also TB/Outlook logons are used, because that might be the reason why the zimbraLastLogonTimestamp is not updated after each logon (e.g. pop access every 1 minute or so).
  • What happens if I select an account in the admin interface and click "View Mail"? Does that also count as a Logon? In my opinion it shouldn't modify the zimbraLastLogonTimestamp...

Thanks for the clarification.

Tom
Reply With Quote
  #9 (permalink)  
Old 06-22-2008, 12:51 PM
Active Member
 
Posts: 26
Default

Quote:
Originally Posted by CrypTom View Post
Some more questions:
  • You mention that this value is stored in global config, which means it is the same for all accounts. Does that also mean that every account's zimbraLastLogonTimestamp is updated at the same time (e.g. sat night). Or is it something like "every x days starting at account creation", meaning an individual update date/time for each account? The reason I ask is that my account still shows 10-30-07 21:05 while other users' accounts already show today's date and time.
  • Does zimbraLastLogonTimestamp mean a webclient logon or also Thunderbird/Outlook POP/IMAP access? I guess that also TB/Outlook logons are used, because that might be the reason why the zimbraLastLogonTimestamp is not updated after each logon (e.g. pop access every 1 minute or so).
  • What happens if I select an account in the admin interface and click "View Mail"? Does that also count as a Logon? In my opinion it shouldn't modify the zimbraLastLogonTimestamp...

Thanks for the clarification.

Tom
Did you get the answers? I am wonderring if the LastLoginTimestamp only means web client(soap).
Reply With Quote
  #10 (permalink)  
Old 06-22-2008, 01:15 PM
Moderator
 
Posts: 6,236
Default

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.
Quote:
zmprov mcf zimbraLastLogonTimestampFrequency 3d
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

(Don't know what you're running at Stanford but 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.