Commit 5e83758961c8f61f722fe3b63fb373a67bfb52cf

Authored by Neil Blakey-Milner
1 parent 2c66938b

Mark up the names for the LDAP and ActiveDirectory authentication

provider for translation.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5188 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktstandard/ldap/activedirectoryauthenticationprovider.inc.php
... ... @@ -31,13 +31,17 @@ require_once(KT_LIB_DIR . '/authentication/Authenticator.inc');
31 31 require_once("ldapbaseauthenticationprovider.inc.php");
32 32  
33 33 class KTActiveDirectoryAuthenticationProvider extends KTLDAPBaseAuthenticationProvider {
34   - var $sName = "ActiveDirectory authentication provider";
35 34 var $sNamespace = "ktstandard.authentication.adprovider";
36 35  
37 36 var $bGroupSource = true;
38 37  
39 38 var $sAuthenticatorClass = "KTActiveDirectoryAuthenticator";
40 39 var $aAttributes = array ("cn", "samaccountname", "givenname", "sn", "userprincipalname", "telephonenumber");
  40 +
  41 + function KTActiveDirectoryAuthenticationProvider() {
  42 + $this->sName = _kt("ActiveDirectory authentication provider");
  43 + parent::KTLDAPBaseAuthenticationProvider();
  44 + }
41 45 }
42 46  
43 47 class KTActiveDirectoryAuthenticator extends KTLDAPBaseAuthenticator {
... ...
plugins/ktstandard/ldap/ldapauthenticationprovider.inc.php
... ... @@ -32,11 +32,16 @@ require_once("Net/LDAP.php");
32 32 require_once("ldapbaseauthenticationprovider.inc.php");
33 33  
34 34 class KTLDAPAuthenticationProvider extends KTLDAPBaseAuthenticationProvider {
35   - var $sName = "LDAP authentication provider";
36 35 var $sNamespace = "ktstandard.authentication.ldapprovider";
37 36  
38 37 var $aAttributes = array ("cn", "uid", "givenname", "sn", "mail", "mobile");
39 38 var $sAuthenticatorClass = "KTLDAPAuthenticator";
  39 +
  40 + function KTLDAPAuthenticationProvider() {
  41 + $this->sName = _kt("LDAP authentication provider");
  42 + parent::KTLDAPBaseAuthenticationProvider();
  43 + }
  44 +
40 45 }
41 46  
42 47 class KTLDAPAuthenticator extends KTLDAPBaseAuthenticator {
... ...