Commit 132e7ac15445c8dbcdd460e5304dde3d2ec9dc50
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
Showing
1 changed file
with
2 additions
and
2 deletions
plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php
| ... | ... | @@ -471,8 +471,8 @@ class KTLDAPBaseAuthenticator extends Authenticator { |
| 471 | 471 | var $oLdap; |
| 472 | 472 | |
| 473 | 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 | 476 | $this->sLdapServer = $aConfig['servername']; |
| 477 | 477 | $this->sBaseDN = $aConfig['basedn']; |
| 478 | 478 | $this->sSearchUser = $aConfig['searchuser']; | ... | ... |