Including phpMyAdmin Single Sign ON

Cyberdevil

Verified User
Joined
Sep 16, 2007
Messages
40
I'm stuck with the implementation of a way to have single sign on working for phpmyadmin.

The skinfile that lists all the databases is: /usr/local/directadmin/data/skins/enhanced/user/db/db.html but the table with all the databases is hardcoded and replaces |DATABASES| in that file.

Another way is to create one user that has access to all the databases and change this line: <a target="_blank" href="|HTTP|://|HOSTNAME|/phpmyadmin">|LANG_PMA|</a> with a form that has login and password in hidden fields in the form.
Although it would even be better if SSO could be implemented inside directadmin as it only requires following sessions:
$_SESSION['PMA_single_signon_user']
$_SESSION['PMA_single_signon_password']
$_SESSION['PMA_single_signon_host']
$_SESSION['PMA_single_signon_port']

Anyone tried this already or could we launch this as a feature request? Would be nice to finally allow the SSO to phpmyadmin to work.
 

kaufenpreis

Verified User
Joined
Aug 24, 2014
Messages
41
You are not using same signon session name. Use

session_name('PHPSESSID');
before session_start.
 

Cyberdevil

Verified User
Joined
Sep 16, 2007
Messages
40
For SSO, following things are required:

1) Adding a GRANT rule for a common user during DB creation
2) Add a link for phpmyadmin next to each database in the list (can't be done inside a skin?)
3) Small configuration for the SESSIONS

But I'm actually stuck on nr 2.
 
Top