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
 

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)

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)