Postgres authentification Ident error

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
3/3/2010 4:55:01 AM
dmo
Gravatar
Total Posts 20

Postgres authentification Ident error

Hello,

I'm trying to set up mojo 2.3.3.9 on openSuSE 11.2 with mono and postgresql.

[quote]michel@linux-3ey7:~> mono -V
*Mono JIT compiler version 2.6.1 (tarball Thu Dec 17 17:24:22 UTC 2009)

My pb is with postgresql authentification :

Probing system...
File system permissions ok.
The system cannot connect to the pgsql database. Please check your connection string.

Npgsql.NpgsqlException: authentification Ident échouée pour l'utilisateur « mojo » Severity: FATAL Code: 28000 at Npgsql.NpgsqlState+c__Iterator1.MoveNext () [0x00000] in :0 at Npgsql.NpgsqlState.IterateThroughAllResponses (IEnumerable`1 ienum) [0x00000] in :0 at Npgsql.NpgsqlState.ProcessBackendResponses (Npgsql.NpgsqlConnector context) [0x00000] in :0 at Npgsql.NpgsqlConnectedState.Startup (Npgsql.NpgsqlConnector context) [0x00000] in :0 at Npgsql.NpgsqlConnector.Open () [0x00000] in :0

The connection string is "Server=localhost;Port=5432;UId=mojo;Pwd=toto;Database=mojodb;"

I created the db using these commands :

sudo su postgres
createuser mojo
psql -d template1 -c "alter user mojo with password 'toto'"
createdb -O mojo -E UTF8 mojodb
psql -l
Liste des bases de données
Nom | Propriétaire | Encodage | Tri | Type caract. | Droits d'accès
--------------+--------------+----------+-------------+--------------+-----------------------
mojodb | mojo | UTF8 | fr_FR.UTF-8 | fr_FR.UTF-8 |
postgres | postgres | UTF8 | fr_FR.UTF-8 | fr_FR.UTF-8 |
template0 | postgres | UTF8 | fr_FR.UTF-8 | fr_FR.UTF-8 | =c/postgres
: postgres=CTc/postgres
template1 | postgres | UTF8 | fr_FR.UTF-8 | fr_FR.UTF-8 | =c/postgres
: postgres=CTc/postgres
(6 lignes)

Where I am wrong ? What did I forget ?

3/3/2010 5:13:10 AM
dmo
Gravatar
Total Posts 20

[SOLVED] Re: Postgres authentification Ident error

Sorry. The pb is I was modifying the wrong pg_hba.conf file

This one is used : /var/lib/pgsql/data/pg_hba.conf

This one is not is not used, and I was of course working on : /usr/share/postgresql/pg_hba.conf

Michel.

You must sign in to post in the forums. This thread is closed to new posts.