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 "ou=People" -h ds.example.com -p 389
"(sn=Jensen)"
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 |
static void |
main(String[] args)
This is the main function. |
LDAPSearch
public LDAPSearch()
main
public static void main(String[] args)
- This is the main function.
- Parameters:
args - list of arguments
Java is a trademark or registered trademark of Sun Microsystems,
Inc. in the US and other countries.
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.