I have Domain Access and SSO working for several top level domain sites.
"
I was having a problem with duplicate URL's across the sites, such as "about", "advertising" etc...The type of pages that would appear on all sites, with just slightly different content to reflect the uniqueness of that site.

I thought table prefixing would help, so I enabled that module and created a new domain through the DA's "create domain record" procedure.

Upon heading to the new site, get "Access Denied" and at the top I get this error message:

Warning: Unknown column 's.domain' in 'where clause' query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = '6tdlbhdhsqri6ebdst9s2ht2k6' AND s.domain = 'newdomain.com' in C:\wamp\www\primarydadomain.com\includes\database.mysqli.inc on line 128

So currently im sharing a session across all my sites, and upon creating this new one...and attempting to share that session its having a problem with s.domain...Thats how I read it. Any way to solve this one?

Comments

Netbuddy’s picture

Should add that after I enabled the prefix module, I set it up so that upon creating this new site, DA would create (not copy) the URL alias table. I cant see how the above immediately relates to to that table...but thats what I get.

bleen’s picture

I am just trying to get DA to work with SSO and I am getting the same error. I do not have domain_prefix enabled but I do have:

domain_access
domain_alais
domain_config
domain_nav
domain_source
domain_theme
domain_views

all enabled. Any luck with this error since your original post?

zserno’s picture

I did some debugging and it turned out that Domain Access overwrites $db_prefix if that's an array. See corresponding part of domain_prefix module's INSTALLATION.txt:

This module replaces the default $db_prefix routine documented inside settings.php.

IT IS ADVISED THAT YOU DO NOT USE THE $db_prefix VARIABLE IF YOU ARE USING THIS MODULE.
If you must prefix all tables, do not set $db_prefix as an array.

So it's clear that this is a conflict between these modules at the moment. I think it's rather a DA issue though.

zserno’s picture

Project: Single Sign-On (aka SSO or Single Sign On) » Domain
Version: 6.x-1.0-rc1 » 6.x-2.5
Component: Code » - Domain Prefix
Category: support » bug
Status: Active » Needs review
StatusFileSize
new664 bytes

Attached patch fixes domain_prefix.module's behavior.
Also, assigning it to Domain module to discuss if this is the proper way to get these modules work together.
Note: if we get agentrickard's blessing on this, we'll need to update Domain prefix's INSTALLATION.txt respectively.

agentrickard’s picture

zserno’s picture

Both patches apply nicely to HEAD and they're working well together: SSO works fine as well as domain_set_domain() using the test code from http://drupal.org/node/883180#comment-3360480.

agentrickard’s picture

StatusFileSize
new2.84 KB

Fixed up the patch and added/removed documentation. Now formatted from domain root.

I'd like to get one more once-over on this, then commit.

zserno’s picture

StatusFileSize
new3.56 KB

Tested new patch: works as expected (with sso, too). Adjusted domain's INSTALL.txt as well.

agentrickard’s picture

Status: Needs review » Reviewed & tested by the community

Thanks. I'll commit this when I get some time.

agentrickard’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Committed to 6.x and HEAD of Domain Prefix. Could use a backport to 5.

agentrickard’s picture

Status: Patch (to be ported) » Closed (fixed)

D5 is dead.