From d2cfaa6511a225894fdbf570f1e415e4fba004d7 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Wed, 2 Aug 2006 10:50:25 +0000 Subject: [PATCH] Don't show LDAP password --- plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php b/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php index b1faad7..da3948c 100644 --- a/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php +++ b/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php @@ -66,6 +66,8 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { } else { $sRet .= "
" . _kt('False') . "
\n"; } + } else if ($sSettingName == 'searchpassword') { + $sRet .= "
*** Hidden ***
\n"; } else { $sRet .= "
" . $sValue . "
\n"; } @@ -144,7 +146,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { $fields[] = new KTCheckboxWidget(_kt('Use Transaction Layer Security (TLS)'), _kt('Whether to use Transaction Layer Security (TLS), which encrypts traffic to and from the LDAP server'), 'tls_bool', $aConfig['tls'], $this->oPage, true); $fields[] = new KTStringWidget(_kt('Base DN'), _kt('The location in the LDAP directory to start searching from (CN=Users,DC=mycorp,DC=com)'), 'basedn', $aConfig['basedn'], $this->oPage, true); $fields[] = new KTStringWidget(_kt('Search User'), _kt('The user account in the LDAP directory to perform searches in the LDAP directory as (such as CN=searchUser,CN=Users,DC=mycorp,DC=com or searchUser@mycorp.com)'), 'searchuser', $aConfig['searchuser'], $this->oPage, true); - $fields[] = new KTStringWidget(_kt('Search Password'), _kt('The password for the user account in the LDAP directory that performs searches'), 'searchpassword', $aConfig['searchpassword'], $this->oPage, true); + $fields[] = new KTPasswordWidget(_kt('Search Password'), _kt('The password for the user account in the LDAP directory that performs searches'), 'searchpassword', $aConfig['searchpassword'], $this->oPage, true); $aOptions = array( 'rows' => 7, 'cols' => 25, -- libgit2 0.21.4