X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2Fguide%2Fadmin%2Frunningslapd.sdf;h=9059cdd5cf470fd063a670ba37338b85e1b6eea1;hb=14745b74d29fe80f2988908b3f3fa3a4532937d9;hp=a1bbecbbdcda3a515985ddefbbd02625f2326bbf;hpb=9bf1190a20bae790de3ca9b8d43221b69e534d86;p=openldap diff --git a/doc/guide/admin/runningslapd.sdf b/doc/guide/admin/runningslapd.sdf index a1bbecbbdc..9059cdd5cf 100644 --- a/doc/guide/admin/runningslapd.sdf +++ b/doc/guide/admin/runningslapd.sdf @@ -1,122 +1,123 @@ # $OpenLDAP$ -# Copyright 1999-2000, The OpenLDAP Foundation, All Rights Reserved. +# Copyright 1999-2003, The OpenLDAP Foundation, All Rights Reserved. # COPYING RESTRICTIONS APPLY, see COPYRIGHT. H1: Running slapd -Slapd can be run in two different modes, stand-alone or from -inetd(8). Stand-alone operation is recommended, especially if you -are using the LDBM backend. This allows the backend to take -advantage of caching and avoids concurrency problems with the -LDBM index files. If you are running only a PASSWD or SHELL -backend, running from inetd is an option. How to do this is -described in the next section, after the command-line options and -stand-alone daemon operation are described. - +{{slapd}}(8) is designed to be run as a stand-alone server. This allows +the server to take advantage of caching, manage concurrency issues +with underlying databases, and conserve system resources. Running +from {{inetd}}(8) is {{NOT}} an option. H2: Command-Line Options -{{I:Slapd}} supports the following command-line options. - -E: -d | ? - -This option sets the slapd debug level to . When level is a -`?' character, the various debugging levels are printed and slapd -exits, regardless of any other options you give it. Current -debugging levels are - -E: 1 trace function calls -E: 2 debug packet handling -E: 4 heavy trace debugging -E: 8 connection management -E: 16 print out packets sent and received -E: 32 search filter processing -E: 64 configuration file processing -E: 128 access control list processing -E: 256 stats log connections/operations/results -E: 512 stats log entries sent -E: 1024 print communication with shell backends -E: 2048 print entry parsing debugging -E: 65535 enable all debugging - -Debugging levels are additive. That is, if you want to trace function -calls and watch the config file being processed, you would set -level to the sum of those two levels (in this case, 65). Consult -{{EX: }} for more details. - -Note: slapd must have been compiled with {{EX:-DLDAP_DEBUG}} -defined for any debugging information beyond the two stats levels -to be available. +{{slapd}}(8) supports a number of command-line options as detailed +in the manual page. This section details a few commonly used options. -E: -f +> -f This option specifies an alternate configuration file for slapd. +The default is normally {{F:/usr/local/etc/openldap/slapd.conf}}. -E: -i +> -h -This option tells slapd that it is running from inetd instead of as a -stand-alone server. See the next section on running slapd from -inetd for more details. +This option specifies alternative listener configurations. The +default is {{EX:ldap:///}} which implies LDAP over TCP on all +interfaces on the default LDAP port 389. You can specify +specific host-port pairs or other protocol schemes (such as +ldaps:// or ldapi://). For example, +{{EX:-h "ldaps:// ldap://127.0.0.1:666"}} will create +two listeners: one for LDAP over SSL on all interfaces on +the default LDAP/SSL port 636, and one for LDAP over TCP on +the {{EX:localhost}} ({{loopback}}) interface on port 666. +Hosts may be specified using IPv4 dotted-decimal form or +using host names. Port values must be numeric. -E: -p +> -n -This option specifies an alternate TCP port on which slapd should -listen for connections. The default port is 389. +This option specifies the service name used for logging and +other purposes. The default service name is {{EX:slapd}}. +> -l +This option specifies the local user for the {{syslog}}(8) +facility. Values can be {{EX:LOCAL0}}, {{EX:LOCAL1}}, {{EX:LOCAL2}}, ..., +and {{EX:LOCAL7}}. The default is {{EX:LOCAL4}}. This option +may not be supported on all systems. -H2: Running slapd as a Stand-Alone Daemon +> -u user -g group -In general, slapd is run like this: +These options specify the user and group, respectively, to run +as. {{EX:user}} can be either a user name or uid. {{EX:group}} +can be either a group name or gid. -E: $(ETCDIR)/slapd [