8.4.2. Converting slapd configuration


This example assumes that the file to convert from the old slapd configuration is located at /etc/openldap/slapd.conf and the new directory for OpenLDAP configuration is located at /etc/openldap/slapd.d/.
  • Remove the contents of the new /etc/openldap/slapd.d/ directory:
    # rm -rf /etc/openldap/slapd.d/*
    Copy to Clipboard Toggle word wrap
  • Run slaptest to check the validity of the configuration file and specify the new configuration directory:
    slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
    Copy to Clipboard Toggle word wrap
  • Configure permissions on the new directory:
    chown -R ldap:ldap /etc/openldap/slapd.d
    Copy to Clipboard Toggle word wrap
    chmod -R 000 /etc/openldap/slapd.d
    Copy to Clipboard Toggle word wrap
    chmod -R u+rwX /etc/openldap/slapd.d
    Copy to Clipboard Toggle word wrap
  • Once the service is confirmed to be working in the new configuration directory, remove the old configuration file:
    rm -rf /etc/openldap/slapd.conf
    Copy to Clipboard Toggle word wrap
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat