📄 ldapcompare.1
字号:
.TH LDAPCOMPARE 1 "RELEASEDATE" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man1/ldapcompare.1,v 1.8.2.5 2007/01/02 21:43:44 kurt Exp $.\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply. See COPYRIGHT/LICENSE..SH NAMEldapcompare \- LDAP compare tool.SH SYNOPSIS.B ldapcompare[\c.BR \-n ][\c.BR \-v ][\c.BR \-z ][\c.BR \-M[M] ][\c.BI \-d \ debuglevel\fR][\c.BI \-D \ binddn\fR][\c.BR \-W ][\c.BI \-w \ passwd\fR][\c.BI \-y \ passwdfile\fR][\c.BI \-H \ ldapuri\fR][\c.BI \-h \ ldaphost\fR][\c.BI \-p \ ldapport\fR][\c.BI \-P \ 2\fR\||\|\fI3\fR][\c.BR \-O \ security-properties ][\c.BR \-I ][\c.BR \-Q ][\c.BI \-U \ authcid\fR][\c.BI \-R \ realm\fR][\c.BR \-x ][\c.BI \-X \ authzid\fR][\c.BI \-Y \ mech\fR][\c.BR \-Z[Z] ].IR DN \ <.BR attr:value \ |.BR attr::b64value \ >.SH DESCRIPTION.I ldapcompareis a shell-accessible interface to the.BR ldap_compare (3)library call..LP.B ldapcompareopens a connection to an LDAP server, binds, and performs a compareusing specified parameters. The \fIDN\fP should be a distinguishedname in the directory. \fIAttr\fP should be a known attribute. Iffollowed by one colon, the assertion \fIvalue\fP should be providedas a string. If followed by two colons, the base64 encoding of thevalue is provided. The result code of the compare is provided asthe exit code and, unless ran with -z, the program printsTRUE, FALSE, or UNDEFINED on standard output..LP.SH OPTIONS.TP.B \-nShow what would be done, but don't actually perform the compare. Useful fordebugging in conjunction with -v..TP.B \-vRun in verbose mode, with many diagnostics written to standard output..TP.B \-zRun in quiet mode, no output is written. You must check the returnstatus. Useful in shell scripts..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 ldapcomparemust be compiled with LDAP_DEBUG defined for this option to have any effect..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 \-y \ passwdfileUse complete contents of \fIpasswdfile\fP as the password forsimple authentication..TP.BI \-H \ ldapuriSpecify URI(s) referring to the ldap server(s); only the protocol/host/portfields are allowed; a list of URI, separated by whitespace or commasis expected..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.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 IDdepends on the actual SASL mechanism used..TP.BI \-R \ realmSpecify the realm of authentication ID for SASL bind. The form of the realmdepends on the actual 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 EXAMPLES.nf ldapcompare "uid=babs,dc=example,dc=com" sn:Jensen ldapcompare "uid=babs,dc=example,dc=com" sn::SmVuc2Vu.fiare all equivalent..SH LIMITATIONSRequiring the value be passed on the command line is limitingand introduces some security concerns. The command should supporta mechanism to specify the location (file name or URL) to readthe value from..SH "SEE ALSO".BR ldap.conf (5),.BR ldif (5),.BR ldap (3),.BR ldap_compare (3).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 + -