Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Passwords?

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
timnsal

Novice
Novice


Joined: Aug 08, 2007
Posts: 20

PostPosted: Thu Oct 25, 2007 11:40 am    Post subject: Passwords? Reply with quote

When a user is mapped from phpbb3 to gallery2, should the user's password in both be the same so the user could log directly into either phpbb3 or gallery? I thought it used to be in the earlier integration, but I'm fairly sure phpbb3 changed how passwords are stored in the last update.

Discovered trying to use gallery remote that it doesn't work any more because I don't know the gallery password Embarassed

Sally
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Passwords?  

Back to top
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1144

PostPosted: Thu Oct 25, 2007 4:31 pm    Post subject: Re: Passwords? Reply with quote

This needs to be noted in better detail in the installation instructions. Here is the deal with integrating gallery. If you are going to use gallery in it's embedded mode, then standalone access should be disabled for several reasons. Not the least of which is that the integration does not do reverse syncing unless you specifically run the user export (which is only intended to be run once). People who login to gallery and create accounts do not get an account in phpbb and things can get out of sync easily. There is no real reason to allow users direct access to gallery when they can login to phpbb3 and get to everything in gallery that way. I admit I don't know much about gallery remote though.

The problem with passwords is that gallery uses a different method to store them. I believe they both use md5 as the hashing algorithm, but gallery uses a salted form where they generate a string of random characters and pre-pend that to the user password before it is hashed and the string is stored along with the password for later use when the user logs in again. I'm not sure what the logic is exactly to this method, but the result is that a user exported from phpbb3 will not be able to login directly to gallery because only the phpbb3 password is stored. Another reason to disable standalone gallery.

If you use the same password when you first created your admin account in gallery as the admin account in phpbb3, you should still be able to login directly to gallery because the integration did not have create a new user for the admin, but just add an external id mapping. So both methods of logging in work for the admin, but no other users will have this advantage.

Does that make any sense?


Last edited by jettyrat on Thu Oct 25, 2007 11:41 pm; edited 2 times in total
Back to top
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1144

PostPosted: Thu Oct 25, 2007 4:33 pm    Post subject: Re: Passwords? Reply with quote

Here is the part in gallery2/config.php that should be changed:
Code: › /*
 * Embedded mode.  You can disable direct access to main.php (standalone G2)
 * by setting this flag.  Set value below to:
 *  true (without quotes) - block direct requests
 *  url (with quotes) - redirect requests to this url
 *  false (without quotes) - allow direct requests
 */
$gallery->setConfig('mode.embed.only', false);
Back to top
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1144

PostPosted: Thu Oct 25, 2007 4:41 pm    Post subject: Re: Passwords? Reply with quote

You could probably 'force feed' a new password to the gallery db if you are locked out. Not sure though, haven't ever tried it with gallery before. I have with other apps though. Basically just write a little script that duplicates the gallery algorithm, enter your password, copy and paste to the gallery user db.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia