I've a hook that refuses access for certain users to login ( LdapAuthenticationConf.class.php, allowuser(), see #1634930). When it refuses access, a watchdog message appears:
"Trying to get property of non-object in drupal_lookup_path() (line 77 of /var/www/includes/path.inc"

And the site goes into a loop, it tries to authenticate many times, and each time it adds on to the language prefix (to a multi lang using lang prefixes) site. The URL becomes
http://mysite/user/login/sso?destination=en/en/en/en/en/en/en/en/en/en
Which in turn leads too:
Error 310 (net::ERR_TOO_MANY_REDIRECTS)

The sso module is enabled, and in this test case the user is already logged in via kerberos (to windows/AD). So the browser has an identify, and will probably try to authenticate several times.

The code in path.inc is:
// If no language is explicitly specified we default to the current URL
// language. If we used a language different from the one conveyed by the
// requested URL, we might end up being unable to check if there is a path
// alias matching the URL path.
$path_language = $path_language ? $path_language : $language_url->language;

So it looks like the language context is being lost.

Questions:
- How can one stop the sso from constantly authenticating?
- Any tips of how to keep the language content, so that core stops adding on the prefix

Comments

johnbarclay’s picture

Component: Documentation » Code
seanb’s picture

This can be fixed by adding drupal_bootstrap(DRUPAL_BOOTSTRAP_LANGUAGE); in ldap_sso_boot().

Pinni3’s picture

how to add this ? and where ?

I cant get SSO working :(((

johnbarclay’s picture

there is some documentation at http://drupal.org/node/1371478, You are unlikely to get a response to this since its a bug report issue. The best way is to (1) open up a support issue (2) Include some background on your environment for SSO and (3) offer to improve the documentation based on whatever response you get. This approach generally works for me. And the SSO documentation hasn't had a lot of eyes on it.

johnbarclay’s picture

Status: Active » Closed (won't fix)

please enter a clearer bug report. thanks.

johnbarclay’s picture

Issue summary: View changes

Add Caveat for logged user, line marked with EDIT

boran’s picture

Issue summary: View changes

Clean up spelling, make more understandable