Re: LDAP service lookup - Mailing list pgsql-general

From Albe Laurenz
Subject Re: LDAP service lookup
Date
Msg-id D960CB61B694CF459DCFB4B0128514C2220A8F@exadv11.host.magwien.gv.at
Whole thread Raw
In response to LDAP service lookup  ("Dawid Kuroczko" <qnex42@gmail.com>)
List pgsql-general
Dawid Kuroczko wrote:
> [...] and it also would be valuable to
> add into pg_service.conf.sample an example ldap:// stanza, so if
> person opens the file, she will be enlightened.

I like that idea.

> And a missing feature.  Or rather treat it as feature request. :-)
> A "wildcard entry".  I would like to set my environment that,
> on each client I would put pg_service.conf having two and only
> two LDAP servers in it (second one for failover. I think the entry
> might look like:
> ### wildcard entry:
> [%]  # or [*] ?
>
ldap://ldap1.mycompany.com/dc=mycompany,dc=com?uniqueMember?one?(cn=%s)
>
ldap://ldap2.mycompany.com/dc=mycompany,dc=com?uniqueMember?one?(cn=%s)
>
> Which, when given:
>   psql "service = foobarbaz"
> ..would query ...?(cn=foobarbaz)

This is also worth thinking about ... it would make the code and
the pg_service.conf file more complicated, but would definitely be
useful
if you only use the service file for LDAP lookup.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Dave Page
Date:
Subject: Re: Windows Download
Next
From: Kamil Srot
Date:
Subject: Re: Tables dissapearing