protected function SimpleLdapServer::rootdse in Simple LDAP 7
Same name and namespace in other branches
- 7.2 SimpleLdapServer.class.php \SimpleLdapServer::rootdse()
Loads the server's rootDSE.
@throw SimpleLdapException
4 calls to SimpleLdapServer::rootdse()
- SimpleLdapServer::basedn in ./
SimpleLdapServer.class.php - Attempts to determine the server's baseDN.
- SimpleLdapServer::bind in ./
SimpleLdapServer.class.php - Connect and bind to the LDAP server.
- SimpleLdapServer::type in ./
SimpleLdapServer.class.php - Attempts to detect the directory type using the rootDSE.
- SimpleLdapServer::__get in ./
SimpleLdapServer.class.php - Magic __get() function.
File
- ./
SimpleLdapServer.class.php, line 700 - Class to handle LDAP server connections and related operations.
Class
- SimpleLdapServer
- Simple LDAP server class.
Code
protected function rootdse() {
if (!is_array($this->rootdse)) {
$attributes = array(
'vendorName',
'vendorVersion',
'namingContexts',
'altServer',
'supportedExtension',
'supportedControl',
'supportedSASLMechanisms',
'supportedLDAPVersion',
'subschemaSubentry',
'objectClass',
'rootDomainNamingContext',
);
$result = SimpleLdap::clean($this
->search('', 'objectclass=*', 'base', $attributes));
$this->rootdse = $result[''];
}
}