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

📄 slapdconfig.sdf

📁 OpenLdap是LDAP的开源项目
💻 SDF
📖 第 1 页 / 共 3 页
字号:
# $OpenLDAP: pkg/openldap-guide/admin/slapdconfig.sdf,v 1.79.2.8 2007/04/06 04:00:41 quanah Exp $# Copyright 1999-2007 The OpenLDAP Foundation, All Rights Reserved.# COPYING RESTRICTIONS APPLY, see COPYRIGHT.H1: The slapd Configuration FileOnce the software has been built and installed, you are readyto configure {{slapd}}(8) for use at your site. The slapdruntime configuration is primarily accomplished through the{{slapd.conf}}(5) file, normally installed in the{{EX:/usr/local/etc/openldap}} directory.An alternate configuration file can be specified via acommand-line option to {{slapd}}(8) or {{slurpd}}(8). This chapterdescribes the general format of the config file, followed by adetailed description of commonly used config file directives.H2: Configuration File FormatThe {{slapd.conf}}(5) file consists of three types of configurationinformation: global, backend specific, and database specific.  Globalinformation is specified first, followed by information associatedwith a particular backend type, which is then followed by informationassociated with a particular database instance.  Global directives canbe overridden in backend and/or database directives, and backend directivescan be overridden by database directives.Blank lines and comment lines beginning with a '{{EX:#}}' characterare ignored.  If a line begins with white space, it is considered acontinuation of the previous line (even if the previous line is acomment).The general format of slapd.conf is as follows:>	# global configuration directives>	<global config directives>>>	# backend definition>	backend <typeA>>	<backend-specific directives>>>	# first database definition & config directives>	database <typeA>>	<database-specific directives>>>	# second database definition & config directives>	database <typeB>>	<database-specific directives>>>	# second database definition & config directives>	database <typeA>>	<database-specific directives>>>	# subsequent backend & database definitions & config directives>	...A configuration directive may take arguments.  If so, they areseparated by white space.  If an argument contains white space,the argument should be enclosed in double quotes {{EX:"like this"}}. Ifan argument contains a double quote or a backslash character `{{EX:\}}',the character should be preceded by a backslash character `{{EX:\}}'.The distribution contains an example configuration file that willbe installed in the {{F: /usr/local/etc/openldap}} directory.A number of files containing schema definitions (attribute typesand object classes) are also provided in the{{F: /usr/local/etc/openldap/schema}} directory.H2: Configuration File DirectivesThis section details commonly used configuration directives.  Fora complete list, see the {{slapd.conf}}(5) manual page.  This sectionseparates the configuration file directives into global,backend-specific and data-specific categories, describing eachdirective and its default value (if any), and giving an example ofits use.H3: Global DirectivesDirectives described in this section apply to all backendsand databases unless specifically overridden in a backend ordatabase definition.  Arguments that should be replacedby actual text are shown in brackets {{EX:<>}}.H4: access to <what> [ by <who> <accesslevel> <control> ]+This directive grants access (specified by <accesslevel>) to aset of entries and/or attributes (specified by <what>) by one ormore requesters (specified by <who>).See the {{SECT:Access Control}} section of this chapter for asummary of basic usage.!if 0More details discussion of this directive can be found in the{{SECT:Advanced Access Control}} chapter.!endifNote: If no {{EX:access}} directives are specified, the defaultaccess control policy, {{EX:access to * by * read}}, allows allboth authenticated and anonymous users read access.H4: attributetype <{{REF:RFC2252}} Attribute Type Description>This directive defines an attribute type.Please see the {{SECT:Schema Specification}} chapterfor information regarding how to use this directive.H4: idletimeout <integer>Specify the number of seconds to wait before forcibly closingan idle client connection.  An idletimeout of 0, the default,disables this feature.H4: include <filename>This directive specifies that slapd should read additionalconfiguration information from the given file before continuingwith the next line of the current file. The included file shouldfollow the normal slapd config file format.  The file is commonlyused to include files containing schema specifications.Note: You should be careful when using this directive - there isno small limit on the number of nested include directives, and noloop detection is done.H4: loglevel <integer>This directive specifies the level at which debugging statementsand operation statistics should be syslogged (currently logged tothe {{syslogd}}(8) {{EX:LOG_LOCAL4}} facility). You must haveconfigured OpenLDAP {{EX:--enable-debug}} (the default) for thisto work (except for the two statistics levels, which are alwaysenabled).  Log levels are additive. To display what numberscorrespond to what kind of debugging, invoke slapd with {{EX:-?}}or consult the table below. The possible values for <integer> are:!block table; colaligns="RL"; align=Center; \	title="Table 5.1: Debugging Levels"Level	Description-1	enable all debugging0	no debugging1	trace function calls2	debug packet handling4	heavy trace debugging8	connection management16	print out packets sent and received32	search filter processing64	configuration file processing128	access control list processing256	stats log connections/operations/results512	stats log entries sent1024	print communication with shell backends2048	print entry parsing debugging!endblock\Example:E: loglevel -1This will cause lots and lots of debugging information to belogged.\Default:E: loglevel 256H4: objectclass <{{REF:RFC2252}} Object Class Description>This directive defines an object class.Please see the {{SECT:Schema Specification}} chapter forinformation regarding how to use this directive.H4: referral <URI>This directive specifies the referral to pass back when slapdcannot find a local database to handle a request.\Example:>	referral ldap://root.openldap.orgThis will refer non-local queries to the global root LDAP serverat the OpenLDAP Project. Smart LDAP clients can re-ask theirquery at that server, but note that most of these clients areonly going to know how to handle simple LDAP URLs thatcontain a host part and optionally a distinguished name part.H4: sizelimit <integer>This directive specifies the maximum number of entries to returnfrom a search operation.\Default:>	sizelimit 500H4: timelimit <integer>This directive specifies the maximum number of seconds (in realtime) slapd will spend answering a search request. If arequest is not finished in this time, a result indicating anexceeded timelimit will be returned.\Default:>	timelimit 3600H3: General Backend DirectivesDirectives in this section apply only to the backend in whichthey are defined. They are supported by every type of backend.Backend directives apply to all databases instances of thesame type and, depending on the directive, may be overriddenby database directives.H4: backend <type>This directive marks the beginning of a backend declaration.{{EX:<type>}} should be one of thesupported backend types listed in Table 5.2.!block table; align=Center; coltags="EX,N"; \	title="Table 5.2: Database Backends"Types	Descriptionbdb	Berkeley DB transactional backenddnssrv	DNS SRV backendhdb	Hierarchical variant of bdb backendldap	Lightweight Directory Access Protocol (Proxy) backendldbm	Lightweight DBM backendmeta	Meta Directory backendmonitor	Monitor backendpasswd	Provides read-only access to {{passwd}}(5)perl	Perl Programmable backendshell	Shell (extern program) backendsql	SQL Programmable backend!endblock\Example:>	backend bdbThis marks the beginning of a new {{TERM:BDB}} backenddefinition.H3: General Database DirectivesDirectives in this section apply only to the database in whichthey are defined. They are supported by every type of database.H4: database <type>This directive marks the beginning of a database instancedeclaration.{{EX:<type>}} should be one of thesupported backend types listed in Table 5.2.\Example:>	database bdbThis marks the beginning of a new {{TERM:BDB}} database instancedeclaration.H4: readonly { on | off }This directive puts the database into "read-only" mode. Anyattempts to modify the database will return an "unwilling toperform" error.\Default:>	readonly offH4: replica>	replica uri=ldap[s]://<hostname>[:<port>] | host=<hostname>[:<port>]>		[bindmethod={simple|sasl}]>		["binddn=<DN>"]>		[saslmech=<mech>]>		[authcid=<identity>]>		[authzid=<identity>]>		[credentials=<password>]This directive specifies a replication site for this database. The{{EX:uri=}} parameter specifies a scheme, a host and optionally a port wherethe slave slapd instance can be found. Either a domain nameor IP address may be used for <hostname>. If <port> is notgiven, the standard LDAP port number (389 or 636) is used.{{EX:host}} is deprecated in favor of the {{EX:uri}} parameter.{{EX:uri}} allows the replica LDAP server to be specified as an LDAP URI such as {{EX:ldap://slave.example.com:389}} or{{EX:ldaps://slave.example.com:636}}.The {{EX:binddn=}} parameter gives the DN to bind as for updatesto the slave slapd. It should be a DN which has read/write accessto the slave slapd's database.  It must also match the {{EX:updatedn}}directive in the slave slapd's config file.  Generally, this DN{{should not}} be the same as the {{EX:rootdn}} of the masterdatabase.  Since DNs are likely to contain embedded spaces, theentire {{EX:"binddn=<DN>"}} string should be enclosed in doublequotes.The {{EX:bindmethod}} is {{EX:simple}} or {{EX:sasl}}, dependingon whether simple password-based authentication or {{TERM:SASL}}authentication is to be used when connecting to the slave slapd.Simple authentication should not be used unless adequate dataintegrity and confidentiality protections are in place (e.g. TLSor IPSEC).  Simple authentication requires specification of{{EX:binddn}} and {{EX:credentials}} parameters.SASL authentication is generally recommended.  SASL authenticationrequires specification of a mechanism using the {{EX:saslmech}} parameter.Depending on the mechanism, an authentication identity and/orcredentials can be specified using {{EX:authcid}} and {{EX:credentials}}respectively.  The {{EX:authzid}} parameter may be used to specifyan authorization identity.See the chapter entitled {{SECT:Replication with slurpd}} for moreinformation on how to use this directive.H4: replogfile <filename>This directive specifies the name of the replication log file towhich slapd will log changes. The replication log is typicallywritten by slapd and read by slurpd. Normally, this directive isonly used if slurpd is being used to replicate the database.However, you can also use it to generate a transaction log, ifslurpd is not running. In this case, you will need to periodicallytruncate the file, since it will grow indefinitely otherwise.See the chapter entitled {{SECT:Replication with slurpd}} for moreinformation on how to use this directive.H4: rootdn <DN>This directive specifies the DN that is not subject toaccess control or administrative limit restrictions foroperations on this database.  The DN need not refer toan entry in this database or even in the directory. TheDN may refer to a SASL identity.Entry-based Example:>	rootdn "cn=Manager,dc=example,dc=com"SASL-based Example:>	rootdn "uid=root,cn=example.com,cn=digest-md5,cn=auth"See the {{SECT:SASL Authentication}} section for information onSASL authentication identities.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -