On Thu, Sep 15, 2016 at 01:07:05PM +0000, c.monty@web.de wrote:
I have installed OpenLdap server.
However, starting slapd fails with this error message: Sep 11 11:00:38 vm108-ldap slapd[13641]: UNKNOWN attributeDescription "CHANGETYPE" inserted. Sep 11 11:00:38 vm108-ldap slapd[13641]: UNKNOWN attributeDescription "ADD" inserted. Sep 11 11:00:38 vm108-ldap slapd[13641]: <= str2entry: slap_str2undef_ad(-): empty AttributeDescription Sep 11 11:00:38 vm108-ldap slapd[13641]: slapd stopped. Sep 11 11:00:38 vm108-ldap slapd[13641]: connections_destroy: nothing to destroy.
I have started slapd creating a debug file with following command: slapd -d -1 1>/tmp/slapd-debug.log 2>&1
The debug file is attached to this email.
How can I fix this issue?
You have a file in /etc/ldap/slapd.d that doesn't belong there.
57d54094 ldif_read_file: read entry file without checksum: "/etc/ldap/slapd.d/cn=config/olcDbIndex.ldif" 57d54094 => str2entry: "dn: olcDatabase={1}hdb,cn=config changetype: modify add: olcDbIndex olcDbIndex: entryUUID eq
add: olcDbIndex olcDbIndex: entryCSN eq
add: olcDbIndex olcDbIndex: cn pres,eq,sub
add: olcDbIndex olcDbIndex: objectClass pres,eq,sub
add: olcDbIndex olcDbIndex: loginShell pres,eq,sub
add: olcDbIndex olcDbIndex: uidNumber pres,eq
add: olcDbIndex olcDbIndex: gidNumber pres,eq
add: olcDbIndex olcDbIndex: ou pres,eq,sub
add: olcDbIndex olcDbIndex: givenName pres,eq,sub
add: olcDbIndex olcDbIndex: memberUid pres,eq,sub
add: olcDbIndex olcDbIndex: uid pres,eq,sub
add: olcDbIndex olcDbIndex: sn pres,eq,sub
add: olcDbIndex olcDbIndex: mail pres,eq,sub
add: olcDbIndex olcDbIndex: uniqueMember pres,eq
add: olcDbCacheSize olcDbCacheSize: 1000
add: olcDbIDLCacheSize olcDbIDLCacheSize: 3000 "
The contents of /etc/ldap/slapd.d are slapd's private internal data. You should not touch them, nor store your own things there.
Removing /etc/ldap/slapd.d/cn=config/olcDbIndex.ldif should fix your problem.