New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZeroConf not working when using SSO #16906
Comments
|
Bonjour @clementmoulin So you are using https://docs.phpmyadmin.net/en/latest/setup.html#auth-signon Could you provide the script so I can replicate your setup locally please ?
You mean to fix a phpMyAdmin broken configuration storage setup ? |
|
Bonjour @williamdes The script is basically this: require_once('config.inc.php');
$_SESSION['PMA_single_signon_user'] = $username;
$_SESSION['PMA_single_signon_password'] = $password;
isset($cfg['Servers'][$id]) || die('BAD REQUEST');
$_SESSION['PMA_single_signon_cfgupdate'] = $cfg['Servers'][$id];
header('Location: index.php');And yes, I'm speaking about "configuration storage / Zero configuration" feature. |
|
Bonjour @clementmoulin Thank you for your script, this will help |
|
Here is the |
|
I am sorry about the delay it takes to be processed, this is on my TODO list and I will let you know when I can test this |
|
After a bit of research I was able to re-build your setup This is my SSO page <?php
/* Use cookies for session */
ini_set('session.use_cookies', 'true');
/* Change this to true if using phpMyAdmin over https */
$secure_cookie = true;
/* Need to have cookie visible from parent directory */
session_set_cookie_params(0, '/', '', $secure_cookie, true);
/* Create signon session */
$session_name = 'sso-sr-phm';
session_name($session_name);
// Uncomment and change the following line to match your $cfg['SessionSavePath']
//session_save_path('/foobar');
session_start();
$id = 1;
$username = 'public';
$password = 'public';
print_r($_SESSION['PMA_single_signon_error_message'] ?? 'n/a');
require_once('/mnt/Dev/pma/phpMyAdmin-5.1.2-dev-all-languages/config.inc.php');
$_SESSION['PMA_single_signon_user'] = $username;
$_SESSION['PMA_single_signon_password'] = $password;
isset($cfg['Servers'][$id]) || die('BAD REQUEST');
$_SESSION['PMA_single_signon_cfgupdate'] = $cfg['Servers'][$id];
session_write_close();
?>
<a href="/pma/phpMyAdmin-5.1.2-dev-all-languages">PMA</a>When I try to fix the phpMyAdmin tables I have |
|
Hi @williamdes I don't have a option to "fix" (or maybe I didn't find it). On the homepage I get: And when I go to the "Analysis":
|
|
Hi @clementmoulin Normally there is a fix link on top and it does not work in my testing |
|
My bad :/ There is indeed an alert box with a "fix" link ! |
Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
…e than "phpmyadmin" Signed-off-by: William Desportes <williamdes@wdes.fr>
|
FYI I did push cdb027c |
…be selected Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
…eating the storage tables Signed-off-by: William Desportes <williamdes@wdes.fr>
… canAccessStorageTable function Signed-off-by: William Desportes <williamdes@wdes.fr>
|
After fixing edge case after edge case I have no covered what you reported.
|
Before this fix you needed to click twice on create tables to see a full list of green checks. As part of the values where fetched by a global and the feature list values by this $cfgRelation passed as a parameter. This was visible when the pmadb existed but had no tables in it. Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
Everything should be fixed, please let me know if that fits your setup using the latest snapshot :) |
Describe the bug
Using SSO with multiple servers, we are using PMA_single_signon_cfgupdate to send all parameters (because unfortunely SSO does not allow us to use config file).
Relations tables works if they are created, but if not, we cannot create it through GUI or with ZeroConf parameter.
To Reproduce
Enable SSO login.
Send all relations parameters through SSO session into PMA_single_signon_cfgupdate.
Expected behavior
Users should be able to create missing tables.
The text was updated successfully, but these errors were encountered: