Re: CREATE ROLE jdbc vs pgadmin

From: Flávio Alves Granato <flavio(dot)granato(at)gmail(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: CREATE ROLE jdbc vs pgadmin
Date: 2011-11-17 20:31:42
Message-ID: CAL4Guox8iAJDuUG1s785ghxFv2ZPVb3nNe4tZJuhA9rT+1-kFw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

2011/11/17 John R Pierce <pierce(at)hogranch(dot)com>

> On 11/17/11 11:56 AM, Flávio Alves Granato wrote:
>
>>
>> I have a problem with the query 'CREATE ROLE' being executed via jdbc and
>> via pgadmin. When I run it via pgadmin:
>>
>> CREATE ROLE flavio LOGIN
>> ENCRYPTED PASSWORD '**cd6a0065e497a3c20b3c639df7d56b**0d'
>> NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;
>>
>> and via jdbc:
>>
>> CREATE ROLE flavio LOGIN
>> ENCRYPTED PASSWORD '**md5bf5a1a18f98fd6debde92560c93**3d2d9'
>> NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;
>>
>> I did update to the newest jdbc:
>>
>> CREATE ROLE flavio LOGIN
>> ENCRYPTED PASSWORD '**md50eb617ecacedd0cfae723bbe53c**75918'
>> NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;
>>
>> It would be a bug in jdbc? I am using PostgreSQL 9.1 and linux.
>>
>
> what is the problem?
>
>
> sorry

the problem was me, that between the chair and keyboard, just generating a
hash of the password before creating the ROLE and login time did not
generate the hash of the password. Fix the code of my application and have
no more problem.

thank you,

Flavio

>
> --
> john r pierce N 37, W 122
> santa cruz ca mid-left coast
>
>
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/**mailpref/pgsql-bugs<http://www.postgresql.org/mailpref/pgsql-bugs>
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message lindebg 2011-11-17 20:54:15 BUG #6299: pg_dump, pg_dumpall - Problem with the order of backup functions
Previous Message John R Pierce 2011-11-17 20:23:15 Re: CREATE ROLE jdbc vs pgadmin