MirrorNest
← Tüm kılavuzlar

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.

Hedef: Linux (source build)Identity ManagementResmi ana sayfa ↗Resmi belgeler ↗
Bu kılavuz, yukarıda bağlantısı verilen OpenLDAP kendi resmi belgelerinden derlenmiştir — dağıtım ve proje sürümleri zamanla değiştiğinden, bu komutları bir üretim sunucusunda çalıştırmadan önce tam paket/sürüm adlarını her zaman orada kontrol edin.
  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