Keycloak OR/AND LDAP don't store user after docker service restart

41 views
Skip to first unread message

Pela Silveira

unread,
May 9, 2018, 5:00:11 PM5/9/18
to dcm4che
HELLO /HOLA,

I have deployed Distribute archive services with secured UI and Elastic Stack over several hosts using Docker Swarm
He desplegado Distribute archive services with secured UI and Elastic Stack over several hosts using Docker Swarm

As it is explained on github wiki - como se explica en la wiki de github

Now all services are running- Todos los servicios están corriendo

psilveira@arc-node:/var/local/dcm4chee-arc$ docker service ls
ID                  NAME                MODE                REPLICAS            IMAGE                                                     PORTS
7y2tdikxey7q        arc                 replicated          1/1                 dcm4che/dcm4chee-arc-psql:5.13.0-logstash-secure-ui       *:2575->2575/tcp, *:8080->8080/tcp, *:8443->8443/tcp, *:9990->9990/tcp, *:11112->11112/tcp
nxyxb4lvzmtb        db                  replicated          1/1                 dcm4che/postgres-dcm4chee:10.0-13                         *:5432->5432/tcp
v3k3xd4iuzr8        elasticsearch       replicated          1/1                 docker.elastic.co/elasticsearch/elasticsearch-oss:6.0.0   *:9200->9200/tcp, *:9300->9300/tcp
en5gu2s2adht        keycloak            replicated          1/1                 dcm4che/keycloak:3.4.3-12.0-logstash                      *:8843->8843/tcp, *:8880->8880/tcp, *:8990->8990/tcp
wzeunord143n        keycloak-proxy      replicated          1/1                 dcm4che/keycloak-proxy:3.4.3-1                            *:8601->8601/tcp, *:8643->8643/tcp
l4ba48zhs5ll        kibana              replicated          1/1                 docker.elastic.co/kibana/kibana-oss:6.0.0
i3z8b8whutqm        ldap                replicated          1/1                 dcm4che/slapd-dcm4chee:2.4.44-13.0                        *:389->389/tcp
chmk6s10npo2        logstash            replicated          1/1                 dcm4che/logstash-dcm4chee:6.0.0-4                         *:8514->8514/tcp, *:8514->8514/udp, *:12201->12201/udp


Desde la administracion de Keycloak creo un usuario, pero al reiniciar ldap, éste desaparece.

From Keycloak administration I create an user, but after ldap restart it disappear.


I think bindings are OK. In ldap folder there are many files, but in slapd.d there is nothing, but docker service create command do not fail.

Pienso que los bindings estan bien. En la carpeta ldap se crean muchos archivos,pero en la carpeta sldap.d no hay nada. De todas formas el comando docker service create no falla.

psilveira@db-node:/var/local/dcm4chee-arc/ldap$ ls -la
total 5564
drwxr-sr-x 2 slapd-dcm4chee slapd-dcm4chee     4096 may  9 17:43 .
drwxr-sr-x 5 root           root               4096 may  8 20:02 ..
-rw-r--r-- 1 slapd-dcm4chee slapd-dcm4chee     2048 may  9 17:43 alock
-rw------- 1 slapd-dcm4chee slapd-dcm4chee    24576 may  9 17:43 cn.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   532479 may  9 17:45 __db.001
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   139263 may  9 17:45 __db.002
-rw------- 1 slapd-dcm4chee slapd-dcm4chee  1789951 may  9 17:45 __db.003
-rw-r--r-- 1 slapd-dcm4chee slapd-dcm4chee       96 may  9 17:43 DB_CONFIG
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   229376 may  9 17:43 dn2id.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   851968 may  9 17:43 id2entry.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee 10485759 may  9 17:43 log.0000000001
-rw------- 1 slapd-dcm4chee slapd-dcm4chee     8192 may  9 17:43 member.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee    57344 may  9 17:43 objectClass.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee     8192 may  9 17:43 uid.bdb


psilveira@db-node:/var/local/dcm4chee-arc/slapd.d$ ls -la
total 8
drwxr-sr-x 2 root root 4096 may  8 20:02 .
drwxr-sr-x 5 root root 4096 may  8 20:02 ..


Any idea of what is happening?

Alguna idea de qué esta pasando?

Thanks in advance

Muchas gracias!

Pablo


Pela Silveira

unread,
May 9, 2018, 5:09:02 PM5/9/18
to dcm4che
UPDATE
I list files from ldap before and after user creations and I see changes in __db.001/002/003 and in log.0000000001




psilveira@db-node:/var/local/dcm4chee-arc/ldap$ ls -la
total 5564
drwxr-sr-x 2 slapd-dcm4chee slapd-dcm4chee     4096 may  9 17:43 .
drwxr-sr-x 5 root           root               4096 may  8 20:02 ..
-rw-r--r-- 1 slapd-dcm4chee slapd-dcm4chee     2048 may  9 17:43 alock
-rw------- 1 slapd-dcm4chee slapd-dcm4chee    24576 may  9 17:43 cn.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   532479 may  9 17:45 __db.001
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   139263 may  9 17:45 __db.002
-rw------- 1 slapd-dcm4chee slapd-dcm4chee  1789951 may  9 17:45 __db.003
-rw-r--r-- 1 slapd-dcm4chee slapd-dcm4chee       96 may  9 17:43 DB_CONFIG
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   229376 may  9 17:43 dn2id.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   851968 may  9 17:43 id2entry.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee 10485759 may  9 17:43 log.0000000001
-rw------- 1 slapd-dcm4chee slapd-dcm4chee     8192 may  9 17:43 member.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee    57344 may  9 17:43 objectClass.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee     8192 may  9 17:43 uid.bdb
psilveira@db-node:/var/local/dcm4chee-arc/ldap$
psilveira@db-node:/var/local/dcm4chee-arc/ldap$ ls -la
total 5584
drwxr-sr-x 2 slapd-dcm4chee slapd-dcm4chee     4096 may  9 17:43 .
drwxr-sr-x 5 root           root               4096 may  8 20:02 ..
-rw-r--r-- 1 slapd-dcm4chee slapd-dcm4chee     2048 may  9 17:43 alock
-rw------- 1 slapd-dcm4chee slapd-dcm4chee    24576 may  9 17:43 cn.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   532479 may  9 18:06 __db.001
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   139263 may  9 18:06 __db.002
-rw------- 1 slapd-dcm4chee slapd-dcm4chee  1789951 may  9 18:06 __db.003
-rw-r--r-- 1 slapd-dcm4chee slapd-dcm4chee       96 may  9 17:43 DB_CONFIG
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   229376 may  9 17:43 dn2id.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee   851968 may  9 17:43 id2entry.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee 10485759 may  9 18:06 log.0000000001
-rw------- 1 slapd-dcm4chee slapd-dcm4chee     8192 may  9 17:43 member.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee    57344 may  9 17:43 objectClass.bdb
-rw------- 1 slapd-dcm4chee slapd-dcm4chee     8192 may  9 17:43 uid.bdb

Reply all
Reply to author
Forward
0 new messages