summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-02-08 01:25:30 +0000
committerGitHub <noreply@github.com>2021-02-08 09:25:30 +0800
commit82637c240aa3b0e0bf290d35b2014953edec5b6e (patch)
treecc7dcde7e38109909622d03613bd12b6f70ed793 /integrations
parentd0174d45ed313a8ba61069486834ae292ce8c103 (diff)
downloadgitea-82637c240aa3b0e0bf290d35b2014953edec5b6e.tar.gz
gitea-82637c240aa3b0e0bf290d35b2014953edec5b6e.zip
Accept multiple SSH keys in single LDAP SSHPublicKey attribute (#13989) (#14607)
Backport #13989 Fix #13984 Fix #14566 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'integrations')
-rw-r--r--integrations/auth_ldap_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/auth_ldap_test.go b/integrations/auth_ldap_test.go
index 1569458418..8ce5c587fe 100644
--- a/integrations/auth_ldap_test.go
+++ b/integrations/auth_ldap_test.go
@@ -237,6 +237,6 @@ func TestLDAPUserSSHKeySync(t *testing.T) {
syncedKeys[i] = strings.TrimSpace(divs.Eq(i).Text())
}
- assert.ElementsMatch(t, u.SSHKeys, syncedKeys)
+ assert.ElementsMatch(t, u.SSHKeys, syncedKeys, "Unequal number of keys synchronized for user: %s", u.UserName)
}
}