Class LDAPSearch
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
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 |
protected static void | extractParameters(args[] )- This function is to extract specified parameters from the
arguments list.
|
protected static boolean | isSchemaEntry(LDAPEntry entry)
|
static void | main(args[] )- This is the main function.
|
protected static void | printString(String value)
|
extractParameters
protected static void extractParameters(args[] )
This function is to extract specified parameters from the
arguments list.
isSchemaEntry
protected static boolean isSchemaEntry(LDAPEntry entry)
main
public static void main(args[] )
This is the main function.
printString
protected static void printString(String value)