Closed (duplicate)
Project:
User Import
Version:
5.x-1.2-beta
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2007 at 19:26 UTC
Updated:
2 Jan 2009 at 03:38 UTC
Bonjour - on the project page the following is stated:
- Can create random passwords for each new account
- Can import passwords from CSV file
I have just successfully imported about 96 users using your module (merci!) and had no issues except two: French charaters (reported here) and the fact that I have not found anywhere any setting or option concerning passwords. How can I import passwords? Or how can I have your module generate them? In the latter case, how do I know what are the passwords? Thks! -PC
Comments
Comment #1
jhaggenburg commentedI've got exactly the same question. It's listed, but how do I use it?
Great module and a real time-saver by the way! :)
J.
Comment #2
evelien commentedYou can match a password field within your CSV with the drupal-field password during import.
The module can generate these passwords also. But when you let the module generate some passwords, you also have to generate e-mails with it for sending out these passwords. You can setup the mail anyway you want to.
Comment #3
robert castelo commentedThanks evelien.
I should also point out that the imported passwords must be in plain text, Drupal will encrypt them before storing them. If they are already encrypted they will not be usable.
Comment #4
vermario commentedHi, about the last comment
"If they are already encrypted they will not be usable"
I happen to have to import 1100 users from another db, which uses the same algorithm (md5). I was wondering if there's a way to tell drupal not to crypt the passwords during import, and then restore it later? Even hacking the user module temporarily (i'm doing everything on an offline site)...
Any ideas? :)
Thank you so much for this very very useful module!! :)
Comment #5
vermario commentedNevermind, I did it by shamelessly hacking the user_save function in the user_module:
Line 193:
This way the password is written in the database "as is" without being encrypted.
This is useful only if you have a csv with md5 encrypted passwords!
Comment #6
coupet commentedValuable tip
Comment #7
robert castelo commentedBe careful with this.
I was considering implementing this feature but was warned that there are various different MD5 versions, but haven't had time to investigate.
Comment #8
robert castelo commentedMerging this request:
http://drupal.org/node/134490