MirrorNest
← Все руководства

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.

Это руководство составлено на основе официальной документации OpenLDAP, ссылка на которую есть выше — всегда сверяйте точные названия пакетов/версий там перед запуском этих команд на рабочем сервере, так как версии дистрибутива и проекта со временем меняются.
  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