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

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 05-16-2009, 04:23 AM
Senior Member
 
Posts: 60
Default [SOLVED] Deactivate Account

How can I deactivate/close an account with zmprov, I can't seem to find the syntax anywhere. I want to close it, and then delete it after a time period, rather then just deleting them immediately.

Another question, does Zimbra have any way to handle these things automatically? Is there someway I can set it up to move inactive accounts to closed, then to deleted after another time period? Or do I just need to script this externally.
Reply With Quote
  #2 (permalink)  
Old 05-16-2009, 04:52 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

You'd need to script any change from inactive to closed to deleted if you want to do that in any automatic fashion, after making an account closed you could run a cron job that deleted closed account but you'd obviously need to be sure it's really due to be deleted.

You'll want the following for closing the account:

Code:
modifyAccount(ma) {name@domain|id} [attr1 value1 [attr2 value2...]

zmprov ma name@domain zimbraAccountStatus closed
The ldap directory schame is here: 5.0.15 Directory Schema - Zimbra :: Wiki and in the Zimbra directory for the current version of openLDAP as zimbra.schema
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 05-28-2009, 07:05 PM
Senior Member
 
Posts: 60
Default

Exactly what I was looking for, I am now trying to script it, it doesn't appear I can get the closed date from zmaccts, any way to get that info? Is there any timestamp info when admin actions are done on an account?
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.