Re: [INTERFACES] retrieving information about password from MS Access front-end

From: Zlatko Matić <zlatko(dot)matic1(at)sb(dot)t-com(dot)hr>
To: "Volkan YAZICI" <volkan(dot)yazici(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>, <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [INTERFACES] retrieving information about password from MS Access front-end
Date: 2005-06-13 12:34:52
Message-ID: 000001c57067$f6a22110$45221dc3@zlatkovyfkpgz6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

Thanks.
----- Original Message -----
From: "Volkan YAZICI" <volkan(dot)yazici(at)gmail(dot)com>
To: "Zlatko Matić" <zlatko(dot)matic1(at)sb(dot)t-com(dot)hr>
Cc: <pgsql-general(at)postgresql(dot)org>; <pgsql-interfaces(at)postgresql(dot)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(dot)matic1(at)sb(dot)t-com(dot)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(at)postgresql(dot)org
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Zlatko Matić 2005-06-13 12:41:37 Re: Pb with linked tables on PG8
Previous Message Howard Cole 2005-06-13 09:34:12 Re: Case sensitivity

Browse pgsql-interfaces by date

  From Date Subject
Next Message Volkan YAZICI 2005-06-13 13:57:17 Re: Will libpq 8 PQ*cancel functions work with 7.4 servers?
Previous Message Piotr Sulecki 2005-06-13 08:46:15 Will libpq 8 PQ*cancel functions work with 7.4 servers?