⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldap.conf.5

📁 OpenLdap是LDAP的开源项目
💻 5
字号:
.TH LDAP.CONF 5 "RELEASEDATE" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man5/ldap.conf.5,v 1.28.2.4 2007/01/02 21:43:45 kurt Exp $.\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply.  See COPYRIGHT/LICENSE..UC 6.SH NAMEldap.conf, .ldaprc \- ldap configuration file.SH SYNOPSISETCDIR/ldap.conf, .ldaprc.SH DESCRIPTIONIf the environment variable \fBLDAPNOINIT\fP is defined, alldefaulting is disabled..LPThe.I ldap.confconfiguration file is used to set system-wide defaults to be applied whenrunning.I ldapclients..LPUsers may create an optional configuration file,.I ldaprcor.IR .ldaprc ,in their home directory which will be used to override the system-widedefaults file.The file.I ldaprcin the current working directory is also used..LP.LPAdditional configuration files can be specified usingthe \fBLDAPCONF\fP and \fBLDAPRC\fP environment variables.\fBLDAPCONF\fP may be set to the path of a configuration file.  Thispath can be absolute or relative to the current working directory.The \fBLDAPRC\fP, if defined, should be the basename of a filein the current working directory or in the user's home directory..LPEnvironmental variables may also be used to augment the file based defaults.The name of the variable is the option name with an added prefix of \fBLDAP\fP.For example, to define \fBBASE\fP via the environment, set the variable\fBLDAPBASE\fP to the desired value..LPSome options are user\-only.  Such options are ignored if presentin the.I ldap.conf(or file specified by.BR LDAPCONF )..SH OPTIONSThe configuration options are case-insensitive;their value, on a case by case basis, may be case-sensitive.The different configuration options are:.TP.B URI <ldap[s]://[name[:port]] ...>Specifies the URI(s) of an LDAP server(s) to which the.I LDAP library should connect.  The URI scheme may be either.B ldapor.B ldaps which refer to LDAP over TCP and LDAP over SSL (TLS) respectively.Each server's name can be specified as adomain-style name or an IP address literal.  Optionally, theserver's name can followed by a ':' and the port number the LDAPserver is listening on.  If no port number is provided, the defaultport for the scheme is used (389 for ldap://, 636 for ldaps://).A space separated list of URIs may be provided..TP.B BASE <base>Specifies the default base DN to use when performing ldap operations.The base must be specified as a Distinguished Name in LDAP format..TP.B BINDDN <dn>Specifies the default bind DN to use when performing ldap operations.The bind DN must be specified as a Distinguished Name in LDAP format.This is a user\-only option..TP.B HOST <name[:port] ...>Specifies the name(s) of an LDAP server(s) to which the.I LDAP library should connect.  Each server's name can be specified as adomain-style name or an IP address and optionally followed by a ':' andthe port number the ldap server is listening on.  A space separatedlist of hosts may be provided..B HOSTis deprecated in favor of.BR URI ..TP.B PORT <port>Specifies the default port used when connecting to LDAP servers(s).The port may be specified as a number..B PORTis deprecated in favor of.BR URI..TP.B REFERRALS <on/true/yes/off/false/no>Specifies if the client should automatically follow referrals returnedby LDAP servers.The default is on.Note that the command line tools.BR ldapsearch (1)&co always override this option..TP.B SIZELIMIT <integer>Specifies a size limit to use when performing searches.  Thenumber should be a non-negative integer.  \fISIZELIMIT\fP of zero (0)specifies unlimited search size..TP.B TIMELIMIT <integer>Specifies a time limit to use when performing searches.  Thenumber should be a non-negative integer.  \fITIMELIMIT\fP of zero (0)specifies unlimited search time to be used..TP.B DEREF <when>Specifies how alias dereferencing is done when performing a search. The.B <when>can be specified as one of the following keywords:.RS.TP.B neverAliases are never dereferenced. This is the default..TP.B searchingAliases are dereferenced in subordinates of the base object, butnot in locating the base object of the search..TP.B findingAliases are only dereferenced when locating the base object of the search..TP.B alwaysAliases are dereferenced both in searching and in locating the base objectof the search..RE.SH SASL OPTIONSIf OpenLDAP is built with Simple Authentication and Security Layer support,there are more options you can specify..TP.B SASL_MECH <mechanism>Specifies the SASL mechanism to use.This is a user\-only option..TP.B SASL_REALM <realm>Specifies the SASL realm.This is a user\-only option..TP.B SASL_AUTHCID <authcid>Specifies the authentication identity.This is a user\-only option..TP.B SASL_AUTHZID <authcid>Specifies the proxy authorization identity.This is a user\-only option..TP.B SASL_SECPROPS <properties>Specifies Cyrus SASL security properties. The .B <properties>can be specified as a comma-separated list of the following:.RS.TP.B none(without any other properties) causes the propertiesdefaults ("noanonymous,noplain") to be cleared..TP.B noplaindisables mechanisms susceptible to simple passive attacks..TP.B noactivedisables mechanisms susceptible to active attacks..TP.B nodictdisables mechanisms susceptible to passive dictionary attacks..TP.B noanonymousdisables mechanisms which support anonymous login..TP.B forwardsecrequires forward secrecy between sessions..TP.B passcredrequires mechanisms which pass client credentials (and allowsmechanisms which can pass credentials to do so)..TP.B minssf=<factor> specifies the minimum acceptable.I security strength factoras an integer approximating the effective key length used forencryption.  0 (zero) implies no protection, 1 implies integrityprotection only, 56 allows DES or other weak ciphers, 112allows triple DES and other strong ciphers, 128 allows RC4,Blowfish and other modern strong ciphers.  The default is 0..TP.B maxssf=<factor> specifies the maximum acceptable.I security strength factoras an integer (see.B minssfdescription).  The default is.BR INT_MAX ..TP.B maxbufsize=<factor> specifies the maximum security layer receive buffersize allowed.  0 disables security layers.  The default is 65536..RE.SH TLS OPTIONSIf OpenLDAP is built with Transport Layer Security support, thereare more options you can specify.  These options are used when an.B ldaps:// URIis selected (by default or otherwise) or when the applicationnegotiates TLS by issuing the LDAP Start TLS operation..TP.B TLS_CACERT <filename>Specifies the file that contains certificates for all of the CertificateAuthorities the client will recognize..TP.B TLS_CACERTDIR <path>Specifies the path of a directory that contains Certificate Authoritycertificates in separate individual files. The.B TLS_CACERTis always used before.B TLS_CACERTDIR..TP.B TLS_CERT <filename>Specifies the file that contains the client certificate.This is a user\-only option..TP.B TLS_KEY <filename>Specifies the file that contains the private key that matches the certificatestored in the.B TLS_CERTfile. Currently, the private key must not be protected with a password, soit is of critical importance that the key file is protected carefully. Thisis a user\-only option..TP.B TLS_CIPHER_SUITE <cipher-suite-spec>Specifies acceptable cipher suite and preference order.<cipher-suite-spec> should be a cipher specification for OpenSSL,e.g., HIGH:MEDIUM:+SSLv2..TP.B TLS_RANDFILE <filename>Specifies the file to obtain random bits from when /dev/[u]random isnot available. Generally set to the name of the EGD/PRNGD socket.The environment variable RANDFILE can also be used to specify the filename..TP.B TLS_REQCERT <level>Specifies what checks to perform on server certificates in a TLS session,if any. The.B <level>can be specified as one of the following keywords:.RS.TP.B neverThe client will not request or check any server certificate..TP.B allowThe server certificate is requested. If no certificate is provided,the session proceeds normally. If a bad certificate is provided, it willbe ignored and the session proceeds normally..TP.B tryThe server certificate is requested. If no certificate is provided,the session proceeds normally. If a bad certificate is provided,the session is immediately terminated..TP.B demand | hardThese keywords are equivalent. The server certificate is requested. If nocertificate is provided, or a bad certificate is provided, the sessionis immediately terminated. This is the default setting..RE.TP.B TLS_CRLCHECK <level>Specifies if the Certificate Revocation List (CRL) of the CA should be used to verify if the server certificates have not been revoked. Thisrequires.B TLS_CACERTDIRparameter to be set..B <level>can be specified as one of the following keywords:.RS.TP.B noneNo CRL checks are performed.TP.B peerCheck the CRL of the peer certificate.TP.B allCheck the CRL for a whole certificate chain.RE.SH "ENVIRONMENT VARIABLES".TPLDAPNOINITdisable all defaulting.TPLDAPCONFpath of a configuration file.TPLDAPRCbasename of ldaprc file in $HOME or $CWD.TPLDAP<option-name>Set <option-name> as from ldap.conf.SH FILES.TP.I  ETCDIR/ldap.confsystem-wide ldap configuration file.TP.I  $HOME/ldaprc, $HOME/.ldaprcuser ldap configuration file.TP.I  $CWD/ldaprclocal ldap configuration file.SH "SEE ALSO".BR ldap (3),.BR openssl (1),.BR sasl (3).SH AUTHORKurt Zeilenga, The OpenLDAP Project.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 + -