LDAP-119: Integration test case for workaround.

This commit is contained in:
Mattias Hellborg Arthursson
2013-08-14 11:05:08 +02:00
parent 837bc489ef
commit abfde5e5a0

View File

@@ -274,6 +274,17 @@ public class LdapTemplateModifyITest extends AbstractLdapTemplateIntegrationTest
verifyBoundCorrectData();
}
@Test
public void verifyCompleteReplacementOfUniqueMemberAttribute_Ldap119() {
DirContextOperations ctx = tested.lookupContext("cn=ROLE_USER,ou=groups");
ctx.setAttributeValues("uniqueMember",
new String[]{"cn=Some Person4,ou=company1,c=Sweden,dc=jayway,dc=se"},
true);
ctx.getModificationItems();
tested.modifyAttributes(ctx);
}
private Attributes setupAttributes() {
Attributes attributes = new BasicAttributes();
BasicAttribute ocattr = new BasicAttribute("objectclass");