205 lines
4.0 KiB
HTML
205 lines
4.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Configuration File Format</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="LDAP Linux HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Configuring the LDAP Server"
|
|
HREF="config.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Configuring the LDAP Server"
|
|
HREF="config.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Global Directives"
|
|
HREF="globaldirect.html"></HEAD
|
|
><BODY
|
|
CLASS="section"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>LDAP Linux HOWTO</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="config.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 3. Configuring the LDAP Server</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="globaldirect.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="section"
|
|
><H1
|
|
CLASS="section"
|
|
><A
|
|
NAME="ConfigFormat"
|
|
></A
|
|
>3.1. Configuration File Format</H1
|
|
><P
|
|
>The slapd.conf file consists of three types of configuration information:
|
|
global, backend specific, and database specific. Global information is
|
|
specified first, followed by information associated with a particular backend
|
|
type, which is then followed by information associated with a particular
|
|
database instance. </P
|
|
><P
|
|
>Global directives can be overridden in a backend and/or database directives,
|
|
backend directives can be overridden by database directives.</P
|
|
><P
|
|
>Blank lines and comment lines beginning with a '#' character are ignored. If a
|
|
line begins with white space, it is considered a continuation of the previous
|
|
line (even if the previous line is a comment). The general format of slapd.conf is as
|
|
follows:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
>
|
|
# 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 "typeA" database definition & config directives
|
|
database <typeA>
|
|
<database-specific directives>
|
|
|
|
# subsequent backend & database definitions & config directives
|
|
... </PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>A configuration directive may take arguments. If so, they are separated by
|
|
white space. If an argument contains white space, the argument should be
|
|
enclosed in double quotes "like this". If an argument contains a double quote
|
|
or a backslash character `\', the character should be preceded by a backslash
|
|
character `\'.</P
|
|
><P
|
|
>The distribution contains an example configuration file that will be installed
|
|
in the /usr/local/etc/openldap directory. A number of files containing schema
|
|
definitions (attribute types and object classes) are also provided in the
|
|
/usr/local/etc/openldap/schema directory.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="config.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="globaldirect.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Configuring the LDAP Server</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="config.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Global Directives</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |