When LDAP SSO is enabled with "Turn on automated single sign-on" turned on, each drush command that bootstraps Drupal caused the error
Drush command terminated abnormally due to an unrecoverable error
The error is triggered by the drupal_goto() during the boot phase when user 0 is loaded in ldap_sso_user() in
if(variable_get('ldap_sso_seamless_login', 0) == 1 && ($_COOKIE['seamless_login_attempted'] != 'true')){
setcookie("seamless_login_attempted", 'true', time()+variable_get('ldap_sso_cookie_expire', (315360000)), base_path(), "");
$_SESSION['seamless_login_attempted'] = $_COOKIE['seamless_login_attempted'];
$destination = 'destination='. rawurlencode($_GET['q']);
drupal_goto('user/login/sso', $destination);
}
Comments
Comment #1
sutharsan commentedIt also causes cron job to fail when called like
wget -O - -q -t 1 http://example.com/cron.phpComment #2
zanixAdd this function somewhere in ldap_sso.module
Find this line
Change to
Comment #3
zanixHere is a real patch for this issue
Comment #4
grahlCLI checks were added in the 7.x release, I believe this is already fixed. Please reopen if you believe otherwise.