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 06-06-2008, 06:23 AM
Active Member
 
Posts: 34
Default bulk user provisionning with passwd2zmprov

Hi there,

I'm trying to provisionning my zimbra with existing user account in /etc/passwd file using passwd2zmprov (rf. Bulk Provisioning - Zimbra :: Wiki).
Every thing went well and my 100 existing users were batch created into my fresh zimbra.

But when i try to connect through zimbra web mail to one of this newly transfered account, i can't: The username or password is incorrect said zimbra login page.

How this kind of transfert handle password issue?
What do i have to do to solve my pb?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 06-06-2008, 08:33 AM
Moderator
 
Posts: 441
Default

I don't know perl, but from looking at that script, you specify a generic password on the commandline for passwd2zmprov - and it sets the users to be forced to change their password on next login. I doubt that a perl script would be able to reverse the hash from /etc/shadow. This line is from the script's documentation:

Code:
     -password <password> [default ""]
So if you don't specify that password, it just uses blank.
Reply With Quote
  #3 (permalink)  
Old 06-06-2008, 08:44 AM
Active Member
 
Posts: 34
Default

Many thanks man!

that's it mean all my transfered users do not have password?
But it seems like Zimbra webmail doesn't allow login without password...

May be the author of this script can shade some light on this issue?
Reply With Quote
  #4 (permalink)  
Old 06-06-2008, 08:56 AM
Moderator
 
Posts: 441
Default

Well what you could do is modify the script that creates. I assume it creates a file with zmprov commands like this:
Code:
zmprov ca [email address] '' givenName [name] sn [name] cn [name].......
etc. Change those commands to read like this:
Code:
zmprov sp [email address] [some generic password]
Run that, then you should be able to log in with the generic password.
Reply With Quote
  #5 (permalink)  
Old 06-06-2008, 09:13 AM
Active Member
 
Posts: 34
Default

Kudo man!
I've just set a generic password for all my users.
And while logon, Zimbra force them to change it before login properly.

Many thanks again.
Now i'm working on how to transfert their mailbox from an old server to the new zimbra powered mail server.
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.