pgsql: Add support for LDAP URLs

Started by Peter Eisentrautover 13 years ago4 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Add support for LDAP URLs

Allow specifying LDAP authentication parameters as RFC 4516 LDAP URLs.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/aa2fec0a18e4d23272c78916ef318078c920611a

Modified Files
--------------
doc/src/sgml/client-auth.sgml | 37 +++++++++++++++++++++++++
src/backend/libpq/auth.c | 2 +-
src/backend/libpq/hba.c | 59 ++++++++++++++++++++++++++++++++++++++++-
src/include/libpq/hba.h | 1 +
4 files changed, 97 insertions(+), 2 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#2Bruce Momjian
bruce@momjian.us
In reply to: Peter Eisentraut (#1)
Re: pgsql: Add support for LDAP URLs

On Tue, Dec 4, 2012 at 04:31:51AM +0000, Peter Eisentraut wrote:

Add support for LDAP URLs

Allow specifying LDAP authentication parameters as RFC 4516 LDAP URLs.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/aa2fec0a18e4d23272c78916ef318078c920611a

Modified Files
--------------
doc/src/sgml/client-auth.sgml | 37 +++++++++++++++++++++++++
src/backend/libpq/auth.c | 2 +-
src/backend/libpq/hba.c | 59 ++++++++++++++++++++++++++++++++++++++++-
src/include/libpq/hba.h | 1 +
4 files changed, 97 insertions(+), 2 deletions(-)

I am seeing this compile error in Debian Squeeze:

hba.c: In function ‘parse_hba_auth_opt’:
hba.c:1388: error: ‘LDAP_SCOPE_SUBTREE’ undeclared (first use in this function)
hba.c:1388: error: (Each undeclared identifier is reported only once
hba.c:1388: error: for each function it appears in.)
hba.c:1451: error: ‘LDAPURLDesc’ undeclared (first use in this function)
hba.c:1451: error: ‘urldata’ undeclared (first use in this function)
hba.c:1452: warning: ISO C90 forbids mixed declarations and code
hba.c:1452: warning: unused variable ‘rc’
make[3]: *** [hba.o] Error 1

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#3Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#2)
Re: pgsql: Add support for LDAP URLs

On Mon, Dec 3, 2012 at 11:46:56PM -0500, Bruce Momjian wrote:

On Tue, Dec 4, 2012 at 04:31:51AM +0000, Peter Eisentraut wrote:

Add support for LDAP URLs

Allow specifying LDAP authentication parameters as RFC 4516 LDAP URLs.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/aa2fec0a18e4d23272c78916ef318078c920611a

Modified Files
--------------
doc/src/sgml/client-auth.sgml | 37 +++++++++++++++++++++++++
src/backend/libpq/auth.c | 2 +-
src/backend/libpq/hba.c | 59 ++++++++++++++++++++++++++++++++++++++++-
src/include/libpq/hba.h | 1 +
4 files changed, 97 insertions(+), 2 deletions(-)

I am seeing this compile error in Debian Squeeze:

hba.c: In function ‘parse_hba_auth_opt’:
hba.c:1388: error: ‘LDAP_SCOPE_SUBTREE’ undeclared (first use in this function)
hba.c:1388: error: (Each undeclared identifier is reported only once
hba.c:1388: error: for each function it appears in.)
hba.c:1451: error: ‘LDAPURLDesc’ undeclared (first use in this function)
hba.c:1451: error: ‘urldata’ undeclared (first use in this function)
hba.c:1452: warning: ISO C90 forbids mixed declarations and code
hba.c:1452: warning: unused variable ‘rc’
make[3]: *** [hba.o] Error 1

How do you like this attached patch to fix it?

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachments:

ldap.difftext/x-diff; charset=us-asciiDownload+4-1
#4Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#3)
Re: pgsql: Add support for LDAP URLs

On Tue, 2012-12-04 at 00:04 -0500, Bruce Momjian wrote:

I am seeing this compile error in Debian Squeeze:

hba.c: In function ‘parse_hba_auth_opt’:
hba.c:1388: error: ‘LDAP_SCOPE_SUBTREE’ undeclared (first use in this function)
hba.c:1388: error: (Each undeclared identifier is reported only once
hba.c:1388: error: for each function it appears in.)
hba.c:1451: error: ‘LDAPURLDesc’ undeclared (first use in this function)
hba.c:1451: error: ‘urldata’ undeclared (first use in this function)
hba.c:1452: warning: ISO C90 forbids mixed declarations and code
hba.c:1452: warning: unused variable ‘rc’
make[3]: *** [hba.o] Error 1

How do you like this attached patch to fix it?

Fixed, thanks.

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers