Just looking for some clarification here. I've successfully set up Domain access with 2 domains. Seems to be working o.k, with content sharing , theme switching working between domains.
I've just tried to login to my secondary domain with my user1 admin (from primary domain) details and get redirected back to the primary domain.
I've checked that user account 1 belongs to both affiliates.
Trying to register as a new user on the secondary domain kicks me over to the primary domain as well - without any error/confirmation message.
I've had a cursory search through the issue queues, but haven't turned up an answer yet, although i've seen references to Single Sign On.
Do I need to use this module to be able to login to both my sites with a single administrator account?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Screen shot 2011-10-25 at 12.08.53 PM.png | 14.92 KB | agentrickard |
Comments
Comment #1
hixster commentedJust wanted to add that after trying to login into secondary domain and getting redirected to primary domain - I remain logged out of the secondary domain when I go back to the site.
Comment #2
hixster commentedbit of an update.
I ran copy on the following tables in the table prefixing section:
User
- access
- authmap
- permission
- role
- users
- users_roles
I can now login to my secondary domain as admin - although when logging out i'm sent back to the primary domain (undesirable).
Also, when creating a new user account on the secondary domain, I am redirected to the primary domain with no error message.
An email is sent to the new user with login information, but the login in path is for the primary domain NOT the secondary one.
Any help much appreciated on this, i feel i am pretty close, just need to wrangle out some kinks.
Comment #3
agentrickardYou are probably having $cookie_domain problems. See https://drupal.org/node/1096962
Also check the 'action' on the login form and make sure it points to the correct domain.
I highly advise you *not* to prefix those tables. That's a recipe for failure.
Comment #4
hixster commentedthanks for the feedback agentrickard - I read the notes about the $cookie_domain and have tried setting that in my settings.php without luck.
I will look at the login form tonight as i'm testing in a localhost at home. Also looking at using SSO to overcome the cookie domain issue.
Will post back when have more details. Thanks again for the quick response.
Comment #5
hixster commentedI have just checked the action for my secondary domain and it's URL is for the primary domain - why would this be?
Comment #6
agentrickardThe normal answer would be because your DNS (or sites configuration) for the secondary domain isn't working properly, and Domain Access is "falling back" to the default domain.
The easiest way to test this is to enable the "Domain Alias Switcher" block, which will highlight (in bold) the current active domain (as shown in the attached.)
Comment #7
dqdI'll close this issue due to inactivity for 13 years and EOL of Drupal 6 ... Jesus.