Ceci est une ancienne révision du document !


OpenLDAP

Coma de costuma, una gabia/jail es creada per aculhir lo daemon slapd.
Lo paquetatge openldap_server es installat per aquò.

#pkg install openldap-server
#sysrc slapd_enable="YES"

/usr/local/etc/openldap/slapd.conf

Los camins cap als esquemas son modificats, cada còp qu'es necessari un esquema deu èsser ajustat dins la tièra.
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/corba.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/java.schema
include         /usr/local/etc/openldap/schema/misc.schema
include         /usr/local/etc/openldap/schema/nis.schema
include         /usr/local/etc/openldap/schema/openldap.schema

...

pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args

# Load dynamic backend modules:
modulepath      /usr/local/libexec/openldap
moduleload      back_mdb
moduleload      back_ldap

...

#######################################################################
# MDB database definitions
#######################################################################
#
database        mdb
maxsize         1073741824
suffix          "dc=osca-oc,dc=org"
rootdn          "cn=Manager,dc=osca-oc,dc=org"
#
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
#
rootpw          secret
#
directory       /var/db/openldap-data
# Indices to maintain
index   objectClass     eq
user/domenge/openldap.1543395319.txt.gz · Dernière modification: 2018/11/28 08:55 par domenge
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0