projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ce108b
)
Fix build of LDAP URL feature
author
Peter Eisentraut
<
[email protected]
>
Tue, 4 Dec 2012 11:41:21 +0000
(06:41 -0500)
committer
Peter Eisentraut
<
[email protected]
>
Tue, 4 Dec 2012 11:42:25 +0000
(06:42 -0500)
Some code was not ifdef'ed out for non-LDAP builds.
patch from Bruce Momjian
src/backend/libpq/hba.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/libpq/hba.c
b/src/backend/libpq/hba.c
index 2bb661cf122bd15725f3cc766134499158842a86..40727a9c8eeecdd1b1e94103bfebaf19f7ba5124 100644
(file)
--- a/
src/backend/libpq/hba.c
+++ b/
src/backend/libpq/hba.c
@@
-1385,7
+1385,9
@@
parse_hba_line(List *line, int line_num)
static bool
parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
{
+#ifdef USE_LDAP
hbaline->ldapscope = LDAP_SCOPE_SUBTREE;
+#endif
if (strcmp(name, "map") == 0)
{
@@
-1448,11
+1450,12
@@
parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
}
else if (strcmp(name, "ldapurl") == 0)
{
+#ifdef LDAP_API_FEATURE_X_OPENLDAP
LDAPURLDesc *urldata;
int rc;
+#endif
REQUIRE_AUTH_OPTION(uaLDAP, "ldapurl", "ldap");
-
#ifdef LDAP_API_FEATURE_X_OPENLDAP
rc = ldap_url_parse(val, &urldata);
if (rc != LDAP_SUCCESS)