MirrorNest
← Todos os guias

OpenLDAP

OpenLDAP is the reference open-source LDAP directory server; the project's own admin guide documents installing it by compiling slapd from source rather than via a packaged installer.

Destino: Linux (source build)Identity ManagementSite oficial ↗Documentação oficial ↗
Este guia foi elaborado a partir da documentação oficial do OpenLDAP, ligada acima — verifique sempre lá os nomes exatos dos pacotes/versões antes de executar estes comandos num servidor de produção, uma vez que as versões da distribuição e do projeto mudam com o tempo.
  1. 1Download and extract the source

    gunzip -c openldap-VERSION.tgz | tar xvfB -
    cd openldap-VERSION
  2. 2Configure, build, and test

    ./configure
    make depend
    make
    make test
  3. 3Install

    su root -c 'make install'

    Installs under /usr/local by default.

  4. 4Load the default configuration and start slapd

    su root -c /usr/local/sbin/slapadd -n 0 -F /usr/local/etc/slapd.d -l /usr/local/etc/openldap/slapd.ldif
    su root -c /usr/local/libexec/slapd -F /usr/local/etc/slapd.d

    Edit slapd.ldif with your own domain/database settings before loading it.

  5. 5Verify the server responds

    ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts