Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec8d1e3

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 parent5ce108b commitec8d1e3

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
staticbool
13861386
parse_hba_auth_opt(char*name,char*val,HbaLine*hbaline,intline_num)
13871387
{
1388+
#ifdefUSE_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
elseif (strcmp(name,"ldapurl")==0)
14501452
{
1453+
#ifdefLDAP_API_FEATURE_X_OPENLDAP
14511454
LDAPURLDesc*urldata;
14521455
intrc;
1456+
#endif
14531457

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp