builder.add("newsn");
Modification mod =
new Modification(ModificationType.REPLACE, builder.toAttribute());
List<Modification> mods = new ArrayList<Modification>();
mods.add(mod);
ModifyOperationBasis modOpBasis =
new ModifyOperationBasis(connection, 1, 1, null, uentry1.getDN(), mods);
modOpBasis.run();
waitOpResult(modOpBasis, ResultCode.SUCCESS);
// mod 'telephonenumber' of robert (o=test3)
builder = new AttributeBuilder("telephonenumber");
builder.add("555555");
mod =
new Modification(ModificationType.REPLACE, builder.toAttribute());
mods = new ArrayList<Modification>();
mods.add(mod);
ModifyOperationBasis modOpBasis2 =
new ModifyOperationBasis(connection, 1, 1, null, uentry2.getDN(), mods);
modOpBasis2.run();
waitOpResult(modOpBasis2, ResultCode.SUCCESS);
// moddn robert (o=test3) to robert2 (o=test3)
ModifyDNOperationBasis modDNOp = new ModifyDNOperationBasis(connection,
InternalClientConnection.nextOperationID(),