Please go through these three requirements and help me with possible solutions. In Drupal 7, If I created an Account with username 'xyz' and password 'abc' for www.examplesite.com. Also I have sub-domain www.sub.examplesite.com.
1) How to maintain only "User Account Registration Table" common for both websites?
2) If I login to main site and if I open a subdomain website in another window then it should automatically Logged in?
3) I tried every thing in localhost. Is it work in localhost?

In Drupal 7,I found using CAS Module we can do this.. I tried a lot from two days, and I am not getting any result.
One of the useful link I tried.. http://drupal.gatech.edu/wiki/configuring-cas-module . I stopped here.. http://yoursite/admin/config/people/cas . In people, this above link is not found... Add CAS Username link is there. Please anybody give me working solutions. Thanks in advance.

Comments

sstedman’s picture

If you only need SSO between subdomains - subdomain.example.com and www.example.com, try setting your $cookie_domain to '.example.com' in settings.php. If you need better handling for subdomains only, look into the Bakery module.

SSO solutions like CAS and simpleSAML may be overkill if you only need SSO between subdomains.

manishdrupaldev’s picture

Hi,
I have configured same settings on the drupal both sites having ssl enabled already. After click on login from one site (A), it redirected to another site (B) and it is saying "Page not found"

The requested page "/login?service=https%3A%2F%2FDOMAIN-B%2Fcas%3Fdestination%3Duser" could not be found.

Any help will be appriciated.