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 Display Modes
  #1 (permalink)  
Old 06-12-2009, 03:07 AM
Intermediate Member
 
Posts: 22
Default [SOLVED] Password expiry after user import

Hi All

I've been testing for a few weeks now and will be rolling out over the next few days to replace postfix/dovecot setup.

I have created a CSV with all my users and their current passwords so I can import into ZCS. On first login ZCS requires that they change their password - is there any way to disable this?
Reply With Quote
  #2 (permalink)  
Old 06-12-2009, 03:35 AM
Moderator
 
Posts: 5,806
Default

Code:
zmprov ma account@domain.com zimbraPasswordMustChange FALSE
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #3 (permalink)  
Old 06-12-2009, 03:43 AM
Zimbra Consultant & Moderator
 
Posts: 11,518
Default

Quote:
Originally Posted by RevDarkman View Post
Hi All

I've been testing for a few weeks now and will be rolling out over the next few days to replace postfix/dovecot setup.

I have created a CSV with all my users and their current passwords so I can import into ZCS. On first login ZCS requires that they change their password - is there any way to disable this?
This would be a good opportunity to force the users to adhere to a more secure password policy or you could just give them all the same 'dummy' password and let them enter their own new passwords.
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 06-12-2009, 04:01 AM
Intermediate Member
 
Posts: 22
Default

Well they already have secure passwords, which is why I'd like to import them, also I want to use imapsync to migrate email over, this is all in place and ready to go.

With this code

Code:
zmprov ma account@domain.com zimbraPasswordMustChange FALSE
is it possible to do this domain wide or does it have to be a user account at a time?

Regards
Reply With Quote
  #5 (permalink)  
Old 06-12-2009, 04:07 AM
Moderator
 
Posts: 5,806
Default

User at a time; though you could use your CSV file and do a simple for loop script.
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #6 (permalink)  
Old 06-12-2009, 04:11 AM
Intermediate Member
 
Posts: 22
Default

Quote:
Originally Posted by uxbod View Post
User at a time; though you could use your CSV file and do a simple for loop script.
heh - it's only 52 users - I'll do it manually as I have no idea on scripting!
Reply With Quote
  #7 (permalink)  
Old 06-12-2009, 04:15 AM
Moderator
 
Posts: 5,806
Default

Code:
for user in `cat yourfile.csv | awk -F, '{ print $1 }'`
do
  zmprov ma ${user} zimbraPasswordMustChange FALSE
done
This requires the users email address to be in position one of the CSV file.
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #8 (permalink)  
Old 06-12-2009, 04:20 AM
Intermediate Member
 
Posts: 22
Default

awesome :-)

thank you very much!
Reply With Quote
  #9 (permalink)  
Old 06-12-2009, 04:22 AM
Moderator
 
Posts: 5,806
Default

Your very welcome
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0