From cdb9478774e6c5cebf5a75ff35bfa6d8a37bdbdb Mon Sep 17 00:00:00 2001 From: Magnus Lindvall Date: Thu, 24 May 2018 06:59:02 +0200 Subject: LDAP Public SSH Keys synchronization (#1844) * Add LDAP Key Synchronization feature Signed-off-by: Magnus Lindvall * Add migration: add login source id column for public_key table * Only update keys if needed * Add function to only list pubkey synchronized from ldap * Only list pub ssh keys synchronized from ldap. Do not sort strings as ExistsInSlice does it. * Only get keys belonging to current login source id * Set default login source id to 0 * Some minor cleanup. Add integration tests (updete dep testify) --- templates/admin/auth/edit.tmpl | 4 ++++ templates/admin/auth/source/ldap.tmpl | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'templates') diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index e4ec3a9f5b..39d1f9a708 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -90,6 +90,10 @@ +
+ + +
{{if .Source.IsLDAP}}
diff --git a/templates/admin/auth/source/ldap.tmpl b/templates/admin/auth/source/ldap.tmpl index cf906f703c..0c39d057a4 100644 --- a/templates/admin/auth/source/ldap.tmpl +++ b/templates/admin/auth/source/ldap.tmpl @@ -62,6 +62,10 @@
+
+ + +
-- cgit v1.2.3