#5007 memberUid index is broken
Closed: Fixed None Opened 8 years ago by jcholast.

This is how the memberUid index is configured:

dn: cn=memberuid,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
nsIndexType: eq,pres

and this is how it should be configured to make indexing actually work:

dn: cn=memberuid,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
nsIndexType: eq
nsIndesType: pres

The problem is cause by this line in install/updates/20-indices.update:

default:nsIndexType: eq,pres

The "default" directive doesn't do CSV parsing, so the value is added to LDAP including the comma.


Proposed solution for upgrade, to fix index on already installed systems:

dn: cn=memberuid,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
remove:nsIndexType: eq,pres
add:nsIndexType: eq
add:nsIndesType: pres

Note: CSV is not supported in upgrade files anymore (patch ACKed)

master:

  • 57fba7a Server Upgrade: fix memberUid index

ipa-4-1:

  • cf2587c Fix indicies ntUserDomainId, ntUniqueId
  • f6901e5 Server Upgrade: fix memberUid index

Metadata Update from @jcholast:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.2

7 years ago

Login to comment on this ticket.

Metadata