Class LDAPModify
java.lang.Object
LDAPTool
LDAPModify
- public class LDAPModify
- extends LDAPTool
Executes modify, delete, add, and modRDN.
This class is implemented based on the java LDAP classes.
usage : java LDAPModify [options]
example : java LDAPModify -h ds.example.com -p 389
-D "cn=admin,cn=Directory Administrators,cn=config"
-w password -f modify.cfg
options: {np = no parameters, p = requires parameters}
'D' bind DN --------------------------------------------- p
'w' bind password --------------------------------------- p
'f' input file ------------------------------------------ p
'h' LDAP host ------------------------------------------- p
'p' LDAP port ------------------------------------------- p
'e' record rejected records in a text file -------------- p
'c' continuous, do not stop on error ------------------- np
'a' add, if no operation is specified ------------------ np
'r' replace, if no operation is specified -------------- np
'b' binary, read values starting with / from a file ---- np
'd' debugging level ------------------------------------- p
'V' version, specify LDAP protocol version (2 or 3) ----- p
'R' do not follow referrals ---------------------------- np
'O' hop limit ------------------------------------------- p
'H' help, display usage--------------------------------- np
'M' manage referrals, do not follow them --------------- np
'n' show what would be done but do not do it ----------- np
'v' verbose mode --------------------------------------- np
'e' reject file, where to list rejected records --------- p
'y' proxy DN, DN to use for access control -------------- p
note: '-' or '/' is used to mark an option field.
e.g. -a -b /c /d parameter -e parameter
LDAPModify
public LDAPModify()
main
public static void main(String[] args)
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.