Results 1 to 3 of 3

Thread: [SOLVED] Deactivate Account

  1. #1
    Join Date
    May 2007
    Posts
    63
    Rep Power
    8

    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.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    May 2007
    Posts
    63
    Rep Power
    8

    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?

Similar Threads

  1. Adding Hotmail Account always fails - WHY? What to do?
    By TygerZoyd in forum General Questions
    Replies: 13
    Last Post: 10-03-2013, 06:42 PM
  2. One account not receving email
    By EnglishDude in forum Administrators
    Replies: 12
    Last Post: 04-30-2010, 06:19 AM
  3. forwarding email in one account from another
    By melancholykid in forum General Questions
    Replies: 1
    Last Post: 10-13-2008, 10:43 PM
  4. Compartmentalized groups or locations sharing a domain
    By dstoliker in forum Administrators
    Replies: 5
    Last Post: 07-14-2008, 12:06 PM
  5. Replies: 3
    Last Post: 09-18-2007, 06:55 AM

Posting Permissions

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