You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
677 B
28 lines
677 B
<?php
|
|
|
|
require('/etc/phpMyAdmin/sso.inc.php');
|
|
|
|
if (isSet($_SERVER['REDIRECT_REMOTE_USER'])){
|
|
$ssologin = $_SERVER['REDIRECT_REMOTE_USER'];
|
|
}
|
|
else{
|
|
$ssologin = $_SERVER['REMOTE_USER'];
|
|
}
|
|
|
|
if(isset($ssologin) && isset($login[$ssologin]) && isset($password[$ssologin]])) {
|
|
session_set_cookie_params(0, '/', '', 0);
|
|
session_name('SignonSession');
|
|
session_start();
|
|
$_SESSION['PMA_single_signon_user'] = $login[$ssologin];
|
|
$_SESSION['PMA_single_signon_password'] = $password[$ssologin];
|
|
session_write_close();
|
|
header('Location: /index.php');
|
|
}
|
|
else {
|
|
header('HTTP/1.0 403 Forbidden');
|
|
echo 'Not logged in the SSO system';
|
|
die;
|
|
}
|
|
|
|
?>
|
|
|
|
|