Announcement Announcement Module
Collapse
No announcement yet.
LdapTestUtils loading test data ldif files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • LdapTestUtils loading test data ldif files

    Hi

    I am trying to use LdapTestUtils to upload testdata contained in ldif files. The backend I am using is OpenLdap and I use a code like
    Code:
    Resource res = new ClassPathResource(ldifFileName);
    LdapTestUtils.loadLdif(ldapTemplate().getContextSource(), res);
    Everything work well as long as I have changetype: add, but if I use any ldif's with changetype: modify or delete expected changes are not done
    eg:
    Code:
    dn: cn=SysAdmin,ou=Groups,ou=SysAdmin,ou=Departments,o=mydomain
    changetype: modify
    add: uniquemember
    uniquemember: uid=testuser,ou=People,ou=SysAdmin,ou=Departments,o=mydomain
    Has anyone used LdapTestUtils for modify or update? Is this somehting in
    Code:
    org.apache.directory.server.protocol.shared.store.LdifFileLoader
    Thanks
Working...
X