Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ec8d1e32
Commit
ec8d1e32
authored
Dec 04, 2012
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build of LDAP URL feature
Some code was not ifdef'ed out for non-LDAP builds. patch from Bruce Momjian
parent
5ce108bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+4
-1
No files found.
src/backend/libpq/hba.c
View file @
ec8d1e32
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment