#370 Extension using different credentials (socket) doesn't work anymore

4.0.2
closed-out-of-date
nobody
None
5
2014-06-26
2014-01-15
No

With adminer 3.7.1, we've been using the following extension to connect to another default socket. This doesn't work with adminer 4.0.2, it just doesn't login.

<?php
function adminer_object() {
    class AdminerSoftware extends Adminer {
        function credentials() {
            return array(':/var/run/mysqld_dev/mysqld.sock', $_GET["username"], get_session("pwds"));
        }
    }
    return new AdminerSoftware;
}
include "./adminer.php";
?>

Discussion

  • Jakub Vrána

    Jakub Vrána - 2014-01-31
    • status: open --> closed-out-of-date
     
  • Jakub Vrána

    Jakub Vrána - 2014-01-31

    Passwords are now stored encrypted in the session. Use get_password() instead of get_session("pwds").

     
  • REDLINK GmbH

    REDLINK GmbH - 2014-01-31

    Ah thanks, the function list over at http://www.adminer.org/en/extension/ still links to the old 3.x functions, that's where I stumbled.

     
  • Jakub Vrána

    Jakub Vrána - 2014-02-19

    Thanks, I've regenerated that page. get_password() is still not there but it will be with the next Adminer version.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks