|
Directory SDK for Java 4.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Specifies additional features available in version 3 of the LDAP protocol, as described in RFC 2251.
| Field Summary | |
static String |
ALL_USER_ATTRS
Attribute type that you can specify in the LDAPConnection search method if you want to retrieve all attribute types. |
static int |
CLIENTCONTROLS
Option specifying client controls for LDAP operations. |
static String |
NO_ATTRS
Attribute type that you can specify in the LDAPConnection search method if you don't want to retrieve any of the attribute types for entries found by the search. |
static int |
SERVERCONTROLS
Option specifying server controls for LDAP operations. |
| Fields inherited from interface netscape.ldap.LDAPv2 |
BATCHSIZE, BIND, DEFAULT_PORT, DEREF, DEREF_ALWAYS, DEREF_FINDING, DEREF_NEVER, DEREF_SEARCHING, PROTOCOL_VERSION, REFERRALS, REFERRALS_HOP_LIMIT, REFERRALS_REBIND_PROC, SCOPE_BASE, SCOPE_ONE, SCOPE_SUB, SERVER_TIMELIMIT, SIZELIMIT, TIMELIMIT |
| Method Summary | |
void |
authenticate(int version,
String dn,
String passwd)
Authenticates to the LDAP server (to which the object is currently connected) using the specified name, password, and version of the LDAP protocol. |
void |
bind(int version,
String dn,
String passwd)
Authenticates to the LDAP server (to which the object is currently connected) using the specified name, password, and version of the LDAP protocol. |
void |
connect(int version,
String host,
int port,
String dn,
String passwd)
Connects and authenticates to the LDAP server using the specified version of the LDAP protocol. |
LDAPExtendedOperation |
extendedOperation(LDAPExtendedOperation op)
Performs an extended operation on the directory. |
LDAPControl[] |
getResponseControls()
Returns an array of the latest controls (if any) from the server. |
void |
rename(String DN,
String newRDN,
String newParentDN,
boolean deleteOldRDN)
Renames and moves an entry in the directory. |
void |
rename(String DN,
String newRDN,
String newParentDN,
boolean deleteOldRDN,
LDAPConstraints cons)
Renames and moves an entry in the directory. |
| Methods inherited from interface netscape.ldap.LDAPv2 |
abandon, add, add, authenticate, bind, compare, compare, connect, connect, delete, delete, disconnect, getOption, modify, modify, modify, modify, read, read, read, rename, rename, search, search, setOption |
| Field Detail |
public static final int CLIENTCONTROLS
LDAPControl,
LDAPConnection.getOption(int),
LDAPConnection.setOption(int, java.lang.Object),
Constant Field Valuespublic static final int SERVERCONTROLS
LDAPControl,
LDAPConnection.getOption(int),
LDAPConnection.setOption(int, java.lang.Object),
Constant Field Valuespublic static final String NO_ATTRS
LDAPConnection.search(netscape.ldap.LDAPUrl),
Constant Field Valuespublic static final String ALL_USER_ATTRS
...
String [] MY_ATTRS = { LDAPv3.ALL_USER_ATTRS, "modifiersName",
"modifyTimestamp" };
LDAPSearchResults res = ld.search( MY_SEARCHBASE,
LDAPConnection.SCOPE_SUB, MY_FILTER, MY_ATTRS, false, cons );
...
LDAPConnection.search(netscape.ldap.LDAPUrl),
Constant Field Values| Method Detail |
public void connect(int version,
String host,
int port,
String dn,
String passwd)
throws LDAPException
version - requested version of the LDAP protocol: currently 2 or 3host - hostname of the LDAP serverport - port number of the LDAP server. To specify the
default port, use DEFAULT_PORT.dn - distinguished name to use for authenticationpasswd - password for authentication
LDAPException - Failed to connect and authenticate to the server.
public void authenticate(int version,
String dn,
String passwd)
throws LDAPException
version - requested LDAP protocol version: currently 2 or 3.dn - if non-null and non-empty, specifies that the
connection and all operations through it should
authenticate with dn as the distinguished namepasswd - if non-null and non-empty, specifies that the
connection and all operations through it should
authenticated with passwd as password
LDAPException - Failed to authenticate to the LDAP server.
public void bind(int version,
String dn,
String passwd)
throws LDAPException
version - requested LDAP protocol version: currently 2 or 3.dn - if non-null and non-empty, specifies that the
connection and all operations through it should authenticate
with dn as the distinguished namepasswd - if non-null and non-empty, specifies that the
connection and all operations through it should authenticate
with passwd as password
LDAPException - Failed to authenticate to the LDAP server.
public LDAPExtendedOperation extendedOperation(LDAPExtendedOperation op)
throws LDAPException
op - LDAPExtendedOperation object specifying the OID of the
extended operation and the data to use in the operation
LDAPException - Failed to execute the operationLDAPExtendedOperation
public void rename(String DN,
String newRDN,
String newParentDN,
boolean deleteOldRDN)
throws LDAPException
DN - original distinguished name (DN) for the entrynewRDN - new relative distinguished name (RDN) for the entrynewParentDN - distinguished name of the new parent entry of the
specified entrydeleteOldRDN - specifies whether or not to remove the old RDN
when renaming and moving the entry. If true, the old RDN will be deleted.
LDAPException - Failed to rename the specified entry.
public void rename(String DN,
String newRDN,
String newParentDN,
boolean deleteOldRDN,
LDAPConstraints cons)
throws LDAPException
DN - original distinguished name (DN) for the entrynewRDN - new relative distinguished name (RDN) for the entrynewParentDN - distinguished name of the new parent entry of the
specified entrydeleteOldRDN - specifies whether or not to remove the old RDN
when renaming and moving the entry. If true, the old RDN will be deleted.cons - the constraints set for the rename operation
LDAPException - Failed to rename the specified entry.public LDAPControl[] getResponseControls()
null if none.LDAPControl
|
Directory SDK for Java 4.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||