From e1b92cf6d72d84b3d5f4e3124b42f137fb09db91 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Fri, 11 Aug 2023 17:17:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81ldap=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/interfaces/libpq/fe-auth.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/interfaces/libpq/fe-auth.cpp b/src/common/interfaces/libpq/fe-auth.cpp index fc56b5099..1e7773e2d 100644 --- a/src/common/interfaces/libpq/fe-auth.cpp +++ b/src/common/interfaces/libpq/fe-auth.cpp @@ -1040,9 +1040,11 @@ static int pg_password_sendauth(PGconn* conn, const char* password, AuthRequest break; } +#ifdef USE_LDAP case AUTH_REQ_PASSWORD: pwd_to_send = password; break; +#endif /* * Notice: Authentication of send password directly are not currently supported. * need to: We remove the branch of AUTH_REQ_PASSWORD here for both implication and @@ -1211,7 +1213,9 @@ int pg_fe_sendauth(AuthRequest areq, PGconn* conn) case AUTH_REQ_MD5: case AUTH_REQ_MD5_SHA256: +#ifdef USE_LDAP case AUTH_REQ_PASSWORD: +#endif case AUTH_REQ_SHA256: #ifdef ENABLE_LITE_MODE case AUTH_REQ_SHA256_RFC: