FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Converters » Converting a database with encrypted passwords (Encrypted Password Converstion)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Converting a database with encrypted passwords [message #166506] Wed, 04 January 2012 16:36 Go to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
Passwords in the data base to be converted were encrypted with the following string. Could someone give me guidance on how to convert this over to fudforum? Thanks in advance for any help.

password = crypt($password, substr($password, (strlen($password) - 3), 2));
Re: Converting a database with encrypted passwords [message #166507 is a reply to message #166506] Wed, 04 January 2012 16:42 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Copy the convert_auth.plugin into your forum's plugin directory, activate it and configure it for your auth string. It will convert the encrypted passwords to FUDforum's format as users log in.

You can download the plugin from http://fudforum.svn.sourceforge.net/viewvc/fudforum/trunk/converter/convers ionmaps/convert_auth.plugin
Re: Converting a database with encrypted passwords [message #166509 is a reply to message #166507] Wed, 04 January 2012 16:51 Go to previous messageGo to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
I'll try that! Thanks for the fast response.
Re: Converting a database with encrypted passwords [message #166513 is a reply to message #166509] Wed, 04 January 2012 17:02 Go to previous messageGo to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
Okay, that's done. Is this the part that I should have entered into the configuration box?

crypt($password, substr($password, (strlen($password) - 3), 2))
Re: Converting a database with encrypted passwords [message #166514 is a reply to message #166513] Wed, 04 January 2012 17:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Try:

crypt($u->passwd, substr($u->passwd, (strlen($u->passwd) - 3), 2))

If it doesn't work, look at how it's used from the converter map files.
Re: Converting a database with encrypted passwords [message #166515 is a reply to message #166514] Wed, 04 January 2012 17:08 Go to previous messageGo to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
Thanks again. I'll give this a shot. Very helpful (and hopeful)
Re: Converting a database with encrypted passwords [message #166516 is a reply to message #166515] Wed, 04 January 2012 17:31 Go to previous messageGo to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
Okay, I tried it, but it seems to be allowing users to login with any password at all. Is there another step? Thanks!
Re: Converting a database with encrypted passwords [message #166526 is a reply to message #166516] Sat, 07 January 2012 05:35 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
I've successfully used it on several forums. However, if the "authentication function" is wrong, it can lead to all sorts of problems. I'm afraid you'll have to debug the code to see what's wrong.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: phpb2 converter and smilies mod
Next Topic: The database disappears when I log out and back in
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 20:17:49 GMT 2024

Total time taken to generate the page: 2.32943 seconds