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: