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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 11:36 Go to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 11:42 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 11:51 Go to previous messageGo to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 12:02 Go to previous messageGo to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 12:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 12:08 Go to previous messageGo to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 12:31 Go to previous messageGo to next message
bbnewbie is currently offline  bbnewbie   United States
Messages: 27
Registered: December 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 00:35 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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 Oct 21 06:10:18 EDT 2017

Total time taken to generate the page: 0.00806 seconds