Mudanças entre as edições de "Openldap OldStyle"
De Slacam_Wiki
(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 ...') |
|||
Linha 1: | Linha 1: | ||
Basta realizar os seguintes procedimentos: | Basta realizar os seguintes procedimentos: | ||
− | service slapd stop # stop the service | + | service slapd stop # stop the service |
− | mv /etc/ldap/slapd.d /root # move the cn=config configuration | + | mv /etc/ldap/slapd.d /root # move the cn=config configuration |
− | cp /usr/share/slapd/slapd.conf /etc/ldap/ # get new sample config | + | cp /usr/share/slapd/slapd.conf /etc/ldap/ # get new sample config |
− | # make changes to sample config so that it can work | + | # make changes to sample config so that it can work |
− | sed -i "s/@BACKEND@/hdb/" /etc/ldap/slapd.conf | + | sed -i "s/@BACKEND@/hdb/" /etc/ldap/slapd.conf |
− | sed -i "s/@SUFFIX@/dc=acme,dc=org/" /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 | + | sed -i "s/# rootdn/rootdn/" /etc/ldap/slapd.conf |
− | # manually execute "slappasswd" on the command line to generate a root pw | + | # manually execute "slappasswd" on the command line to generate a root pw |
− | # then add the following line (without "#") after rootdn | + | # then add the following line (without "#") after rootdn |
− | # rootpw <crypted password> | + | # rootpw <crypted password> |
− | sed -i "s/@ADMIN@/cn=admin,dc=acme,dc=org/" /etc/ldap/slapd.conf | + | sed -i "s/@ADMIN@/cn=admin,dc=acme,dc=org/" /etc/ldap/slapd.conf |
− | mv /var/lib/ldap/* /root # remove old config database | + | mv /var/lib/ldap/* /root # remove old config database |
− | service slapd start # start service again | + | service slapd start # start service again |
Edição atual tal como às 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 # 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 # manually execute "slappasswd" on the command line to generate a root pw # then add the following line (without "#") after rootdn # 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