Ldap conf

Aus Linupedia.org
Wechseln zu: Navigation, Suche

Autor: ThomasF
Die ldap.conf ist die Steuerdatei für den Client. In dieser Datei findet der Client alle Infos die er für die Verbindung mit dem Server benötigt, auch ldapadd und ldapsearch zum Beispiel schauen dort nach.

Die ldap.conf liegt unter /etc und unter /etc/openldap. Ich empfehle ganz zu Anfang eine der beiden zu löschen und einen Link auf die noch vorhandene zu erstellen.

rm /etc/openldap/ldap.conf
ln -s /etc/ldap.conf /etc/openldap


ldap.conf

# This is the configuration file for the LDAP nameservice
# switch library, the LDAP PAM module and the shadow package.
#

# Your LDAP server. Must be resolvable without using LDAP.
host    127.0.0.1

# The distinguished name of the search base.
base    o=meine-firma,c=de

# The LDAP version to use (defaults to 3
# if supported by client library)
ldap_version    3

# Optional: default is 389.
port    389


Diese Infos reichen in der Regel aus um eine Verbindung mit dem Server herzustellen, in diesem Fall liegt diese ldap.conf auf dem Rechner auf dem auch der Server läuft (127.0.0.1) also localhost.


zurück zu LDAP