Class LDAPDelete
java.lang.Object
LDAPTool
LDAPDelete
Executes the delete command to delete an LDAP entry.
This class is implemented based on the java LDAP classes.
usage : java LDAPDelete [options] DN for example : java -D "dn" -w password -h ds.internic.net -p 389 "cn=Johnny James,o=Ace Industry" options: {np = no parameters, p = requires parameters} 'D' bind DN --------------------------------------------- p 'h' LDAP host ------------------------------------------- p 'p' LDAP port ------------------------------------------- p 'w' bind password --------------------------------------- p note: '-' or '/' is used to distinct the option field. e.g. -a -b /c /d parameter -e parameter
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static boolean
private static String[]
private static BufferedReader
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
deleteEntry
(String dn, LDAPConstraints cons) private static void
dodelete()
This class-method is used to call the LDAP Delete Operation with the specified options, and/or parameters.private static void
dodelete
(LDAPConstraints cons) private static void
doUsage()
Prints usage.protected static void
extractParameters
(String[] args) This class-method is used to extract specified parameters from the arguments list.static void
Methods inherited from class LDAPTool
extractParameters, setDefaultReferralCredentials
-
Field Details
-
m_delete_dn
-
m_cont
private static boolean m_cont -
m_reader
-
-
Constructor Details
-
LDAPDelete
public LDAPDelete()
-
-
Method Details
-
main
-
doUsage
private static void doUsage()Prints usage. -
extractParameters
This class-method is used to extract specified parameters from the arguments list. -
dodelete
private static void dodelete()This class-method is used to call the LDAP Delete Operation with the specified options, and/or parameters. -
dodelete
-
deleteEntry
-