From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | support for LDAP URLs |
Date: | 2012-11-13 03:38:57 |
Message-ID: | 1352777937.23535.10.camel@vanquo.pezone.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Here is a patch to support RFC 2255 LDAP URLs in pg_hba.conf. So,
instead of, say
host ... ldap ldapserver=ldap.example.net ldapbasedn="dc=example, dc=net" ldapsearchattribute=uid
you could write
host ... ldap lapurl="ldap://ldap.example.net/dc=example,dc=net?uid?sub"
Apache and probably other software uses the same format, and it's easier
to have a common format for all such configuration instead of having to
translate the information provided by the LDAP admin into each
software's particular configuration spellings.
I'm using the OpenLDAP-provided URL parsing routine, which means this
wouldn't be supported on Windows. But we already support different
authentication settings on different platforms, so this didn't seem such
a big problem.
Attachment | Content-Type | Size |
---|---|---|
pg-ldap-urls.patch | text/x-patch | 5.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Ants Aasma | 2012-11-13 03:44:54 | Re: Further pg_upgrade analysis for many tables |
Previous Message | Peter Eisentraut | 2012-11-13 03:31:37 | Re: Doc patch to See Also: CREATE TABLE AS in CREATE TABLE docs |