| | |
| | | |
| | | @BeforeClass |
| | | public void setupClass() throws Exception { |
| | | // TestCaseUtils.restartServer(); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | TestCaseUtils.dsconfig( |
| | | "create-password-policy", |
| | | "--type", "password-policy", |
| | |
| | | public void tearDown() throws Exception { |
| | | clearConfigEntries(); |
| | | TestCaseUtils.clearJEBackend(false,"userRoot", "dc=example,dc=com"); |
| | | clearAcis("o=test"); |
| | | TestCaseUtils.clearMemoryBackend(TestCaseUtils.TEST_BACKEND_ID); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | private void clearAcis(String suffix) throws Exception |
| | | { |
| | | deleteAttrsFromEntry(DN.decode("ou=People," + suffix), "aci"); |
| | | deleteAttrsFromEntry(DN.decode("ou=People1," + suffix), "aci"); |
| | | } |
| | | |
| | | /** |
| | | * Remove the attributes specified by the attribute type strings from the |
| | | * entry corresponding to the dn argument. |