支持ldap认证

This commit is contained in:
zhangchao
2023-08-11 17:17:22 +08:00
parent fc87e3ed6b
commit e1b92cf6d7

View File

@ -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: