Skip to content

Commit ffe66cb

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [Ldap] Update ldap.rst
2 parents e3d7c66 + 4586d28 commit ffe66cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/ldap.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ 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+
Use the ``filter`` option to only retrieve some specific attributes:
119+
120+
$query = $ldap->query('dc=symfony,dc=com', '...', ['filter' => ['cn, mail']);
121+
118122
Creating or Updating Entries
119123
----------------------------
120124

0 commit comments

Comments
 (0)