Commit d2cfaa6511a225894fdbf570f1e415e4fba004d7
1 parent
32aee34d
Don't show LDAP password
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5780 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
1 deletions
plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php
| ... | ... | @@ -66,6 +66,8 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { |
| 66 | 66 | } else { |
| 67 | 67 | $sRet .= " <dd>" . _kt('False') . "</dd>\n"; |
| 68 | 68 | } |
| 69 | + } else if ($sSettingName == 'searchpassword') { | |
| 70 | + $sRet .= " <dd><em>*** Hidden ***</em></dd>\n"; | |
| 69 | 71 | } else { |
| 70 | 72 | $sRet .= " <dd>" . $sValue . "</dd>\n"; |
| 71 | 73 | } |
| ... | ... | @@ -144,7 +146,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { |
| 144 | 146 | $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); |
| 145 | 147 | $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); |
| 146 | 148 | $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); |
| 147 | - $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); | |
| 149 | + $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); | |
| 148 | 150 | $aOptions = array( |
| 149 | 151 | 'rows' => 7, |
| 150 | 152 | 'cols' => 25, | ... | ... |