ubuntuusers.de

LDAP Index neu anlegen

Status: Ungelöst | Ubuntu-Version: Server 12.04 (Precise Pangolin)
Antworten |

twisters77

Anmeldungsdatum:
25. Mai 2012

Beiträge: 20

Hallo zusammen

ich habe ein Problem mit meiner OpenLDAP umgebung. Im Prinzip läuft alles. Ich habe nur folgende Meldungen im syslog

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Dec 17 09:56:37 ldap slapd[952]: <= bdb_equality_candidates: (uidNumber) not indexed
Dec 17 09:56:37 ldap slapd[952]: <= bdb_equality_candidates: (uidNumber) not indexed
Dec 17 09:56:37 ldap slapd[952]: <= bdb_equality_candidates: (uid) not indexed
Dec 17 09:56:37 ldap slapd[952]: <= bdb_equality_candidates: (memberUid) not indexed
Dec 17 09:56:37 ldap slapd[952]: <= bdb_equality_candidates: (uniqueMember) not indexed
Dec 17 09:56:41 ldap slapd[952]: <= bdb_equality_candidates: (uid) not indexed
Dec 17 09:57:21 ldap slapd[952]: <= bdb_equality_candidates: (uid) not indexed
Dec 17 09:57:22 ldap slapd[952]: <= bdb_equality_candidates: (uid) not indexed
Dec 17 09:57:22 ldap slapd[952]: <= bdb_equality_candidates: (cn) not indexed
Dec 17 09:57:24 ldap slapd[952]: <= bdb_equality_candidates: (cn) not indexed
Dec 17 09:58:23 ldap slapd[952]: <= bdb_equality_candidates: (uid) not indexed

Wenn ich den Index mit slapindex neu anlegen will, erscheint folgende Meldung

1
2
3
4
5
6
7
root@ldap:~# /etc/init.d/slapd stop
 * Stopping OpenLDAP slapd                                                                                 [ OK ]
root@ldap:~# slapindex
WARNING!
Runnig as root!
There's a fair chance slapd will fail to start.
Check file permissions!

dann habe ich die Permissions mit: chown openldap:openldap /var/lib/ldap/*.bdb angepasst.

Aber die Meldungen erscheinen immer noch.

Hat jemand eine Idee?

Gruss twisters

fauxxami

Anmeldungsdatum:
7. Januar 2012

Beiträge: 493

Ich würde slapindex entweder als Benutzer openldap ausführen, oder sonst eben als root und vor dem Neustart von slapd die Dateien in /var/lib/ldap wieder an openldap.openldap verschenken.

twisters77

(Themenstarter)

Anmeldungsdatum:
25. Mai 2012

Beiträge: 20

Ich habe den INdex als Root ausgeführt.

Habe noch etwas gefunden. Habe im File /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif noch folgende Zeilen hinzugefügt:

1
2
3
4
5
6
olcDbIndex: cn eq
olcDbIndex: gidNumber eq
olcDbIndex: memberUid eq
olcDbIndex: uid eq
olcDbIndex: uidNumber eq
olcDbIndex: uniqueMember eq

Nun erscheinen die Meldungen nicht mehr. Aber dafür andere beim User login

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
Dec 17 12:05:08 ldap slapd[937]: connection_read(27): no connection!
Dec 17 12:05:08 ldap slapd[937]: connection_read(27): no connection!
Dec 17 12:05:08 ldap slapd[937]: connection_read(30): no connection!
Dec 17 12:05:09 ldap slapd[937]: connection_read(31): no connection!
Dec 17 12:06:00 ldap slapd[937]: connection_read(75): no connection!
Dec 17 12:06:01 ldap slapd[937]: connection_read(80): no connection!
Dec 17 12:06:01 ldap slapd[937]: connection_read(80): no connection!
Dec 17 12:06:38 ldap slapd[937]: connection_read(82): no connection!
Dec 17 12:06:38 ldap slapd[937]: connection_read(93): no connection!
Dec 17 12:06:48 ldap slapd[937]: connection_read(26): no connection!
Dec 17 12:06:48 ldap slapd[937]: connection_read(48): no connection!
Dec 17 12:06:48 ldap slapd[937]: connection_read(60): no connection!

Der Benutzer kann sich aber Prblemlos einloggen und auch autofs funktioniert. Ich habe leider keine Liste gefunden, in der die Fehlercode beschreiben werden. kennt jemand die Meldungen?

Gruss

Antworten |