[shib_auth] logging in a drupal user with a shib session from another log in

Kristof Bajnok bajnokk at niif.hu
Fri May 20 23:07:30 CEST 2011


On 2011. May 20. 21:12:22 Tommy Peterson wrote:
> The problem I can’t seem to understand, which is probably related to me
> being very new to this module and somewhat to Drupal, is that when I
> access the drupal site configured to be controlled by Shibboleth after
> already logging in to Shibboleth, I am not logged into Drupal. The login
> button is still there. How can I make th is work? Basically, I have
> another application on the same server controlled by shibboleth. I log in
> there. But when I access the drupal site/pages, with the shibboleth
> session still active, again, I still see the Drupal pages’ log in button
> and am not logged in. 

Most common problem is that Shibboleth is not protecting your Drupal 
installation path, either because there is no 'require shibboleth' stanza for 
the directory or because of an http/https problem.

> Also, if I want to make things simple for myself and my installation and
> have Drupal/shib-auth look for server variables named “mail” and “name”
> instead 'HTTP_SHIB_MAIL' and   'REMOTE_USER' is it just a simple matter of
> updating the $var_store array like so in the
> drupal/modules/shib_auth/shib_auth.module file? Anything else that I need
> to do? 
> 'email_variable' => 'mail',
> 'username_variable' => 'name',

No, the proper way is to use the configuration interface. Look for 
Administer/User management/Shibboleth settings.

Kristof



More information about the shib_auth mailing list