public class LDAPSearch
extends java.lang.Object
usage : java LDAPSearch -b baseDN [options] filter [attributes...] for example : java LDAPSearch -b "c=us" -h ds.internic.net -p 389 "(objectClass=*)" note: '-' or '/' is used to distinct the option field. e.g. -a -b /c /d parameter -e parameter filter: Any string in RFC1558 specification. e.g. "(objectClass=*)" attributes: {0..n} All the string parameters follows with the filter. e.g. filter attrsA attrsB attrsC
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
m_binddn |
protected static LDAPConnection |
m_client |
protected static int |
m_debugLevel |
protected static int |
m_hopLimit |
protected static boolean |
m_justShow |
protected static java.lang.String |
m_ldaphost |
protected static int |
m_ldapport |
protected static boolean |
m_ordinary |
protected static java.lang.String |
m_passwd |
protected static LDAPControl |
m_proxyControl |
protected static boolean |
m_referrals |
protected static boolean |
m_verbose |
protected static int |
m_version |
Constructor and Description |
---|
LDAPSearch() |
Modifier and Type | Method and Description |
---|---|
protected static void |
extractParameters(java.lang.String[] args)
This function is to extract specified parameters from the
arguments list.
|
protected static GetOpt |
extractParameters(java.lang.String privateOpts,
java.lang.String[] args)
This function is to extract specified parameters from the
arguments list.
|
protected static boolean |
isSchemaEntry(LDAPEntry entry) |
static void |
main(java.lang.String[] args)
This is the main function.
|
protected static void |
printString(java.lang.String value) |
protected static void |
setDefaultReferralCredentials(LDAPConstraints cons) |
protected static int m_ldapport
protected static java.lang.String m_binddn
protected static java.lang.String m_ldaphost
protected static java.lang.String m_passwd
protected static int m_version
protected static int m_debugLevel
protected static int m_hopLimit
protected static boolean m_referrals
protected static LDAPConnection m_client
protected static boolean m_justShow
protected static boolean m_verbose
protected static boolean m_ordinary
protected static LDAPControl m_proxyControl
public static void main(java.lang.String[] args)
args
- list of argumentsprotected static void extractParameters(java.lang.String[] args)
args
- list of argsprotected static void printString(java.lang.String value)
protected static boolean isSchemaEntry(LDAPEntry entry)
protected static GetOpt extractParameters(java.lang.String privateOpts, java.lang.String[] args)
args
- list of argsprotected static void setDefaultReferralCredentials(LDAPConstraints cons)