Обсуждение: pgsql: Add support for LDAP URLs

Поиск
Список
Период
Сортировка

pgsql: Add support for LDAP URLs

От
Peter Eisentraut
Дата:
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(-)


Re: pgsql: Add support for LDAP URLs

От
Bruce Momjian
Дата:
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. +


Re: pgsql: Add support for LDAP URLs

От
Bruce Momjian
Дата:
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. +

Вложения

Re: pgsql: Add support for LDAP URLs

От
Peter Eisentraut
Дата:
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.