public final class LDAPClient extends Object
Modifier and Type | Field and Description |
---|---|
static short |
SECURE_CFSSL_BASIC
Field
SECURE_CFSSL_BASIC |
static short |
SECURE_CFSSL_CLIENT_AUTH
Field
SECURE_CFSSL_CLIENT_AUTH |
static short |
SECURE_NONE
Field
SECURE_NONE |
static int |
SORT_DIRECTION_ASC
Field
SORT_DIRECTION_ASC |
static int |
SORT_DIRECTION_DESC
Field
SORT_DIRECTION_DESC |
static int |
SORT_TYPE_CASE
Field
SORT_TYPE_CASE |
static int |
SORT_TYPE_NOCASE
Field
SORT_TYPE_NOCASE |
Constructor and Description |
---|
LDAPClient(String server,
int port,
String[] binaryColumns)
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
void |
add(String dn,
String attributes,
String delimiter,
String seperator)
adds LDAP entries to LDAP server
|
void |
delete(String dn)
deletes LDAP entries on an LDAP server
|
void |
modify(String dn,
int modifytype,
String strAttributes,
String delimiter,
String separator) |
void |
modifydn(String dn,
String attributes)
modifies distinguished name attribute for LDAP entries on LDAP server
|
Query |
query(String strAttributes,
int scope,
int startrow,
int maxrows,
int timeout,
String[] sort,
int sortType,
int sortDirection,
String start,
String separator,
String filter) |
void |
setCredential(String username,
String password)
sets username password for the connection
|
void |
setReferral(int referral)
sets thr referral
|
void |
setSecureLevel(short secureLevel)
sets the secure Level
|
public static final short SECURE_NONE
SECURE_NONE
public static final short SECURE_CFSSL_BASIC
SECURE_CFSSL_BASIC
public static final short SECURE_CFSSL_CLIENT_AUTH
SECURE_CFSSL_CLIENT_AUTH
public static final int SORT_TYPE_CASE
SORT_TYPE_CASE
public static final int SORT_TYPE_NOCASE
SORT_TYPE_NOCASE
public static final int SORT_DIRECTION_ASC
SORT_DIRECTION_ASC
public static final int SORT_DIRECTION_DESC
SORT_DIRECTION_DESC
public LDAPClient(String server, int port, String[] binaryColumns)
server
- port
- binaryColumns
- public void setCredential(String username, String password)
username
- password
- public void setSecureLevel(short secureLevel) throws ClassException
secureLevel
- [SECURE_CFSSL_BASIC, SECURE_CFSSL_CLIENT_AUTH, SECURE_NONE]ClassNotFoundException
ClassException
public void setReferral(int referral)
referral
- public void add(String dn, String attributes, String delimiter, String seperator) throws NamingException, PageException
dn
- attributes
- delimiter
- NamingException
PageException
public void delete(String dn) throws NamingException
dn
- NamingException
public void modifydn(String dn, String attributes) throws NamingException
dn
- attributes
- NamingException
public void modify(String dn, int modifytype, String strAttributes, String delimiter, String separator) throws NamingException, PageException
NamingException
PageException
public Query query(String strAttributes, int scope, int startrow, int maxrows, int timeout, String[] sort, int sortType, int sortDirection, String start, String separator, String filter) throws NamingException, PageException, IOException
dn
- strAttributes
- scope
- startrow
- maxrows
- timeout
- sort
- sortType
- sortDirection
- start
- separator
- filter
- NamingException
PageException
IOException
Copyright © 2015 Lucee