From 2f2e850e0297b640397c2e5ebf9af8d71f82bc70 Mon Sep 17 00:00:00 2001 From: Felix Bartels Date: Wed, 12 Dec 2018 12:14:36 +0100 Subject: [PATCH 1/3] add ldif for indices solves https://github.com/zokradonh/kopano-docker/issues/17 --- ldap-demo/bootstrap/ldif/optimize-index.ldif | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ldap-demo/bootstrap/ldif/optimize-index.ldif diff --git a/ldap-demo/bootstrap/ldif/optimize-index.ldif b/ldap-demo/bootstrap/ldif/optimize-index.ldif new file mode 100644 index 0000000..0cf466b --- /dev/null +++ b/ldap-demo/bootstrap/ldif/optimize-index.ldif @@ -0,0 +1,14 @@ +dn: olcDatabase={1}hdb,cn=config +changetype: modify +add: olcDbIndex +olcDbIndex: cn eq +olcDbIndex: gidNumber eq +olcDbIndex: mail eq +olcDbIndex: memberUid eq +olcDbIndex: ou eq +olcDbIndex: uid eq +olcDbIndex: uidNumber eq +olcDbIndex: uniqueMember eq +olcDbIndex: kopanoAccount eq +olcDbIndex: kopanoAliases eq +olcDbIndex: kopanoViewPrivilege eq From de5e17078f91ebf58387f6822831a31a8d053912 Mon Sep 17 00:00:00 2001 From: Felix Bartels Date: Wed, 12 Dec 2018 12:32:21 +0100 Subject: [PATCH 2/3] use correct database for index Signed-off-by: Felix Bartels --- ldap-demo/bootstrap/ldif/optimize-index.ldif | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap-demo/bootstrap/ldif/optimize-index.ldif b/ldap-demo/bootstrap/ldif/optimize-index.ldif index 0cf466b..1b96c73 100644 --- a/ldap-demo/bootstrap/ldif/optimize-index.ldif +++ b/ldap-demo/bootstrap/ldif/optimize-index.ldif @@ -1,4 +1,4 @@ -dn: olcDatabase={1}hdb,cn=config +dn: olcDatabase={1}mdb,cn=config changetype: modify add: olcDbIndex olcDbIndex: cn eq From 8bc2ae557b8eda4abb4a8954abc52d338e15c11a Mon Sep 17 00:00:00 2001 From: Felix Bartels Date: Wed, 12 Dec 2018 12:53:48 +0100 Subject: [PATCH 3/3] remove attributes already indexed from optimize-index.ldif add some more images to build-all make target let compose start in the background with make test Signed-off-by: Felix Bartels --- Makefile | 4 ++-- ldap-demo/bootstrap/ldif/optimize-index.ldif | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d18b6c2..3bf0665 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ export # convert lowercase componentname to uppercase COMPONENT = $(shell echo $(component) | tr a-z A-Z) -build-all: build-ssl build-base build-core build-webapp build-zpush +build-all: build-ssl build-base build-core build-webapp build-zpush build-kweb build-ldap-demo build: component ?= base build: @@ -116,4 +116,4 @@ test: docker-compose down -v || true make build-all docker-compose build - docker-compose up + docker-compose up -d diff --git a/ldap-demo/bootstrap/ldif/optimize-index.ldif b/ldap-demo/bootstrap/ldif/optimize-index.ldif index 1b96c73..135dc1b 100644 --- a/ldap-demo/bootstrap/ldif/optimize-index.ldif +++ b/ldap-demo/bootstrap/ldif/optimize-index.ldif @@ -3,10 +3,8 @@ changetype: modify add: olcDbIndex olcDbIndex: cn eq olcDbIndex: gidNumber eq -olcDbIndex: mail eq olcDbIndex: memberUid eq olcDbIndex: ou eq -olcDbIndex: uid eq olcDbIndex: uidNumber eq olcDbIndex: uniqueMember eq olcDbIndex: kopanoAccount eq