Skip to content

Commit 16f1d78

Browse files
committed
minor #15208 [Ldap] Update ldap.rst (jraller)
This PR was submitted for the 5.2 branch but it was squashed and merged into the 4.4 branch instead. Discussion ---------- [Ldap] Update ldap.rst include documentation of the filter option for the query command. Commits ------- 2e77005 [Ldap] Update ldap.rst
2 parents a370d63 + 2e77005 commit 16f1d78

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)