pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postgresql Windows Authentication
5+ messages / 3 participants
[nested] [flat]

* Postgresql Windows Authentication
@ 2019-01-16 00:22 Weingartner, Steven <SWeingartner@semprautilities.com>
  2019-01-16 00:59 ` Re: Postgresql Windows Authentication Ron <ronljohnsonjr@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Weingartner, Steven @ 2019-01-16 00:22 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

Is there a way to use Active Directory Security groups to authenticate to postgresql (version 9.6)

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

* Re: Postgresql Windows Authentication
  2019-01-16 00:22 Postgresql Windows Authentication Weingartner, Steven <SWeingartner@semprautilities.com>
@ 2019-01-16 00:59 ` Ron <ronljohnsonjr@gmail.com>
  2019-01-16 03:43   ` RE:   Re: Postgresql Windows Authentication Weingartner, Steven <SWeingartner@semprautilities.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Ron @ 2019-01-16 00:59 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

On 1/15/19 6:22 PM, Weingartner, Steven wrote:
>
> Is there a way to use Active Directory Security groups to authenticate to 
> postgresql (version 9.6)
>

Not directly, but Pg supports LDAP authentication, and AD can authenticate 
using plain LDAP...

-- 
Angular momentum makes the world go 'round.

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

* RE:   Re: Postgresql Windows Authentication
  2019-01-16 00:22 Postgresql Windows Authentication Weingartner, Steven <SWeingartner@semprautilities.com>
  2019-01-16 00:59 ` Re: Postgresql Windows Authentication Ron <ronljohnsonjr@gmail.com>
@ 2019-01-16 03:43   ` Weingartner, Steven <SWeingartner@semprautilities.com>
  2019-01-16 04:32     ` Re: Re: Postgresql Windows Authentication Devendra Yadav <devendra.857@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Weingartner, Steven @ 2019-01-16 03:43 UTC (permalink / raw)
  To: Ron <ronljohnsonjr@gmail.com>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

Thanks for the input; I am currently using both LDAP and GSSAPI, But am getting request for granting access via security groups.

From: Ron <ronljohnsonjr@gmail.com>
Sent: Tuesday, January 15, 2019 5:00 PM
To: pgsql-admin@lists.postgresql.org
Subject: [EXTERNAL] Re: Postgresql Windows Authentication

On 1/15/19 6:22 PM, Weingartner, Steven wrote:

Is there a way to use Active Directory Security groups to authenticate to postgresql (version 9.6)

Not directly, but Pg supports LDAP authentication, and AD can authenticate using plain LDAP...
--
Angular momentum makes the world go 'round.
________________________________
This email originated outside of Sempra Energy. Be cautious of attachments, web links, or requests for information.


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

* Re: Re: Postgresql Windows Authentication
  2019-01-16 00:22 Postgresql Windows Authentication Weingartner, Steven <SWeingartner@semprautilities.com>
  2019-01-16 00:59 ` Re: Postgresql Windows Authentication Ron <ronljohnsonjr@gmail.com>
  2019-01-16 03:43   ` RE:   Re: Postgresql Windows Authentication Weingartner, Steven <SWeingartner@semprautilities.com>
@ 2019-01-16 04:32     ` Devendra Yadav <devendra.857@gmail.com>
  2019-01-16 16:32       ` RE:   Re: Re: Postgresql Windows Authentication Weingartner, Steven <SWeingartner@semprautilities.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Devendra Yadav @ 2019-01-16 04:32 UTC (permalink / raw)
  To: Weingartner, Steven <SWeingartner@semprautilities.com>; +Cc: Ron <ronljohnsonjr@gmail.com>; pgsql-admin@lists.postgresql.org

Hello Weingartner,

Could you please share the steps to configure AD & ldap authentication for
postgresql.

Thanks in advance,
Devendra Yadav

On Wed, Jan 16, 2019, 9:14 AM Weingartner, Steven <
SWeingartner@semprautilities.com wrote:

> Thanks for the input; I am currently using both LDAP and GSSAPI, But am
> getting request for granting access via security groups.
>
>
>
> *From:* Ron <ronljohnsonjr@gmail.com>
> *Sent:* Tuesday, January 15, 2019 5:00 PM
> *To:* pgsql-admin@lists.postgresql.org
> *Subject:* [EXTERNAL] Re: Postgresql Windows Authentication
>
>
>
> On 1/15/19 6:22 PM, Weingartner, Steven wrote:
>
> Is there a way to use Active Directory Security groups to authenticate to
> postgresql (version 9.6)
>
>
> Not directly, but Pg supports LDAP authentication, and AD can authenticate
> using plain LDAP...
>
> --
> Angular momentum makes the world go 'round.
> ------------------------------
>
> This email originated outside of Sempra Energy. Be cautious of
> attachments, web links, or requests for information.
>

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

