How can we filter when applying ldapmodify?
For eg: this is how my user object looks like:
dn: mail=abc@d.com,ou=users,dc=dev,dc=com
sn: po
givenName: abc
You need to send the Assertion Control along with your modify operation (see RFC 4528). Basically the control contains a filter which has to be matched.
I'm using this control in my web2ldap to prevent concurrent writes to do anything bad.
I have some doubts that ldap3 module supports it out-of-the-box though.
Further notes: