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

Commit1a2fdc9

Browse files
committed
Define LDAP_NO_ATTRS if necessary.
Commit83aaac4 introduced the use ofLDAP_NO_ATTRS to avoid requesting a dummy attribute when doing search+bindLDAP authentication. It turns out that not all LDAP implementations definethat macro, but its value is fixed by the protocol so we can define itourselves if it's missing.Author: Thomas MunroReported-By: Ashutosh SharmaDiscussion:https://postgr.es/m/CAE9k0Pm6FKCfPCiAr26-L_SMGOA7dT_k0%2B3pEbB8%2B-oT39xRpw%40mail.gmail.com
1 parent69835bc commit1a2fdc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/backend/libpq/auth.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,6 +2398,11 @@ InitializeLDAPConnection(Port *port, LDAP **ldap)
23982398
#defineLPH_USERNAME "$username"
23992399
#defineLPH_USERNAME_LEN (sizeof(LPH_USERNAME) - 1)
24002400

2401+
/* Not all LDAP implementations define this. */
2402+
#ifndefLDAP_NO_ATTRS
2403+
#defineLDAP_NO_ATTRS "1.1"
2404+
#endif
2405+
24012406
/*
24022407
* Return a newly allocated C string copied from "pattern" with all
24032408
* occurrences of the placeholder "$username" replaced with "user_name".

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp