wrong ldif file for altering indexes

Bug #1603540 reported by Hélder Silva
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu Server Guide
Fix Released
Andreas Hasenack

Bug Description

In the Samba LDAP guide (https://help.ubuntu.com/lts/serverguide/samba-ldap.html) there is a wrong line on the indexes configuration file.

dn: olcDatabase={1}hdb,cn=config
changetype: modify
add: olcDbIndex
olcDbIndex: uidNumber eq
olcDbIndex: gidNumber eq
olcDbIndex: loginShell eq
olcDbIndex: uid eq,pres,sub
olcDbIndex: memberUid eq,pres,sub
olcDbIndex: uniqueMember eq,pres
olcDbIndex: sambaSID eq
olcDbIndex: sambaPrimaryGroupSID eq
olcDbIndex: sambaGroupType eq
olcDbIndex: sambaSIDList eq
olcDbIndex: sambaDomainName eq
olcDbIndex: default sub

On the third line, instead of "add: olcDbIndex" it should be "replace: olcDbIndex"

Another small improvement that can be done is stating that the first line refers to systems using the hdb database. I was using the mdb, and had to change it.

Tags: guide ldap samba

Related branches

Revision history for this message
Chris Stevens (chrisas) wrote :

VERSION="16.04.1 LTS (Xenial Xerus)"

mdb is used "out of the box".

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Using "replace" instead of "add" is not entirely correct, as that will replace all existing indexes with the new ones. You will lose one of the most important indexes if you do that: "objectClass eq" :)

Out of the box, just after installing the slapd package, we get these:
olcDbIndex: objectClass eq
olcDbIndex: cn,uid eq
olcDbIndex: uidNumber,gidNumber eq
olcDbIndex: member,memberUid eq

We just need to add the missing ones.

Changed in serverguide:
assignee: nobody → Andreas Hasenack (ahasenack)
status: New → Confirmed
status: Confirmed → In Progress
Changed in serverguide:
status: In Progress → Fix Committed
Changed in serverguide:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.