Re: support for LDAP URLs - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: support for LDAP URLs
Date
Msg-id 1353037864.19890.5.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: support for LDAP URLs  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Thu, 2012-11-15 at 14:44 -0500, Robert Haas wrote:
> I think this is broadly reasonable, but I'm not sure this part is a
> good idea:
> 
> +#ifdef USE_LDAP
> +#ifndef WIN32
> +/* We use a deprecated function to keep the codepath the same as
> win32. */
> +#define LDAP_DEPRECATED 1
> +#include <ldap.h>
> +#else
> +#include <winldap.h>
> +#endif
> +#endif
> 
> Presumably if it's deprecated now, it might go away without notice,
> and we shouldn't be relying on it to stick around.

This part was copied from auth.c; it's been like that forever.

Since Windows has no support for URL parsing, this could actually be
simplified as far as hba.c goes, but the underlying issue is a different
battle.




pgsql-hackers by date:

Previous
From: Phil Sorber
Date:
Subject: Re: [WIP] pg_ping utility
Next
From: Michael Paquier
Date:
Subject: Re: [WIP] pg_ping utility