Closed (fixed)
Project:
phpBB Forum Integration
Version:
6.x-2.0-beta8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2009 at 21:36 UTC
Updated:
9 Jan 2012 at 07:50 UTC
Well, another thing that i can't understand about this Drupal-phpBB integration is how to create a user in Drupal, when this user already exists in phpBB? Thing is that i have a bunch of users in phpBB users and only couple of them as a drupal users too (drupal public registration was turned off before). And now i need to create corresponding user profiles in drupal for all that phpBB users.
So, when i tried manually to create a user profile in drupal with corresponding name & e-mail for it's profile in phpBB i got 2 errors:
- The name *** is not valid in phpBB.
- The e-mail address *** is not valid in phpBB.
Well what to do in this situation?
Comments
Comment #1
hargobindI've been trying to learn more about the inner workings of this module. Here's my understanding of what's going on. If someone else knows better, please correct me.
If the user already exists in one system, there's no need to create the account in the other system. Account syncing happens automatically when a user authenticates in either system.
There is no feature to "mass sync" users in both systems. The reason for this mainly stems from how passwords are stored in both systems.
When an account is created (or a password is changed), the system encrypts the password and then stores it. Once it has been stored, there is no way to read what the original password is. So if you were to try to sync the user automatically, the other system would try to read the password but it would be garbled, and the account would essentially be invalid in the secondary system.
So how do we get the password? During the login process, or when the user edits their profile and changes their password. At that time, the code has access to the "clear-text" password which we can then encrypt differently for each system.
You might then ask "how are user profile fields synced"? Profile fields are also synced at login. In the Drupal admin pages, you specify which system is the MASTER. And when the user authenticates on either system, the profile changes are automatically pushed to the other system.
Reopen the issue if you still need help.
Comment #2
hargobindComment #3
STINGER_LP commentedAnyway i need somehow to import all existing phpBB user to Drupal! What the point of the integration when in one system user profile exist, but in another not?
Comment #4
fizk commented