Operational Attributes
The DirContextAdapter will only read the visible attributes per default. This is because the operational attributes will only be returned by the server if explicitly asked for, and there is no way for Spring LDAP to know what attributes to ask for. This means that the DirContextAdapter will not be populated with the operational attributes, and hence the removeAttributeValue will not have any effect (since from the DirContextAdapter's point of view, it wasn't there in the first place).
There are basically two ways to do this: