From: Quanah Gibson-Mount Date: Wed, 18 Nov 2009 21:41:15 +0000 (+0000) Subject: ITS#6384 X-Git-Tag: OPENLDAP_REL_ENG_2_4_20~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=83d4c791e59790a6a698bc8679b2d3365eb3f622;p=openldap ITS#6384 --- diff --git a/CHANGES b/CHANGES index 4b3f57d966..b3d337be89 100644 --- a/CHANGES +++ b/CHANGES @@ -42,6 +42,7 @@ OpenLDAP 2.4.20 Engineering Fixed slapd test error ignoring (ITS#6345) Documentation ldap_get_dn(3) typos (ITS#5366) + ldap.conf(5) clarify comment usage (ITS#6384) slapd.conf(5) note hex server IDs (ITS#6297) slapd-config(5) note hex server IDs (ITS#6297) diff --git a/doc/man/man5/ldap.conf.5 b/doc/man/man5/ldap.conf.5 index cea93fab19..95eff9e1d4 100644 --- a/doc/man/man5/ldap.conf.5 +++ b/doc/man/man5/ldap.conf.5 @@ -53,15 +53,16 @@ Thus the following files and variables are read, in order: user files $HOME/ldaprc, $HOME/.ldaprc, ./ldaprc, system file $LDAPCONF, user files $HOME/$LDAPRC, $HOME/.$LDAPRC, ./$LDAPRC, - variables $LDAP. + variables $LDAP. .fi Settings late in the list override earlier ones. -.SH OPTIONS +.SH SYNTAX The configuration options are case-insensitive; their value, on a case by case basis, may be case-sensitive. .LP -Blank lines and lines beginning with a hash mark (`#') -are ignored up to their end. +Blank lines are ignored. +.br +Lines beginning with a hash mark (`#') are comments, and ignored. .LP Valid lines are made of an option's name (a sequence of non-blanks, conventionally written in uppercase, although not required), @@ -74,19 +75,27 @@ for that option, if any. Quoting values that contain blanks may be incorrect, as the quotes would become part of the value. For example, - URI "ldap:// ldaps://" +.nf + # Wrong - erroneous quotes: + URI "ldap:// ldaps://" -is incorrect, while + # Right - space-separated list of URIs, without quotes: + URI ldap:// ldaps:// - URI ldap:// ldaps:// + # Right - DN syntax needs quoting for Example, Inc: + BASE ou=IT staff,o="Example, Inc",c=US + # or: + BASE ou=IT staff,o=Example2C Inc,c=US -is correct (note the absence of the double quotes). + # Wrong - comment on same line as option: + DEREF never # Never follow aliases +.fi .LP A line cannot be longer than LINE_MAX, which should be more than 2000 bytes on all platforms. There is no mechanism to split a long line on multiple lines, either for beautification or to overcome the above limit. -.LP +.SH OPTIONS The different configuration options are: .TP .B URI