Overview#The LDAP Post-Read Control is a type of supportedControl that may be attached to an LDAP Add Request, Modify Request, or ModifyDNRequest operation to request that the server return a copy of the target entry exactly as it was at the end of the processing for that operation. It is one of the LDAP read entry controls defined in RFC 4527.
The post-read request control has an OID of 188.8.131.52.1.13.2, and the value should be encoded in the same way as the AttributeSelection in a search Request. The response control has an OID of 184.108.40.206.1.13.2 (the same as the OID for the request control), and the value should be encoded in the same was as a SearchResultEntry.
The following Example shows the use of the post-read control in an ldapmodify request:
$ ldapmodify -h localhost -p 1389 -D "cn=directory manager" -w password \ --postReadAttributes=telephoneNumber dn: uid=aaltay,ou=People,dc=example,dc=com changetype: modify replace: telephoneNumber telephoneNumber: +1 995 589 3333 Processing MODIFY request for uid=aaltay,ou=People,dc=example,dc=com MODIFY operation successful for DN uid=aaltay,ou=People,dc=example,dc=com Target entry after the operation: dn: uid=aaltay,ou=People,dc=example,dc=com telephoneNumber: +1 995 589 3333