[pmg-devel] [PATCH pmg-gui 3/3] add LDAP+STARTTLS as ldap protocol
Dominik Csapak
d.csapak at proxmox.com
Wed Mar 13 15:17:12 CET 2019
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
js/LDAPConfig.js | 3 ++-
js/Utils.js | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/js/LDAPConfig.js b/js/LDAPConfig.js
index f4f6a20..3225a6d 100644
--- a/js/LDAPConfig.js
+++ b/js/LDAPConfig.js
@@ -56,7 +56,8 @@ Ext.define('PMG.LDAPInputPanel', {
name: 'mode',
comboItems: [
['ldap', PMG.Utils.format_ldap_protocol('ldap')],
- ['ldaps', PMG.Utils.format_ldap_protocol('ldaps')]
+ ['ldaps', PMG.Utils.format_ldap_protocol('ldaps')],
+ ['ldap+starttls', PMG.Utils.format_ldap_protocol('ldap+starttls')]
],
value: 'ldap',
fieldLabel: gettext('Protocol'),
diff --git a/js/Utils.js b/js/Utils.js
index ce15d06..9709996 100644
--- a/js/Utils.js
+++ b/js/Utils.js
@@ -117,6 +117,7 @@ Ext.define('PMG.Utils', {
if (p === undefined) { return 'LDAP'; }
if (p === 'ldap') { return 'LDAP'; }
if (p === 'ldaps') { return 'LDAPS'; }
+ if (p === 'ldap+starttls') { return 'LDAP+STARTTLS'; }
return 'unknown';
},
--
2.11.0
More information about the pmg-devel
mailing list