|
|
@ -36,7 +36,7 @@ class OC_LDAP { |
|
|
|
static protected $ldapTLS; |
|
|
|
static protected $ldapTLS; |
|
|
|
static protected $ldapNoCase; |
|
|
|
static protected $ldapNoCase; |
|
|
|
// user and group settings, that are needed in both backends |
|
|
|
// user and group settings, that are needed in both backends |
|
|
|
static protected $ldapUserDisplayName; |
|
|
|
static public $ldapUserDisplayName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static public function init() { |
|
|
|
static public function init() { |
|
|
@ -44,6 +44,14 @@ class OC_LDAP { |
|
|
|
self::establishConnection(); |
|
|
|
self::establishConnection(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static public function conf($key) { |
|
|
|
|
|
|
|
$availableProperties = array('ldapUserDisplayName'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(in_array($key, $availableProperties)) { |
|
|
|
|
|
|
|
return self::$$key; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @brief executes an LDAP search |
|
|
|
* @brief executes an LDAP search |
|
|
|
* @param $filter the LDAP filter for the search |
|
|
|
* @param $filter the LDAP filter for the search |
|
|
|