Re: HTTP user authentication against PostgreSQL

From: Jeremy Palmer <JPalmer(at)linz(dot)govt(dot)nz>
To: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: HTTP user authentication against PostgreSQL
Date: 2015-01-30 08:31:21
Message-ID: C6B695652D5E6B4597E90C5734C024262551A0F9B0@prdlsmmsg01.ad.linz.govt.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David G Johnston wrote

> Personally, I would consider having both Apache and PostgreSQL talk to a
> LDAP database if you really need to have a single point of identity
> definition.

The PostgreSQL DB is currently setup with Kerberos for Windows SSO, as well as MD5 password authentication for another pool of other PostgreSQL users who are not part of our Active Directory. LDAP could be used, but then we would have to move the current external users into the AD, and I'm not sure that can happen due to policy reasons.

> Doing what you describe here doesn't seem to me to be a good idea as
> PostgreSQL has no provisions for making its internal catalogs usable in this
> manner - or even at all outside of the libpq protocol - for security
> reasons. The internal user database for a system is seldom made accessible
> for other applications that do not intend to make use of the actual service
> that system is providing.
>
>I'm not apt to have any other useful suggestions but describing why you want
> to do this thing may encourage others to suggest additional alternatives.

Looking at building a JSON RESTFul API that connects to the database to performs CRUD operations.

David J.

This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info(at)linz(dot)govt(dot)nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2015-01-30 09:33:18 Re: HTTP user authentication against PostgreSQL
Previous Message David G Johnston 2015-01-30 05:42:55 Re: HTTP user authentication against PostgreSQL