pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedMD5 Passwords and user administratio
5+ messages / 3 participants
[nested] [flat]
* MD5 Passwords and user administratio
@ 2003-02-08 22:07 Carlos Ortiz <ortizc2@yahoo.com>
0 siblings, 0 replies; 5+ messages in thread
From: Carlos Ortiz @ 2003-02-08 22:07 UTC (permalink / raw)
To: pgsql-admin
I am trying to figure out exactly how to set someone's password when using MD5
passwords in postgres. I am trying to automate some features, and still can't
figure out what I am doing wrong. MD5 of the password is obviously not what is
used by itself, since that would be insecure, but I can't figure out what the
salt is. What exactly is psotgres passing to the MD5 hash to make up that
incredible unintelligible stream of characters that it stores in the password
field of the pg_shadow table?
desperate,
Carlos
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* MD5 Passwords and user administratio
@ 2003-02-08 22:19 Carlos Ortiz <ortizc2@yahoo.com>
0 siblings, 2 replies; 5+ messages in thread
From: Carlos Ortiz @ 2003-02-08 22:19 UTC (permalink / raw)
To: pgsql-admin
I am trying to figure out exactly how to set someone's password when using MD5
passwords in postgres. I am trying to automate some features, and still can't
figure out what I am doing wrong. MD5 of the password is obviously not wha is
used by itself, since that would be insecure, but I can't figure out what the
salt is. What exactly is psotgres passing to the MD5 hash to make up that
incredible unintelligible stream of characters that it stores in the password
field of the pg_shadow table?
desperate,
Carlos
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: MD5 Passwords and user administratio
@ 2003-02-09 03:12 Tom Lane <tgl@sss.pgh.pa.us>
parent: Carlos Ortiz <ortizc2@yahoo.com>
1 sibling, 1 reply; 5+ messages in thread
From: Tom Lane @ 2003-02-09 03:12 UTC (permalink / raw)
To: Carlos Ortiz <ortizc2@yahoo.com>; +Cc: pgsql-admin
Carlos Ortiz <ortizc2@yahoo.com> writes:
> I am trying to figure out exactly how to set someone's password when
> using MD5 passwords in postgres.
ALTER USER joe WITH PASSWORD 'secret';
> What exactly is psotgres passing to the MD5 hash to make up that
> incredible unintelligible stream of characters that it stores in the
> password field of the pg_shadow table?
I think the salt is the username --- but you shouldn't write code that
depends on knowing that. None of the MD5 behavior is considered
user-visible.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: MD5 Passwords and user administratio
@ 2003-02-09 17:16 Carlos Ortiz <ortizc2@yahoo.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Carlos Ortiz @ 2003-02-09 17:16 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
Thanx. Actually, it was a version problem. Was using 7.2 and it did not do
that automatically. Spent some time and installed 7.3 from source yesterday.
Thanx for the help
Carlos
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Carlos Ortiz <ortizc2@yahoo.com> writes:
> > I am trying to figure out exactly how to set someone's password when
> > using MD5 passwords in postgres.
>
> ALTER USER joe WITH PASSWORD 'secret';
>
> > What exactly is psotgres passing to the MD5 hash to make up that
> > incredible unintelligible stream of characters that it stores in the
> > password field of the pg_shadow table?
>
> I think the salt is the username --- but you shouldn't write code that
> depends on knowing that. None of the MD5 behavior is considered
> user-visible.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: MD5 Passwords and user administratio
@ 2003-02-10 01:18 Rob Abernethy IV <abernethy@dynedge.com>
parent: Carlos Ortiz <ortizc2@yahoo.com>
1 sibling, 0 replies; 5+ messages in thread
From: Rob Abernethy IV @ 2003-02-10 01:18 UTC (permalink / raw)
To: pgsql-admin
The username is the salt.
--
Robert Abernethy IV
Dynamic Edge, Inc.
734.975.0460
> I am trying to figure out exactly how to set someone's password when
> using MD5 passwords in postgres. I am trying to automate some
> features, and still can't figure out what I am doing wrong. MD5 of
> the password is obviously not wha is used by itself, since that
> would be insecure, but I can't figure out what the salt is. What
> exactly is psotgres passing to the MD5 hash to make up that
> incredible unintelligible stream of characters that it stores in
> the password field of the pg_shadow table?
>
> desperate,
>
> Carlos
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>
> (send "unregister YourEmailAddressHere" to
> majordomo@postgresql.org)
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-02-10 01:18 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-08 22:07 MD5 Passwords and user administratio Carlos Ortiz <ortizc2@yahoo.com>
2003-02-08 22:19 MD5 Passwords and user administratio Carlos Ortiz <ortizc2@yahoo.com>
2003-02-09 03:12 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-02-09 17:16 ` Carlos Ortiz <ortizc2@yahoo.com>
2003-02-10 01:18 ` Rob Abernethy IV <abernethy@dynedge.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