Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
vps_-_netbsd_with_ldap [2021/04/02 09:56] – hc9 | vps_-_netbsd_with_ldap [2021/04/02 10:00] – [Initial Configuration] hc9 |
---|
command_args="-u slapd -g slapd -r /var/chroot/openldap/ -f /etc/openldap/slapd.conf" | command_args="-u slapd -g slapd -r /var/chroot/openldap/ -f /etc/openldap/slapd.conf" |
| |
The "-u" and "-g" flags are used to specify the user and group that "slapd" should be running as. The "-r" flag tells slapd where to chroot, and the "-f" flag tells slapd where to find the configuration file. All configuration files are read after the chroot has happened, which is why the path does not include "/var/chroot/openldap" in it. | The ''-u'' and ''-g'' flags are used to specify the user and group that ''slapd'' should be running as. The ''-r'' flag tells slapd where to chroot, and the ''-f'' flag tells slapd where to find the configuration file. All configuration files are read after the chroot has happened, which is why the path does not include ''/var/chroot/openldap'' in it. |
| |
Finally, it is necessary to enable "slapd" in the "rc.conf" file. | Finally, it is necessary to enable ''slapd'' in the ''rc.conf'' file. |
| |
# echo "slapd=YES" >> /etc/rc.conf | # echo "slapd=YES" >> /etc/rc.conf |
| |
You can edit the file manually and add this line if you would like to keep your "rc.conf" organized in some way. | You can edit the file manually and add this line if you would like to keep your ''rc.conf'' organized in some way. |
| |
===== Testing ===== | ===== Testing ===== |