From 132e7ac15445c8dbcdd460e5304dde3d2ec9dc50 Mon Sep 17 00:00:00 2001 From: nbm Date: Fri, 28 Apr 2006 11:53:57 +0000 Subject: [PATCH] Use KTUtil::getObject to ensure we have a proper object passed into the LDAP authenticator. --- plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php b/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php index 02374e5..d96ed2d 100644 --- a/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php +++ b/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php @@ -471,8 +471,8 @@ class KTLDAPBaseAuthenticator extends Authenticator { var $oLdap; function KTLDAPBaseAuthenticator($oSource) { - $this->oSource =& $oSource; - $aConfig = unserialize($oSource->getConfig()); + $this->oSource =& KTUtil::getObject('KTAuthenticationSource', $oSource); + $aConfig = unserialize($this->oSource->getConfig()); $this->sLdapServer = $aConfig['servername']; $this->sBaseDN = $aConfig['basedn']; $this->sSearchUser = $aConfig['searchuser']; -- libgit2 0.21.4