BACKUP LDAP

75 views
Skip to first unread message

John Smith

unread,
Jan 30, 2023, 7:50:01 AM1/30/23
to dcm4che
Hi.

I am trying to backup LDAP using the instructions given at:

I am trying to export LDAP from version 2.6.0 - 26.0.

I create my backup files using:

$ mkdir /tmp/backup $ docker run --name prev-ldap --rm -d \ 
 -e LDAP_ROOTPASS=secret \ 
 -e LDAP_CONFIGPASS=secret \ 
 -v /var/local/dcm4chee-arc/ldap:/var/lib/ldap \
 -v /var/local/dcm4chee-arc/slapd.d:/etc/ldap/slapd.d \ dcm4che/slapd-dcm4chee:2.6.3-29.1 
$ docker exec prev-ldap export-data > /tmp/backup/data.ldif 
$ docker exec prev-ldap export-users > /tmp/backup/users.ldif 
$ docker exec prev-ldap export-realm-management > /tmp/backup/realm-management.ldif
$ docker exec prev-ldap export-account > /tmp/backup/account.ldif 
$ docker stop prev-ldap

When i open the backup files to check what was backed up, i cannot find anywhere on the files my devices and the Unique AE Titles. Thus when i import the files, these are not imported back.

Do i need to back up anything else?

Thank you,

John Smith


Gunter Zeilinger

unread,
Jan 30, 2023, 8:18:37 AM1/30/23
to dcm4che
Not reproducible:


$ docker run --name prev-ldap --rm -d -e LDAP_ROOTPASS=secret -e LDAP_CONFIGPASS=secret -v /var/local/dcm4chee-arc/ldap:/var/lib/ldap -v /var/local/dcm4chee-arc/slapd.d:/etc/ldap/slapd.d dcm4che/slapd-dcm4chee:2.6.3-29.1

$ docker exec prev-ldap export-data | grep Unique | head
dn: cn=Unique AE Titles Registry,cn=DICOM Configuration,dc=dcm4che,dc=org
objectClass: dicomUniqueAETitlesRegistryRoot
cn: Unique AE Titles Registry
dn: cn=Unique HL7 Application Names Registry,cn=DICOM Configuration,dc=dcm4che,dc=org
objectClass: hl7UniqueApplicationNamesRegistryRoot
cn: Unique HL7 Application Names Registry
dn: cn=Unique Web Application Names Registry,cn=DICOM Configuration,dc=dcm4che,dc=org
objectClass: dcmUniqueWebAppNamesRegistryRoot
cn: Unique Web Application Names Registry
dn: dicomAETitle=DCM4CHEE,cn=Unique AE Titles Registry,cn=DICOM Configuration,dc=dcm4che,dc=org
Reply all
Reply to author
Forward
0 new messages