pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
CREATE ROLE jdbc vs pgadmin
3+ messages / 2 participants
[nested] [flat]

* CREATE ROLE jdbc vs pgadmin
@ 2011-11-17 19:56  Flávio Alves Granato <flavio.granato@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Flávio Alves Granato @ 2011-11-17 19:56 UTC (permalink / raw)
  To: pgsql-bugs

gentlemen,

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 'cd6a0065e497a3c20b3c639df7d56b0d'
  NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;

and via jdbc:

CREATE ROLE flavio LOGIN
  ENCRYPTED PASSWORD 'md5bf5a1a18f98fd6debde92560c933d2d9'
  NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;

I did update to the newest jdbc:

CREATE ROLE flavio LOGIN
  ENCRYPTED PASSWORD 'md50eb617ecacedd0cfae723bbe53c75918'
NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;

 It would be a bug in jdbc? I am using PostgreSQL 9.1 and linux.

reguards,


Flávio Granato

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: CREATE ROLE jdbc vs pgadmin
@ 2011-11-17 20:23  John R Pierce <pierce@hogranch.com>
  parent: Flávio Alves Granato <flavio.granato@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: John R Pierce @ 2011-11-17 20:23 UTC (permalink / raw)
  To: pgsql-bugs

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 'cd6a0065e497a3c20b3c639df7d56b0d'
>   NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;
>
> and via jdbc:
>
> CREATE ROLE flavio LOGIN
>   ENCRYPTED PASSWORD 'md5bf5a1a18f98fd6debde92560c933d2d9'
>   NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;
>
> I did update to the newest jdbc:
>
> CREATE ROLE flavio LOGIN
>   ENCRYPTED PASSWORD 'md50eb617ecacedd0cfae723bbe53c75918'
> NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;
>
> It would be a bug in jdbc? I am using PostgreSQL 9.1 and linux.

what is the problem?



-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: CREATE ROLE jdbc vs pgadmin
@ 2011-11-17 20:31  Flávio Alves Granato <flavio.granato@gmail.com>
  parent: John R Pierce <pierce@hogranch.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Flávio Alves Granato @ 2011-11-17 20:31 UTC (permalink / raw)
  To: John R Pierce <pierce@hogranch.com>; +Cc: pgsql-bugs

2011/11/17 John R Pierce <pierce@hogranch.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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/**mailpref/pgsql-bugs<http://www.postgresql.org/mailpref/pgsql-bugs;
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2011-11-17 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-11-17 19:56 CREATE ROLE jdbc vs pgadmin Flávio Alves Granato <flavio.granato@gmail.com>
2011-11-17 20:23 ` John R Pierce <pierce@hogranch.com>
2011-11-17 20:31   ` Flávio Alves Granato <flavio.granato@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox