Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Anope with phpBB (MySQL and enc_bcrypt)  (Read 4161 times)

0 Members and 1 Guest are viewing this topic.

Craig Fairhurst

  • Anope User
  • Offline Offline
  • Posts: 28
Anope with phpBB (MySQL and enc_bcrypt)
« on: December 20, 2014, 11:55:44 PM »

Hey guys

I got a good one for you guys, I wish to use enc_bcrypt to retrieve/authenticate passwords in a phpbb forum database.

My MySQL configuration is up and running so I'm now stuck using query from m_sql_authentication to get at the password data but I'm not sure how to get it to use enc_bcrypt.

Code: [Select]
query = "SELECT `user_email` AS `email` FROM `phpbb_users` WHERE `username` = @a@ AND `user_password` = ??????@p@"
How would I enable bcrypt in the SQL command???

Kind regards

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Anope with phpBB (MySQL and enc_bcrypt)
« Reply #1 on: December 21, 2014, 06:06:48 PM »

you can't, unless someone changes what can be done with the provided password, eg. using one of the enc_* modules, like Inspircd's sqlauth does, iirc.
Logged

Craig Fairhurst

  • Anope User
  • Offline Offline
  • Posts: 28
Re: Anope with phpBB (MySQL and enc_bcrypt)
« Reply #2 on: December 21, 2014, 08:00:33 PM »

OK

FYI I ended up modifying phpBB, php/auth/provider/db.php and phpbb/passwords/driver/bcrypt.php were the files I needed to modify in order to negate the crypt algorithm.

Kind regards
Pages: [1]   Go Up