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)) {