From 39af5c089da8a158651624de4f47a426e26498d7 Mon Sep 17 00:00:00 2001 From: Kevin Fourie Date: Thu, 31 May 2007 15:17:39 +0000 Subject: [PATCH] KTS-1941 "If a user is not created in KT and an authentification source is provided when he tries to connect he has an php error message" Added better error checking. --- plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php b/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php index 743e41f..cad51b6 100644 --- a/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php +++ b/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php @@ -541,6 +541,8 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { function _createSignupGroups($dn, $oSource) { $oAuthenticator =& $this->getAuthenticator($oSource); $aGroupDNs = $oAuthenticator->getGroups($dn); + if(PEAR::isError($aGroupDNs) || empty($aGroupDNs)) return; + foreach ($aGroupDNs as $sGroupDN) { $oGroup = Group::getByAuthenticationSourceAndDetails($oSource, $sGroupDN); if (PEAR::isError($oGroup)) { -- libgit2 0.21.4