Commit 132e7ac15445c8dbcdd460e5304dde3d2ec9dc50

Authored by nbm
1 parent 3c00257a

Use KTUtil::getObject to ensure we have a proper object passed into the

LDAP authenticator.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5366 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php
@@ -471,8 +471,8 @@ class KTLDAPBaseAuthenticator extends Authenticator { @@ -471,8 +471,8 @@ class KTLDAPBaseAuthenticator extends Authenticator {
471 var $oLdap; 471 var $oLdap;
472 472
473 function KTLDAPBaseAuthenticator($oSource) { 473 function KTLDAPBaseAuthenticator($oSource) {
474 - $this->oSource =& $oSource;  
475 - $aConfig = unserialize($oSource->getConfig()); 474 + $this->oSource =& KTUtil::getObject('KTAuthenticationSource', $oSource);
  475 + $aConfig = unserialize($this->oSource->getConfig());
476 $this->sLdapServer = $aConfig['servername']; 476 $this->sLdapServer = $aConfig['servername'];
477 $this->sBaseDN = $aConfig['basedn']; 477 $this->sBaseDN = $aConfig['basedn'];
478 $this->sSearchUser = $aConfig['searchuser']; 478 $this->sSearchUser = $aConfig['searchuser'];