Dies ist eine alte Version des Dokuments!
~/.ldaprc für root:
URI ldapi:// BASE cn=config SASL_MECH EXTERNAL
Schema auslesen:
ldapsearch -b cn=schema,cn=config -LLL dn
Übersicht Server Konfiguration:
ldapsearch -LLL dn
Übersicht Konfiguration des ersten Baums:
ldapsearch -b 'olcDatabase={1}hdb,cn=config' -LLL
Konfiguration bearbeiten:
ldapvi -Y EXTERNAL -b 'olcDatabase={1}hdb,cn=config'
Welche Verzeichnisse/Bäume sind enthalten:
ldapsearch -LLL '(olcSuffix=*)' olcSuffix
Default bei Debian:
0 olcDatabase={1}hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=dom11,dc=example,dc=com
olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by anonymous auth by dn="cn=admin,dc=dom11,dc=example,dc=com" write by * none
olcAccess: {1}to dn.base="" by * read
olcAccess: {2}to * by self write by dn="cn=admin,dc=dom11,dc=example,dc=com" write by * read
olcLastMod: TRUE
olcRootDN: cn=admin,dc=dom11,dc=example,dc=com
olcRootPW: {SSHA}Jmxfia13Hrp8rD/fsr+q3hkNHUQvEa+n
olcDbCheckpoint: 512 30
olcDbConfig: {0}set_cachesize 0 2097152 0
olcDbConfig: {1}set_lk_max_objects 1500
olcDbConfig: {2}set_lk_max_locks 1500
olcDbConfig: {3}set_lk_max_lockers 1500
olcDbIndex: objectClass eq
Schemata hinzufügen (CentOS 7):
ldapadd -f /etc/openldap/schema/core.ldif ldapadd -f /etc/openldap/schema/cosine.ldif ldapadd -f /etc/openldap/schema/inetorgperson.ldif ldapadd -f /etc/openldap/schema/nis.ldif