From 67beabb36478122cb53e0565b59e4c288c8649de Mon Sep 17 00:00:00 2001 From: Mia ZHOU Date: Tue, 31 Jul 2018 16:15:57 +0800 Subject: [PATCH] Add ldap admin DN Problem description: currently, harbor does not support config ldap admin DN Enhancement: Add ldap admin dn in configuration as a optional config. --- .../config/auth/config-auth.component.html | 41 +++++++++++-------- .../config/auth/config-auth.component.scss | 4 ++ src/ui_ng/src/i18n/lang/en-us-lang.json | 2 + src/ui_ng/src/i18n/lang/es-es-lang.json | 2 + src/ui_ng/src/i18n/lang/fr-fr-lang.json | 2 + src/ui_ng/src/i18n/lang/zh-cn-lang.json | 2 + src/ui_ng/src/styles.css | 1 + 7 files changed, 36 insertions(+), 18 deletions(-) diff --git a/src/ui_ng/src/app/config/auth/config-auth.component.html b/src/ui_ng/src/app/config/auth/config-auth.component.html index 47cd4ffe4..db2a2c727 100644 --- a/src/ui_ng/src/app/config/auth/config-auth.component.html +++ b/src/ui_ng/src/app/config/auth/config-auth.component.html @@ -137,12 +137,9 @@
- - + + @@ -151,12 +148,9 @@
- - + + @@ -165,12 +159,9 @@
- - + + @@ -178,6 +169,19 @@
+ +
+ + + + + + {{'CONFIG.LDAP.LDAP_GROUP_ADMIN_DN_INFO' | translate}} + + +
+
@@ -194,6 +198,7 @@
+
diff --git a/src/ui_ng/src/app/config/auth/config-auth.component.scss b/src/ui_ng/src/app/config/auth/config-auth.component.scss index 9634e8199..fe2f29c51 100644 --- a/src/ui_ng/src/app/config/auth/config-auth.component.scss +++ b/src/ui_ng/src/app/config/auth/config-auth.component.scss @@ -1,3 +1,7 @@ clr-tooltip { top: -1px; +} + +.padding-right-28 { + padding-right:28px; } \ No newline at end of file diff --git a/src/ui_ng/src/i18n/lang/en-us-lang.json b/src/ui_ng/src/i18n/lang/en-us-lang.json index 91737b17f..2c1c86193 100644 --- a/src/ui_ng/src/i18n/lang/en-us-lang.json +++ b/src/ui_ng/src/i18n/lang/en-us-lang.json @@ -553,6 +553,8 @@ "LDAP_GROUP_FILTER_INFO": "The filter of your LDAP group", "LDAP_GROUP_GID": "LDAP Group GID", "LDAP_GROUP_GID_INFO": "The Group gid of your LDAP group", + "LDAP_GROUP_ADMIN_DN": "LDAP Group Admin DN", + "LDAP_GROUP_ADMIN_DN_INFO": "The Admin DN of your LDAP group", "GROUP_SCOPE": "LDAP Group Scope", "GROUP_SCOPE_INFO": "The scope of your LDAP Group" diff --git a/src/ui_ng/src/i18n/lang/es-es-lang.json b/src/ui_ng/src/i18n/lang/es-es-lang.json index 9872394d5..bcd7c02e6 100644 --- a/src/ui_ng/src/i18n/lang/es-es-lang.json +++ b/src/ui_ng/src/i18n/lang/es-es-lang.json @@ -553,6 +553,8 @@ "LDAP_GROUP_FILTER_INFO": "The filter of your LDAP group", "LDAP_GROUP_GID": "LDAP Group GID", "LDAP_GROUP_GID_INFO": "The Group gid of your LDAP group", + "LDAP_GROUP_ADMIN_DN": "LDAP Group Admin DN", + "LDAP_GROUP_ADMIN_DN_INFO": "The Admin DN of your LDAP group", "GROUP_SCOPE": "LDAP Group Scope", "GROUP_SCOPE_INFO": "The scope of your LDAP Group" }, diff --git a/src/ui_ng/src/i18n/lang/fr-fr-lang.json b/src/ui_ng/src/i18n/lang/fr-fr-lang.json index 1a8a309ed..c6a417f79 100644 --- a/src/ui_ng/src/i18n/lang/fr-fr-lang.json +++ b/src/ui_ng/src/i18n/lang/fr-fr-lang.json @@ -524,6 +524,8 @@ "LDAP_GROUP_FILTER_INFO": "The filter of your LDAP group", "LDAP_GROUP_GID": "LDAP Group GID", "LDAP_GROUP_GID_INFO": "The Group gid of your LDAP group", + "LDAP_GROUP_ADMIN_DN": "LDAP Group Admin DN", + "LDAP_GROUP_ADMIN_DN_INFO": "The Admin DN of your LDAP group", "GROUP_SCOPE": "LDAP Group Scope", "GROUP_SCOPE_INFO": "The scope of your LDAP Group" }, diff --git a/src/ui_ng/src/i18n/lang/zh-cn-lang.json b/src/ui_ng/src/i18n/lang/zh-cn-lang.json index 15304f08a..dce247947 100644 --- a/src/ui_ng/src/i18n/lang/zh-cn-lang.json +++ b/src/ui_ng/src/i18n/lang/zh-cn-lang.json @@ -553,6 +553,8 @@ "LDAP_GROUP_FILTER_INFO": "LDAP组的过滤器", "LDAP_GROUP_GID": "LDAP组GID", "LDAP_GROUP_GID_INFO": "LDAP组的GID", + "LDAP_GROUP_ADMIN_DN": "LDAP组管理员DN", + "LDAP_GROUP_ADMIN_DN_INFO": "LDAP组管理员DN", "GROUP_SCOPE": "LDAP组搜索范围", "GROUP_SCOPE_INFO": "搜索范围" }, diff --git a/src/ui_ng/src/styles.css b/src/ui_ng/src/styles.css index 35ebf3b01..5878a035e 100644 --- a/src/ui_ng/src/styles.css +++ b/src/ui_ng/src/styles.css @@ -8,6 +8,7 @@ body { left: 0; right:0; bottom:0; + margin:auto; width: 108px !important; height: 108px !important; }