#23891·harbor

POST /api/v2.0/ldap/ping 忽略了自己的文档中规定的规则"空请求会加载当前配置",除了密码外,对其他所有字段都如此。

作者: ylobankov创建于 2026年9月10日更新于 2026年9月14日
标签area/ldap

预期行为和实际行为:

预期:端点自己的 OpenAPI 描述(api/v2.0/swagger.yaml)指出,空请求体会测试当前保存的 LDAP 配置:

"ldap configuration. support input ldap service configuration. If it is a empty request, will load current configuration from the system." 因此,使用 {}POST /api/v2.0/ldap/ping 应返回 {"success":true},如果保存的配置正常工作。我们已经知道它正常工作,因为 /ldap/users/search/ldap/groups/search 使用相同的保存配置来证明这一点。

内容来源: goharbor/harbor