Update from 5.22.1 to 5.22.2 Invalid DN syntax

154 views
Skip to first unread message

art_data

unread,
Jun 24, 2020, 1:24:17 AM6/24/20
to dcm4che
Hi, when i trying to update my 5.22.1 version, I get error on this step:

ldapmodify -xW -Dcn=admin,dc=dcm4che,dc=org -f update-config-5.22.2.ldif

modifying entry "dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org"

adding new entry "dcmUPSProcessingRuleID=DICOM_EXPORT,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org"
ldap_add: Invalid DN syntax (34)
additional info: invalid DN


Gunter Zeilinger

unread,
Jun 24, 2020, 6:02:41 AM6/24/20
to dcm...@googlegroups.com
Did you update the schema before trying to update the ldap data?


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

art_data

unread,
Jun 25, 2020, 1:45:50 PM6/25/20
to dcm4che
I cant update ldap schema.

ldapmodify -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dcm4che-modify.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "cn={6}dcm4chee-archive,cn=schema,cn=config"
ldap_modify: No such object (32)
        matched DN: cn=schema,cn=config


среда, 24 июня 2020 г. в 20:02:41 UTC+10, gunterze:

Gunter Zeilinger

unread,
Jun 26, 2020, 2:40:29 AM6/26/20
to dcm...@googlegroups.com
Did you really have configured your slapd with  dynamic runtime configuration as described in the Wiki?


You may verify by

ldapsearch -Y EXTERNAL -H ldapi:/// -b "cn=schema,cn=config" dn
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
# extended LDIF
#
# LDAPv3
# base <cn=schema,cn=config> with scope subtree
# filter: (objectclass=*)
# requesting: dn
#

# schema, config
dn: cn=schema,cn=config

# {0}core, schema, config
dn: cn={0}core,cn=schema,cn=config

# {1}cosine, schema, config
dn: cn={1}cosine,cn=schema,cn=config

# {2}nis, schema, config
dn: cn={2}nis,cn=schema,cn=config

# {3}inetorgperson, schema, config
dn: cn={3}inetorgperson,cn=schema,cn=config

# {4}dicom, schema, config
dn: cn={4}dicom,cn=schema,cn=config

# {5}dcm4che, schema, config
dn: cn={5}dcm4che,cn=schema,cn=config

# {6}dcm4chee-archive, schema, config
dn: cn={6}dcm4chee-archive,cn=schema,cn=config

# {7}dcm4chee-archive-ui, schema, config
dn: cn={7}dcm4chee-archive-ui,cn=schema,cn=config

# search result
search: 2
result: 0 Success

# numResponses: 10
# numEntries: 9

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

art_data

unread,
Jun 26, 2020, 2:58:58 AM6/26/20
to dcm4che
i installed clean 5.22.1-mysql, now I'm trying to update it.

This is my ldapsearch return

ldapsearch -Y EXTERNAL -H ldapi:/// -b "cn=schema,cn=config" dn
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
# extended LDIF
#
# LDAPv3
# base <cn=schema,cn=config> with scope subtree
# filter: (objectclass=*)
# requesting: dn
#

# schema, config
dn: cn=schema,cn=config

# {0}core, schema, config
dn: cn={0}core,cn=schema,cn=config

# {1}dicom, schema, config
dn: cn={1}dicom,cn=schema,cn=config

# {2}dcm4che, schema, config
dn: cn={2}dcm4che,cn=schema,cn=config

# {3}dcm4chee-archive, schema, config
dn: cn={3}dcm4chee-archive,cn=schema,cn=config

# {4}dcm4chee-archive-ui, schema, config
dn: cn={4}dcm4chee-archive-ui,cn=schema,cn=config


# search result
search: 2
result: 0 Success

# numResponses: 7
# numEntries: 6


пятница, 26 июня 2020 г. в 16:40:29 UTC+10, gunterze:

Gunter Zeilinger

unread,
Jun 26, 2020, 4:27:03 AM6/26/20
to dcm...@googlegroups.com
xxx-modify.ldif scripts relies on matching order number of the schemas. Also dcm4chee-arc schemas relies on attribute definitions in OpenLDAP schemas
# {1}cosine, schema, config
dn: cn={1}cosine,cn=schema,cn=config

# {2}nis, schema, config
dn: cn={2}nis,cn=schema,cn=config

# {3}inetorgperson, schema, config
dn: cn={3}inetorgperson,cn=schema,cn=config

Backup the current LDAP data by
ldapsearch -xW -Dcn=admin,dc=dcm4che,dc=org -b dc=dcm4che,dc=org > backup.ldif

Stop slapd:
systemctl stop slapd

Delete dcm4chee-arc schema files manually:
rm '/etc/ldap/slapd.d/cn=config/cn=schema/cn={4}dcm4chee-archive-ui.ldif'
rm '/etc/ldap/slapd.d/cn=config/cn=schema/cn={3}dcm4chee-archive.ldif'
rm '/etc/ldap/slapd.d/cn=config/cn=schema/cn={2}dcm4che.ldif'
rm '/etc/ldap/slapd.d/cn=config/cn=schema/cn={1}dicom.ldif'

Start slapd:
systemctl start slapd

Add missing OpenLDAP schemas:
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/cosine.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/nis.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/inetorgperson.ldif

Add dcm4chee-arc schemas again:
ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dicom.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dcm4che.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dcm4chee-arc.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dcm4chee-arc-ui.ldif


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

Message has been deleted

art_data

unread,
Jun 27, 2020, 10:36:10 AM6/27/20
to dcm4che
Okey, solved. Thanks a lot.

CentOS 8.1 and openldap-2.4.46-11 steps:

Stop wildfly:
systemctl stop wildfly

Backup the current LDAP data:
ldapsearch -xW -Dcn=admin,dc=dcm4che,dc=org -b dc=dcm4che,dc=org > backup.ldif

Stop slapd:
systemctl stop slapd

Delete dcm4chee-arc schema file:
rm '/etc/openldap/slapd.d/cn=config/cn=schema/cn={4}dcm4chee-archive-ui.ldif'
rm '/etc/openldap/slapd.d/cn=config/cn=schema/cn={3}dcm4chee-archive.ldif'
rm '/etc/openldap/slapd.d/cn=config/cn=schema/cn={2}dcm4che.ldif'
rm '/etc/openldap/slapd.d/cn=config/cn=schema/cn={1}dicom.ldif'

Start slapd:
systemctl start slapd

Add missing OpenLDAP schemas:
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/nis.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/inetorgperson.ldif

Add dcm4chee-arc schemas again:
ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dicom.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dcm4che.ldif
tr -d \\r < $DCM4CHEE_ARC/ldap/slapd/dcm4chee-archive.ldif | sudo ldapadd -Y EXTERNAL -H ldapi:///
ldapadd -Y EXTERNAL -H ldapi:/// -f $DCM4CHEE_ARC/ldap/slapd/dcm4chee-archive-ui.ldif

Restore LDAP data from backup
ldapadd -Wx -D "cn=admin,dc=dcm4che,dc=org" -H ldap:/// -f backup.ldif

Start wildfly:
systemctl start wildfly


пятница, 26 июня 2020 г. в 18:27:03 UTC+10, gunterze:
Reply all
Reply to author
Forward
0 new messages