mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
fix PHP Warning: Use of undefined constant OPENLDAP_LDAPSERVER
This commit is contained in:
parent
a646bc6a61
commit
9f3f3e501d
@ -8,7 +8,6 @@
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @package api
|
||||
* @subpackage ldap
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
namespace EGroupware\Api\Ldap;
|
||||
@ -188,17 +187,17 @@ class ServerInfo
|
||||
switch($info[0]['structuralobjectclass'][0])
|
||||
{
|
||||
case 'OpenLDAProotDSE':
|
||||
$ldapServerType = OPENLDAP_LDAPSERVER;
|
||||
$ldapServerType = self::OPENLDAP;
|
||||
break;
|
||||
default:
|
||||
$ldapServerType = UNKNOWN_LDAPSERVER;
|
||||
$ldapServerType = self::UNKNOWN;
|
||||
break;
|
||||
}
|
||||
$ldapServerInfo->setServerType($ldapServerType);
|
||||
}
|
||||
if ($info[0]['vendorname'] && stripos($info[0]['vendorname'][0], 'samba') !== false)
|
||||
{
|
||||
$ldapServerInfo->setServerType(SAMBA4_LDAPSERVER);
|
||||
$ldapServerInfo->setServerType(self::SAMBA4);
|
||||
}
|
||||
|
||||
// check for subschema entry dn
|
||||
|
Loading…
Reference in New Issue
Block a user