User Tools

Site Tools


vps_-_netbsd_with_ldap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
vps_-_netbsd_with_ldap [2021/04/02 09:56] hc9vps_-_netbsd_with_ldap [2021/04/02 10:03] – [Importing data] hc9
Line 100: Line 100:
   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 "-uand "-gflags are used to specify the user and group that "slapdshould be running as. The "-rflag tells slapd where to chroot, and the "-fflag 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/openldapin 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 "slapdin the "rc.conffile.+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.conforganized 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 =====
Line 236: Line 236:
 These three values will need to be changed. Hopefully you can also use common sense to identify names and contact information that will need to be changed. These three values will need to be changed. Hopefully you can also use common sense to identify names and contact information that will need to be changed.
  
-Assuming you have saved your LDIF file as "/tmp/ldif", run the following command to import it:+Assuming you have saved your LDIF file as ''/tmp/ldif'', run the following command to import it:
  
   ldapadd -D "cn=manager,dc=shiftout,dc=org" -Wx -f /tmp/ldif   ldapadd -D "cn=manager,dc=shiftout,dc=org" -Wx -f /tmp/ldif
vps_-_netbsd_with_ldap.txt · Last modified: 2021/04/02 19:27 by hc9