Class LDAPSearch
java.lang.Object
|
+--LDAPTool
|
+--LDAPSearch
- public class LDAPSearch
- extends LDAPTool
Execute Search operations through the LDAP client interface.
This class is implemented based on the LDAP class library.
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
Fields inherited from class LDAPTool |
m_binddn,
m_client,
m_debugLevel,
m_hopLimit,
m_justShow,
m_ldaphost,
m_ldapport,
m_ordinary,
m_passwd,
m_proxyControl,
m_referrals,
m_verbose,
m_version |
Method Summary |
protected static void |
extractParameters(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)
|
Methods inherited from class LDAPTool |
extractParameters,
setDefaultReferralCredentials |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
LDAPSearch
public LDAPSearch()
main
public static void main(java.lang.String[] args)
- This is the main function.
- Parameters:
args
- list of arguments
extractParameters
protected static void extractParameters(java.lang.String[] args)
- This function is to extract specified parameters from the
arguments list.
- Parameters:
args
- list of args
printString
protected static void printString(java.lang.String value)
isSchemaEntry
protected static boolean isSchemaEntry(LDAPEntry entry)