pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zlatko Matić <zlatko.matic1@sb.t-com.hr>
To: Volkan YAZICI <volkan.yazici@gmail.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] retrieving information about password from MS Access front-end
Date: Mon, 13 Jun 2005 14:34:52 +0200
Message-ID: <000001c57067$f6a22110$45221dc3@zlatkovyfkpgz6> (raw)
References: <00b901c56f93$b6d20520$8c261dc3@zlatkovyfkpgz6>
	<7104a737050612234734ffc2a5@mail.gmail.com>

Thanks.
----- Original Message ----- 
From: "Volkan YAZICI" <volkan.yazici@gmail.com>
To: "Zlatko Matić" <zlatko.matic1@sb.t-com.hr>
Cc: <pgsql-general@postgresql.org>; <pgsql-interfaces@postgresql.org>
Sent: Monday, June 13, 2005 8:47 AM
Subject: Re: [GENERAL] [INTERFACES] retrieving information about password 
from MS Access front-end


> Hi,
>
> On 6/13/05, Zlatko Matić <zlatko.matic1@sb.t-com.hr> wrote:
>> I want to create VBA procedure that compares value in text box with 
>> actual
>> password to determine if it is the same. As the password is encrypted 
>> (md5)
>> I can't read it from pg_shaddow system table. How to retrieve decrypted
>> value from pg_shaddow?
>
> It's (practically) impossible to decrypt a MD5 hashed password.
>
>> Or at least, how to transfer value from text-box (MS Access) to Postgres
>> so that Postgres can determine whether those two values
>> are the same ?
>
> You need to MD5 hash the input passsword and compare hashed input
> password with the one in pg_shadow. For instance:
>
> -- $1 for password input.
> SELECT usernm FROM recs WHERE passwd = md5($1)
>
> Furthermore, it'll bring some potential security problems to be able
> to access pg_shadow which requires db admin permissions.
>
> Regards.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 




view thread (4+ messages)

Message-ID: <000001c57067$f6a22110$45221dc3@zlatkovyfkpgz6>
Permalink:  ../000001c57067$f6a22110$45221dc3@zlatkovyfkpgz6/
Also on:    postgresql.org/message-id/000001c57067$f6a22110$45221dc3@zlatkovyfkpgz6

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: zlatko.matic1@sb.t-com.hr, volkan.yazici@gmail.com, pgsql-general@postgresql.org
  Subject: Re: [INTERFACES] retrieving information about password from MS Access front-end
  In-Reply-To: <000001c57067$f6a22110$45221dc3@zlatkovyfkpgz6>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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