SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


Sidebar

Recently Changed Pages:

View All Pages


View All Tags


LinkedIn




WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.


Pages with comments

View All Comments

opendsindexes

OpenDS LDAP Indexes

Preparation

To be able to create indexes on openDS LDAP you need X11 access to the application. To check how to set this up check CygWin - X op Windows and ssh_x11_forwarding_and_su.

Create Indexes

Indexes are created using the control-panel which is part of the installation.

Start the control-panel like this:

./opt/OpenDS-2.2.0/bin/control-panel

Go to “INDEXES” → “New Index”

Create these indexes:

  • Create an index on “AccountID” as index type “Equality” and “Presence”
  • Create an index on “uid” with as index type “Equality” and “Presence”
  • Create an index on attribute “objectClass” as index type “Equality”
  • Create an index on attribute “aci” as index type “Presence”
  • Create a VLV index on whole subtree with filter:
    • (&(|(objectClass=groupOfNames)(objectClass=groupOfUniqueNames)(objectClass=groupOfEntries))(!(objectClass=ds-virtual-static-group)))
    • Sort order: uid (ascending) and AccountID (ascending)
Note: whenever you save an index you'll get a message stating that you should rebuild the index. This will take the backend offline, so click No. We'll rebuild the index in the next step.

When done, exit the control-panel.

Rebuild Index

To rebuild the index on the command line issue these commands:

./stop-ds
./rebuild-index -b o=company.local -rebuildAll
./start-ds

Check Index

When the indexes have been rebuild results should show up within 1 second:

root@ldapbox:/opt/OpenDS-2.2.0/bin>/opt/IBM/ldap/V6.2/bin/ldapsearch -h localhost -p 389 -b o=company.local -D cn=manager -w xxxxxxxx uid=000018615777
uid=000018615777,ou=customers,o=company.local
userClass=100
LastLogin=1298231054722
mail=sjoerd_warmetal.nl
sn=Hooft
cn=S.S.
uid=000018615777
objectClass=top
objectClass=Customer
objectClass=organizationalPerson
objectClass=inetOrgPerson
objectClass=person
You could leave a comment if you were logged in.
opendsindexes.txt · Last modified: 2021/09/24 00:25 (external edit)