1
ollenotna
password management
  • 2007/8/29 20:23

  • ollenotna

  • Just popping in

  • Posts: 5

  • Since: 2007/8/14


I'm looking for a way to populate XOOPS users database via a batch csv file.

I found the module esKuel
that could do the job.

The problem is the password. It must be encoded with md5. How could I generate passwords to be passed via a batch file?

tia
Antonello

2
zyspec
Re: password management
  • 2007/8/29 21:13

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


If it's a small number of passwords then you could use an online tool to enter the password then cut-n-paste the result into your .CSV file. For this you could try MD5Encryption.com

Another method would be to write a quick PHP script that reads in the .csv and encrypts the password field and then does the MySQL insert into the database for you.

Or third, you could write a quick PHP script to read the .csv file, MD5() encrypt the password field and then resave the .csv file. Then you could import it - but this seems like the long way around

3
ollenotna
Re: password management
  • 2007/8/31 6:53

  • ollenotna

  • Just popping in

  • Posts: 5

  • Since: 2007/8/14


method n.4 - linux bash script.
with a problem:
echo "text-password" | md5sum -
returns a md5-hash different from the one I get in http://www.md5encryption.com
and I haven't found out why yet

method n.5: populate xoops_users with a temporary generic password and then make the user change the passwd on his first access to the site. Would it be possible to check this and send him a message on screen in the login box?

Login

Who's Online

111 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 111


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits