📄 ldapdelete.1
字号:
.TH LDAPDELETE 1 "20 August 2001" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man1/ldapdelete.1,v 1.7.2.13 2001/08/29 17:29:52 kurt Exp $.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply. See COPYRIGHT/LICENSE..SH NAMEldapdelete \- LDAP delete entry tool.SH SYNOPSIS.B ldapdelete[\c.BR \-n ][\c.BR \-v ][\c.BR \-k ][\c.BR \-K ][\c.BR \-c ][\c.BR \-M[M] ][\c.BI \-d \ debuglevel\fR][\c.BI \-f \ file\fR][\c.BI \-D \ binddn\fR][\c.BR \-W ][\c.BI \-w \ passwd\fR][\c.BI \-H \ ldapuri\fR][\c.BI \-h \ ldaphost\fR][\c.BI \-P \ 2\fR\||\|\fI3\fR][\c.BI \-p \ ldapport\fR][\c.BR \-O \ security-properties ][\c.BI \-U \ authcid\fR][\c.BR \-x ][\c.BR \-I ][\c.BR \-Q ][\c.BI \-X \ authzid\fR][\c.BI \-Y \ mech\fR][\c.BR \-Z[Z] ][\c.IR dn ]....SH DESCRIPTION.I ldapdeleteis a shell-accessible interface to the.BR ldap_delete (3)library call..LP.B ldapdeleteopens a connection to an LDAP server, binds, and deletes one or moreentries. If one or more \fIDN\fP arguments are provided, entries withthose Distinguished Names are deleted. Each \fIDN\fP should be providedusing the LDAPv3 string representation as defined in RFC 2253.If no \fIdn\fP argumentsare provided, a list of DNs is read from standard input (or from\fIfile\fP if the -f flag is used)..SH OPTIONS.TP.B \-nShow what would be done, but don't actually delete entries. Useful fordebugging in conjunction with -v..TP.B \-vUse verbose mode, with many diagnostics written to standard output..TP.B \-kUse Kerberos IV authentication instead of simple authentication. It isassumed that you already have a valid ticket granting ticket. This optiononly has effect if. B ldapdeleteis compiled with Kerberos support..TP.B \-KSame as \-k, but only does step 1 of the Kerberos IV bind. This is usefulwhen connecting to a slapd and there is no x500dsa.hostname principalregistered with your Kerberos Domain Controller(s)..TP.B \-cContinuous operation mode. Errors are reported, but.B ldapdeletewill continue with deletions. The default is to exit afterreporting an error..TP.B \-M[M]Enable manage DSA IT control..B \-MMmakes control critical..TP.BI \-d \ debuglevelSet the LDAP debugging level to \fIdebuglevel\fP..B ldapdeletemust be compiled with LDAP_DEBUG defined for this option to have any effect..TP.BI \-f \ fileRead a series of lines from \fIfile\fP, performing one LDAP search foreach line. In this case, the \fIfilter\fP given on the command lineis treated as a pattern where the first occurrence of \fB%s\fP isreplaced with a line from \fIfile\fP..TP.B \-x Use simple authentication instead of SASL..TP.BI \-D \ binddnUse the Distinguished Name \fIbinddn\fP to bind to the LDAP directory..TP.B \-WPrompt for simple authentication.This is used instead of specifying the password on the command line..TP.BI \-w \ passwdUse \fIpasswd\fP as the password for simple authentication..TP.BI \-H \ ldapuriSpecify URI(s) referring to the ldap server(s)..TP.BI \-h \ ldaphostSpecify an alternate host on which the ldap server is running.Deprecated in favor of -H..TP.BI \-p \ ldapportSpecify an alternate TCP port where the ldap server is listening.Deprecated in favor of -H..TP.BI \-P \ 2\fR\||\|\fI3Specify the LDAP protocol version to use..TP.B \-rDo a recursive delete. If the DN specified isn't a leaf, itschildren, and all their children are deleted down the tree. Noverification is done, so if you add this switch, ldapdelete willhappily delete large portions of your tree. Use with care..TP.BI \-O \ security-propertiesSpecify SASL security properties..TP.B \-IEnable SASL Interactive mode. Always prompt. Default is to promptonly as needed..TP.B \-QEnable SASL Quiet mode. Never prompt..TP.BI \-U \ authcidSpecify the authentication ID for SASL bind. The form of the identity depends on theactual SASL mechanism used..TP.BI \-X \ authzidSpecify the requested authorization ID for SASL bind..I authzidmust be one of the following formats:.B dn:\c.I <distinguished name>or.B u:\c.I <username>.TP.BI \-Y \ mechSpecify the SASL mechanism to be used for authentication. If it's notspecified, the program will choose the best mechanism the server knows..TP.B \-Z[Z]Issue StartTLS (Transport Layer Security) extended operation. If you use.B \-ZZ\c, the command will require the operation to be successful..SH EXAMPLEThe following command:.LP.nf ldapdelete "cn=Delete Me, dc=example, dc=com".fi.LPwill attempt to delete the entry named with commonName "Delete Me"directly below the "dc=example, dc=com" entry.Of course it would probably be necessary to supply authenticationcredentials..SH DIAGNOSTICSExit status is 0 if no errors occur. Errors result in a non-zero exitstatus and a diagnostic message being written to standard error..SH "SEE ALSO".BR ldap.conf (5),.BR ldapadd (1),.BR ldapmodify (1),.BR ldapmodrdn (1),.BR ldapsearch (1),.BR ldap (3),.BR ldap_delete (3).SH BUGSThere is no interactive mode, but there probably should be..SH AUTHORThe OpenLDAP Project <http://www.openldap.org/>.SH ACKNOWLEDGEMENTS.B OpenLDAPis developed and maintained by The OpenLDAP Project (http://www.openldap.org/)..B OpenLDAPis derived from University of Michigan LDAP 3.3 Release.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -