Class 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
 
Version:
1.0

Field Summary

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(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)

Methods inherited from class .LDAPTool

extractParameters, setDefaultReferralCredentials

Method Details

extractParameters

protected static void extractParameters(args[] )
This function is to extract specified parameters from the arguments list.
Parameters:

isSchemaEntry

protected static boolean isSchemaEntry(LDAPEntry entry)

main

public static void main(args[] )
This is the main function.
Parameters:

printString

protected static void printString(String value)