Skip to content

Commit ec8d1e3

Browse files
committed
Fix build of LDAP URL feature
Some code was not ifdef'ed out for non-LDAP builds. patch from Bruce Momjian
1 parent 5ce108b commit ec8d1e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/libpq/hba.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,9 @@ parse_hba_line(List *line, int line_num)
13851385
static bool
13861386
parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
13871387
{
1388+
#ifdef USE_LDAP
13881389
hbaline->ldapscope = LDAP_SCOPE_SUBTREE;
1390+
#endif
13891391

13901392
if (strcmp(name, "map") == 0)
13911393
{
@@ -1448,11 +1450,12 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
14481450
}
14491451
else if (strcmp(name, "ldapurl") == 0)
14501452
{
1453+
#ifdef LDAP_API_FEATURE_X_OPENLDAP
14511454
LDAPURLDesc *urldata;
14521455
int rc;
1456+
#endif
14531457

14541458
REQUIRE_AUTH_OPTION(uaLDAP, "ldapurl", "ldap");
1455-
14561459
#ifdef LDAP_API_FEATURE_X_OPENLDAP
14571460
rc = ldap_url_parse(val, &urldata);
14581461
if (rc != LDAP_SUCCESS)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy