|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LdapClient
Interface into the LDAPd session
| Method Summary | |
|---|---|
void |
closeServerConnection()
Close the socket connection to the server. |
void |
connectToServer()
Connects the socket to the server. |
java.lang.String |
getBindDn()
DN used to bind to the server |
java.lang.String |
getHost()
Get the hostname if of the LDAP server |
java.lang.String |
getPassword()
Password of the DN entry used to bind to the server |
int |
getPort()
Port used to connect to the LDAP server |
boolean |
isConnectedToServer()
Determines if there is a current connection to the server |
boolean |
isDryRun()
Determine if this is a dry run, no message sent to the server |
boolean |
isVerbose()
Determine if verbose has been turned on |
boolean |
isVersion3()
Determine if the LDIF format version 3 compliant |
LdapClientResponse |
ldapAdd(java.lang.StringBuffer a_entry)
|
LdapClientResponse |
ldapBind()
Perform an LDAP bind to the server |
LdapClientResponse |
ldapDelete(java.lang.String a_deleteDn)
Perform an LDAP delete on the DN passed in |
LdapClientResponse |
ldapModify(java.lang.StringBuffer a_entry)
|
LdapClientResponse |
ldapSearch(LdapSearchParameters a_parms)
Perform an LDAP search operation on the search filer passed in. |
void |
ldapUnbind()
Perform an LDAP unbind to the server |
void |
printAttributeList(javax.naming.NamingEnumeration a_attributeList)
Print each attribute and the values for each attribute from the list passed into the method. |
void |
printAttributeNames(javax.naming.NamingEnumeration a_attributeList)
Print each attribute name only. |
void |
setBindDn(java.lang.String a_bindDn)
Set the DN of the user to bind to server with |
void |
setHost(java.lang.String a_host)
Set the hostname of the LDAP Server |
void |
setIsDryRun(boolean a_isDryRun)
Set the value of the dry run mode |
void |
setIsVerbose(boolean a_isVerbose)
Set verbose mode |
void |
setIsVersion3(boolean a_isVersion3)
Set value of version3 compatibility |
void |
setPassword(java.lang.String a_password)
Password for the DN entry being used to bind |
void |
setPort(int a_port)
Set the port number to connect to server with |
| Method Detail |
|---|
void setHost(java.lang.String a_host)
a_host - Hostname of the LDAP Servervoid setPort(int a_port)
a_port - Port number to use to connect to the servervoid setBindDn(java.lang.String a_bindDn)
a_bindDn - DN of the user to bind to server withvoid setPassword(java.lang.String a_password)
a_password - Password for the DN entry being used to bindvoid setIsVersion3(boolean a_isVersion3)
a_isVersion3 - True if LDIF is version3void setIsVerbose(boolean a_isVerbose)
a_isVerbose - True if verbose mode is turned onvoid setIsDryRun(boolean a_isDryRun)
a_isDryRun - True if the dry run mode is turned onjava.lang.String getHost()
int getPort()
java.lang.String getBindDn()
java.lang.String getPassword()
boolean isVersion3()
boolean isVerbose()
boolean isDryRun()
void connectToServer()
throws java.net.UnknownHostException,
java.io.IOException
java.net.UnknownHostException - Cannot find the host
java.io.IOException - Error establishing the socket connectionboolean isConnectedToServer()
LdapClientResponse ldapBind()
throws java.io.IOException
java.io.IOException - Error with the IO communication to the server
void closeServerConnection()
throws java.io.IOException
java.io.IOException - Error terminating the socket connection
void ldapUnbind()
throws java.io.IOException
java.io.IOException - Error with the IO communication to the server
LdapClientResponse ldapDelete(java.lang.String a_deleteDn)
throws java.io.IOException
a_deleteDn - DN of the entry to delete
java.io.IOException - Error with the IO communication to the server
LdapClientResponse ldapAdd(java.lang.StringBuffer a_entry)
throws java.io.IOException
a_stream - Stream to read the input from. This can either
be STDIN or a file
java.io.IOException - Error with the IO communication to the server
LdapClientResponse ldapModify(java.lang.StringBuffer a_entry)
throws java.io.IOException
a_stream - Stream to read the input from. This can either
be STDIN or a file
java.io.IOException - Error with the IO communication to the server
LdapClientResponse ldapSearch(LdapSearchParameters a_parms)
throws java.io.IOException
a_filterString - Search filter to use
java.io.IOException - Error with the IO communication to the servervoid printAttributeNames(javax.naming.NamingEnumeration a_attributeList)
a_attributeList - NamingEnumeration of Attributesvoid printAttributeList(javax.naming.NamingEnumeration a_attributeList)
a_attributeList - NamingEnumeration of Attributes
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||