You are here

public function SimpleLdapServer::entry in Simple LDAP 7

Same name and namespace in other branches
  1. 7.2 SimpleLdapServer.class.php \SimpleLdapServer::entry()

Gets a single entry from the LDAP server.

@throw SimpleLdapException

Parameters

string $dn: LDAP DN to retrieve.

Return value

array The LDAP entry.

File

./SimpleLdapServer.class.php, line 445
Class to handle LDAP server connections and related operations.

Class

SimpleLdapServer
Simple LDAP server class.

Code

public function entry($dn) {
  return $this
    ->search($dn, '(objectclass=*)', 'base');
}