Browse files

Small patch from Michael Ablassmeier <abi@grinser.de>

git-svn-id: http://svn.php.net/repository/pear/packages/Net_LDAP/trunk@152486 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 1e4dd0f commit 695bd2caface55394d98e1313f26e881b181b19c Tarjei Huse committed Feb 26, 2004
Showing with 3 additions and 2 deletions.
  1. +3 −2 LDAP.php
View
5 LDAP.php
@@ -616,11 +616,12 @@ function dnExists($dn)
* Get a specific entry based on the dn
*
* @param string dn
+ * @param array Array of Attributes to select
* @return mixed Net_LDAP_Entry or false
*/
- function &getEntry($dn)
+ function &getEntry($dn, $attr = array(''))
{
- $result = $this->search($dn, '(objectClass=*)', array('scope' => 'base', 'attributes' => null));
+ $result = $this->search($dn, '(objectClass=*)', array('scope' => 'base', 'attributes' => $attr));
if (Net_LDAP::isError($result)) {
return $result;
}

0 comments on commit 695bd2c

Please sign in to comment.