Several extensions to the existing PHP LDAP API have been developed to make it more suitable to our needs.
Currently, the add/modify/replace/delete functions have been patched to accept additional parameters for server and client controls.
Examples:
Single control:
<source lang='php'>
ldap_modify($link, $dn, $entry, $control);
</source>
Multiple controls:
<source lang='php'>
ldap_modify($link, $dn, $entry, [$control1, $control2]);
</source>
== LDAP Assertion Control ==