pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedLDAP, single sign on from Windows client
2+ messages / 2 participants
[nested] [flat]
* LDAP, single sign on from Windows client
@ 2021-04-06 12:17 chlor <hans.schou@gmail.com>
2021-04-06 15:59 ` Re: LDAP, single sign on from Windows client Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 2+ messages in thread
From: chlor @ 2021-04-06 12:17 UTC (permalink / raw)
To: pgsql-general
Hi
I have a Linux server which is setup with authentication via LDAP against a
Windows A/D. In pg_hba I have
host ... ldap ldapserver=example.org ldapprefix="" ldapsuffix="@example.org"
The user is also created in PostgreSQL but without a password.
I can then login with psql from a Windows client with a user defined in the
AD.
But the problem is that psql asks for a password.
Is it possible to make a single sign-on without the password prompt?
The Linux (Ubuntu) has been joined to the domain with "realm" but it
doesn't seem to change anything.
best regards
Hans Schou
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: LDAP, single sign on from Windows client
2021-04-06 12:17 LDAP, single sign on from Windows client chlor <hans.schou@gmail.com>
@ 2021-04-06 15:59 ` Stephen Frost <sfrost@snowman.net>
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Frost @ 2021-04-06 15:59 UTC (permalink / raw)
To: chlor <hans.schou@gmail.com>; +Cc: pgsql-general
Greetings,
* chlor (hans.schou@gmail.com) wrote:
> I have a Linux server which is setup with authentication via LDAP against a
> Windows A/D. In pg_hba I have
> host ... ldap ldapserver=example.org ldapprefix="" ldapsuffix="@example.org"
>
> The user is also created in PostgreSQL but without a password.
> I can then login with psql from a Windows client with a user defined in the
> AD.
>
> But the problem is that psql asks for a password.
> Is it possible to make a single sign-on without the password prompt?
Yes, use GSSAPI based authentication instead of LDAP. Using GSSAPI is
also more secure and avoids sending the user's password to the PG
server.
PG Docs: https://www.postgresql.org/docs/current/gssapi-auth.html
Blog I wrote about setting it up:
https://blog.crunchydata.com/blog/windows-active-directory-postgresql-gssapi-kerberos-authentication
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-04-06 15:59 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 12:17 LDAP, single sign on from Windows client chlor <hans.schou@gmail.com>
2021-04-06 15:59 ` Stephen Frost <sfrost@snowman.net>
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