Search in sources :

Example 26 with ZMutableEntry

use of com.zimbra.cs.ldap.ZMutableEntry in project zm-mailbox by Zimbra.

the class TestLdapZMutableEntry method setDN.

@Test
public void setDN() throws Exception {
    String DN = "cn=zimbra";
    ZMutableEntry entry = LdapClient.createMutableEntry();
    entry.setDN(DN);
    assertEquals(DN, entry.getDN());
}
Also used : ZMutableEntry(com.zimbra.cs.ldap.ZMutableEntry)

Aggregations

ZMutableEntry (com.zimbra.cs.ldap.ZMutableEntry)26 ZLdapContext (com.zimbra.cs.ldap.ZLdapContext)18 LdapEntryAlreadyExistException (com.zimbra.cs.ldap.LdapException.LdapEntryAlreadyExistException)15 AccountServiceException (com.zimbra.cs.account.AccountServiceException)14 CallbackContext (com.zimbra.cs.account.callback.CallbackContext)14 LdapException (com.zimbra.cs.ldap.LdapException)14 ServiceException (com.zimbra.common.service.ServiceException)13 AuthFailedServiceException (com.zimbra.cs.account.AccountServiceException.AuthFailedServiceException)13 Date (java.util.Date)13 Domain (com.zimbra.cs.account.Domain)6 LdapDomain (com.zimbra.cs.account.ldap.entry.LdapDomain)6 HashMap (java.util.HashMap)6 LdapEntry (com.zimbra.cs.account.ldap.entry.LdapEntry)4 ZAttributes (com.zimbra.cs.ldap.ZAttributes)3 Cos (com.zimbra.cs.account.Cos)2 LdapCos (com.zimbra.cs.account.ldap.entry.LdapCos)2 LdapDynamicGroup (com.zimbra.cs.account.ldap.entry.LdapDynamicGroup)2 GenericLdapConfig (com.zimbra.cs.ldap.LdapServerConfig.GenericLdapConfig)2 BinaryLdapData (com.zimbra.qa.unittest.prov.BinaryLdapData)2 HashSet (java.util.HashSet)2