Skip to content

Commit 2e77005

Browse files
jrallerjaviereguiluz
authored andcommitted
[Ldap] Update ldap.rst
1 parent a370d63 commit 2e77005

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/ldap.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ to the ``LDAP_SCOPE_BASE`` scope of :phpfunction:`ldap_read`) and ``SCOPE_ONE``
115115

116116
$query = $ldap->query('dc=symfony,dc=com', '...', ['scope' => QueryInterface::SCOPE_ONE]);
117117

118+
To retrieve only specific attributes you can specify which attributes you want returned using
119+
the ``filter`` option::
120+
121+
$query = $ldap->query('dc=symfony,dc=com', '...', ['filter' => ['cn, mail']);
122+
118123
Creating or Updating Entries
119124
----------------------------
120125

0 commit comments

Comments
 (0)