* RE:   Re: Re: Postgresql Windows Authentication
  2019-01-16 00:22 Postgresql Windows Authentication Weingartner, Steven <SWeingartner@semprautilities.com>
  2019-01-16 00:59 ` Re: Postgresql Windows Authentication Ron <ronljohnsonjr@gmail.com>
  2019-01-16 03:43   ` RE:   Re: Postgresql Windows Authentication Weingartner, Steven <SWeingartner@semprautilities.com>
  2019-01-16 04:32     ` Re: Re: Postgresql Windows Authentication Devendra Yadav <devendra.857@gmail.com>
@ 2019-01-16 16:32       ` Weingartner, Steven <SWeingartner@semprautilities.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Weingartner, Steven @ 2019-01-16 16:32 UTC (permalink / raw)
  To: Devendra Yadav <devendra.857@gmail.com>; +Cc: Ron <ronljohnsonjr@gmail.com>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

For LDAP authentication, postgresql documentations sort of spells it out https://www.postgresql.org/docs/11/auth-ldap.html

The magic is done in pg_hba.conf
host    all             @userlist      xxx.x.x.x/8             ldap    ldapserver=<FQDN of ldap server>  ldapprefix="<AD Domain>" ldapsuffix=""
type = host
database = all  (all databases in this instance)
user =  file name containing the list of users this applies to (see notes in pg_hba.conf regarding this)
address = subnet connecting from (note I have opened to all host and rely on authentication ☹ )
method = “ldap” followed with the required data to query the ldap server

For windows authentication, again detail is the postgresql doc  https://www.postgresql.org/docs/11/gssapi-auth.html

Again a lot of the magic comes from pg_hba.conf
host    all             @userlist2       xxx.x.x.x/8             gss     include_realm=0 map=krb
type = host
database = all  (all databases in this instance)
user =  file name containing the list of users this applies to (see notes in pg_hba.conf regarding this)
address = subnet connecting from (note I have opened to all host and rely on authentication ☹ )
method = “gss” followed with the required data to process the authentication.
                Include_realm=0  ##### do not include the Kerberos name in the name ( I think this usage changed in 9.4 or 9.5???)
                Map=krb                ##### this refers to an entry you must place in pg_ident.conf file which equates the AD user with the postgresql user.

As the documentation notes on a linux server you need to create a Kerberos keytab file which I believes provides an ad user which processes the request. This user is mapped to the local account running postgres. The documentation tells how to create this file and where to put it but assumes it is being created on a linux server.  If you have a windows server the keytab file seems easier to create.




From: Devendra Yadav <devendra.857@gmail.com>
Sent: Tuesday, January 15, 2019 8:32 PM
To: Weingartner, Steven <SWeingartner@semprautilities.com>
Cc: Ron <ronljohnsonjr@gmail.com>; pgsql-admin@lists.postgresql.org
Subject: [EXTERNAL] Re: Re: Postgresql Windows Authentication

Hello Weingartner,

Could you please share the steps to configure AD & ldap authentication for postgresql.

Thanks in advance,
Devendra Yadav

On Wed, Jan 16, 2019, 9:14 AM Weingartner, Steven <SWeingartner@semprautilities.com<mailto:SWeingartner@semprautilities.com> wrote:
Thanks for the input; I am currently using both LDAP and GSSAPI, But am getting request for granting access via security groups.

From: Ron <ronljohnsonjr@gmail.com<mailto:ronljohnsonjr@gmail.com>>
Sent: Tuesday, January 15, 2019 5:00 PM
To: pgsql-admin@lists.postgresql.org<mailto:pgsql-admin@lists.postgresql.org>
Subject: [EXTERNAL] Re: Postgresql Windows Authentication

On 1/15/19 6:22 PM, Weingartner, Steven wrote:
Is there a way to use Active Directory Security groups to authenticate to postgresql (version 9.6)

Not directly, but Pg supports LDAP authentication, and AD can authenticate using plain LDAP...
--
Angular momentum makes the world go 'round.
________________________________
This email originated outside of Sempra Energy. Be cautious of attachments, web links, or requests for information.
________________________________
This email originated outside of Sempra Energy. Be cautious of attachments, web links, or requests for information.


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


end of thread, other threads:[~2019-01-16 16:32 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 00:22 Postgresql Windows Authentication Weingartner, Steven <SWeingartner@semprautilities.com>
2019-01-16 00:59 ` Ron <ronljohnsonjr@gmail.com>
2019-01-16 03:43   ` Weingartner, Steven <SWeingartner@semprautilities.com>
2019-01-16 04:32     ` Devendra Yadav <devendra.857@gmail.com>
2019-01-16 16:32       ` Weingartner, Steven <SWeingartner@semprautilities.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