Re: phpPgAdmin

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Christophe Mailhebuau <christophe(dot)mailhebuau(at)aquitaine(dot)fr>
Cc: Pgsql Fr Generale <pgsql-fr-generale(at)postgresql(dot)org>
Subject: Re: phpPgAdmin
Date: 2014-06-05 13:36:39
Message-ID: 1401975399.10464.8.camel@localhost.localdomain
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale

On Thu, 2014-06-05 at 15:14 +0200, Christophe Mailhebuau wrote:
> voici mon fichier config.inc.php (j'ai fait le ménage pour qu'il soit lisible)
>
>
> <?php
>
> $conf['servers'][0]['desc'] = 'PostgreSQL';
> $conf['servers'][0]['host'] = 'localhost';
> $conf['servers'][0]['port'] = 5432;
> $conf['servers'][0]['sslmode'] = 'disable';
> $conf['servers'][0]['defaultdb'] = 'template1';
> $conf['servers'][0]['pg_dump_path'] = '/usr/bin/pg_dump';
> $conf['servers'][0]['pg_dumpall_path'] = '/usr/bin/pg_dumpall';
> $conf['default_lang'] = 'auto';
> $conf['autocomplete'] = 'default on';
>
> $conf['extra_login_security'] = false;
>
> $conf['owned_only'] = true;
>
> $conf['show_comments'] = true;
>
> $conf['show_advanced'] = false;
> $conf['show_system'] = false;
>
> $conf['min_password_length'] = 1;
>
> $conf['left_width'] = 200;
> $conf['theme'] = 'default';
>
> $conf['show_oids'] = false;
>
> $conf['max_rows'] = 30;
>
> $conf['max_chars'] = 50;
>
> $conf['use_xhtml_strict'] = false;
>
> $conf['help_base'] = 'http://www.postgresql.org/docs/%s/interactive/';
>
> $conf['ajax_refresh'] = 3;
>
> $conf['plugins'] = array();
>
> /*****************************************
> * Don't modify anything below this line *
> *****************************************/
>
> $conf['version'] = 19;
>
> ?>
>
> et mon fichier pg_hba.conf (tout le haut du fichier sont des commentaires)
>
>
> # TYPE DATABASE USER ADDRESS METHOD
>
> # "local" is for Unix domain socket connections only
> # IPv4 local connections:
> host CRA_POR_USINE_BO_INT CRA_POR_USINE_BO_INT 127.0.0.1/32 password
> host CRA_POR_AGENT_INT CRA_POR_AGENT_INT 127.0.0.1/32 password
>
> host all all all trust
> host CRA_POR_USINE_BO_INT CRA_POR_USINE_BO_INT 172.17.252.74/32 password
> host CRA_POR_AGENT_INT CRA_POR_AGENT_INT 172.17.252.74/32 password
>
> # IPv6 local connections:
> # Allow replication connections from localhost, by a user with the
> # replication privilege.
>
> local all all peer
> # IPv4 local connections:
> host all all 127.0.0.1/32 md5
> # IPv6 local connections:
> host all all ::1/128 md5
> host all all 192.168.112.0/21 md5
> # Allow replication connections from localhost, by a user with the
> # replication privilege.
> #local replication postgres peer
> #host replication postgres 127.0.0.1/32 ident
> #host replication postgres ::1/128 ident
>

Le pg_hba.conf n'a rien à voir là-dedans. Le message d'erreur donné est
un message provenant de phpPgAdmin. Cet outil interdit par défaut les
connexions en tant qu'utilisateur postgres. Configurer
$conf['extra_login_security'] à false permet de ne pas faire cette
vérification supplémentaire.

Si vous avez configuré $conf['extra_login_security'] à false et que cela
ne fonctionne toujours pas, c'est soit un bug au niveau de phpPgAdmin
soit une configuration d'un mauvais fichier (ie, vous avez configuré le
fichier X au lieu de configurer le fichier Y).

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com

--
Envoi via la liste pgsql-fr-generale (pgsql-fr-generale(at)postgresql(dot)org)

In response to

Responses

Browse pgsql-fr-generale by date

  From Date Subject
Next Message Christophe Mailhebuau 2014-06-05 13:44:59 Re: phpPgAdmin
Previous Message Christophe Mailhebuau 2014-06-05 13:14:49 Re: phpPgAdmin