X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2Fguide%2Fadmin%2Frunningslapd.sdf;h=a6155f86e9eed363f378f347c37c7ba7d659dd67;hb=50277c6abea63db90cf374b538215b4a63ae549e;hp=8bd442add0048ef758d557d62a9f48cd6bc63873;hpb=ea9c22efd7a25b531ba6f4723b87e64d1ac664e6;p=openldap diff --git a/doc/guide/admin/runningslapd.sdf b/doc/guide/admin/runningslapd.sdf index 8bd442add0..a6155f86e9 100644 --- a/doc/guide/admin/runningslapd.sdf +++ b/doc/guide/admin/runningslapd.sdf @@ -12,22 +12,62 @@ from {{inetd}}(8) is {{NOT}} an option. H2: Command-Line Options {{slapd}}(8) supports a number of command-line options as detailed -in manual page. This section details a few commonly used options. +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}}. +> -h -E: -d | ? +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. + +> -n + +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. + +> -u user -g group + +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. + +> -r directory + +This option specifies a run-time directory. slapd will +{{chroot}}(2) to this directory after opening listeners but +before reading any configuration files or initializing +any backends. +. + +> -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 -!block table; colaligns="RL"; align=Center; title="Table 6.1: Debugging Levels" +!block table; colaligns="RL"; align=Center; \ + title="Table 6.1: Debugging Levels" Level Description -1 enable all debugging 0 no debugging @@ -63,9 +103,9 @@ H2: Starting slapd In general, slapd is run like this: -E: /usr/local/etc/libexec/slapd [