Class LDAPDelete
java.lang.Object
LDAPTool
LDAPDelete
- public class LDAPDelete
- extends LDAPTool
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
Method Summary |
protected static void |
extractParameters(java.lang.String[] args)
This class-method is used to extract specified parameters from the
arguments list. |
protected static GetOpt |
extractParameters(java.lang.String privateOpts,
java.lang.String[] args)
This function is to extract specified parameters from the
arguments list. |
static void |
main(java.lang.String[] args)
|
protected static void |
setDefaultReferralCredentials(LDAPConstraints cons)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_ldapport
protected static int m_ldapport
m_binddn
protected static java.lang.String m_binddn
m_ldaphost
protected static java.lang.String m_ldaphost
m_passwd
protected static java.lang.String m_passwd
m_version
protected static int m_version
m_debugLevel
protected static int m_debugLevel
m_hopLimit
protected static int m_hopLimit
m_referrals
protected static boolean m_referrals
m_client
protected static LDAPConnection m_client
m_justShow
protected static boolean m_justShow
m_verbose
protected static boolean m_verbose
m_ordinary
protected static boolean m_ordinary
m_proxyControl
protected static LDAPControl m_proxyControl
LDAPDelete
public LDAPDelete()
main
public static void main(java.lang.String[] args)
extractParameters
protected static void extractParameters(java.lang.String[] args)
- This class-method is used to extract specified parameters from the
arguments list.
extractParameters
protected static GetOpt extractParameters(java.lang.String privateOpts,
java.lang.String[] args)
- This function is to extract specified parameters from the
arguments list.
- Parameters:
args
- list of args
setDefaultReferralCredentials
protected static void setDefaultReferralCredentials(LDAPConstraints cons)