Mudanças entre as edições de "Openldap OldStyle"

De Slacam_Wiki
Ir para: navegação, pesquisa
(Criou página com 'Basta realizar os seguintes procedimentos: service slapd stop # stop the service mv /etc/ldap/slapd.d /root # move the cn=config configuration cp /usr/share/slapd/slapd.conf ...')
(Sem diferença)

Edição das 00h10min de 27 de agosto de 2014

Basta realizar os seguintes procedimentos:

service slapd stop # stop the service mv /etc/ldap/slapd.d /root # move the cn=config configuration cp /usr/share/slapd/slapd.conf /etc/ldap/ # get new sample config

  1. make changes to sample config so that it can work

sed -i "s/@BACKEND@/hdb/" /etc/ldap/slapd.conf sed -i "s/@SUFFIX@/dc=acme,dc=org/" /etc/ldap/slapd.conf sed -i "s/# rootdn/rootdn/" /etc/ldap/slapd.conf

  1. manually execute "slappasswd" on the command line to generate a root pw
  2. then add the following line (without "#") after rootdn
  3. rootpw <crypted password>

sed -i "s/@ADMIN@/cn=admin,dc=acme,dc=org/" /etc/ldap/slapd.conf mv /var/lib/ldap/* /root # remove old config database service slapd start # start service again