fix (ldap): support only updating the bind-dn and/or bind-password (#3511)
* fix (ldap): support only updating the bind-dn and/or bind-password * chore: changelog entry for PR #3511
This commit is contained in:
9 files changed
+211
-41
No files matched your search
@@ -127,16 +127,6 @@ func TestNewAuthMethod(t *testing.T) {
|
||||
wantErrCode: errors.InvalidParameter,
|
||||
wantErrContains: `https scheme in url "https://alice.com" is not either ldap or ldaps`,
|
||||
},
|
||||
{
|
||||
name: "opt-error",
|
||||
ctx: testCtx,
|
||||
scopeId: "global",
|
||||
urls: TestConvertToUrls(t, "ldaps://alice.com"),
|
||||
opts: []Option{WithBindCredential(testCtx, "dn", "")},
|
||||
wantErr: true,
|
||||
wantErrCode: errors.InvalidParameter,
|
||||
wantErrContains: "ldap.WithBindCredential: missing password",
|
||||
},
|
||||
}
|
||||
for _, tc := range tests {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user