public abstract class DefaultLDAPDriver extends java.lang.Object implements LDAPDriver
| Modifier and Type | Field and Description |
|---|---|
protected Domain |
domain |
protected ParameterMap |
params |
STATUS_ACCOUNT_USED, STATUS_ADD_ERROR, STATUS_CONNECT_ERROR, STATUS_DELETE_ERROR, STATUS_OK, STATUS_UPDATE_ERROR| Constructor and Description |
|---|
DefaultLDAPDriver() |
| Modifier and Type | Method and Description |
|---|---|
int |
addAccount(Account mailAccount) |
protected void |
closeConnection(com.novell.ldap.LDAPConnection con) |
int |
deleteAccount(Account mailAccount) |
protected abstract com.novell.ldap.LDAPAttributeSet |
getAccountAttributeSet(Account account) |
protected abstract java.lang.String |
getAccountDN(Account account) |
protected com.novell.ldap.LDAPConnection |
getConnection() |
void |
init(Domain domain,
ParameterMap params) |
int |
updateAccount(Account mailAccount) |
protected Domain domain
protected ParameterMap params
public void init(Domain domain, ParameterMap params)
init in interface LDAPDriverprotected com.novell.ldap.LDAPConnection getConnection()
protected void closeConnection(com.novell.ldap.LDAPConnection con)
public int deleteAccount(Account mailAccount)
deleteAccount in interface LDAPDriverpublic int addAccount(Account mailAccount)
addAccount in interface LDAPDriverpublic int updateAccount(Account mailAccount)
updateAccount in interface LDAPDriverprotected abstract java.lang.String getAccountDN(Account account)
protected abstract com.novell.ldap.LDAPAttributeSet getAccountAttributeSet(Account account)