[GH-ISSUE #62] Run fails with ldap_add: Object class violation (65) additional info: attribute 'mail' not allowed #39

Closed
opened 2026-02-27 16:47:44 +03:00 by kerem · 1 comment
Owner

Originally created by @ryancragun on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/62

After github.com/rroemhild/docker-test-openldap@b64c0c2771 was merged you can no longer run the container without an object class violation:

+ ldapadd -x -H ldapi:/// -D cn=admin,dc=planetexpress,dc=com -w GoodNewsEveryone -f /opt/openldap/bootstrap/data/30_groups_crew.ldif
ldap_add: Object class violation (65)
        additional info: attribute 'mail' not allowed
adding new entry "cn=ship_crew,ou=people,dc=planetexpress,dc=com"

[cont-init.d] 050-openldap-populate: exited 65.
[cont-init.d] done.
[services.d] starting services
starting slapd
[services.d] done.
67ec3f4c @(#) $OpenLDAP: slapd  (May 14 2022 18:35:44) $
        Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
67ec3f4c hdb_db_open: database "dc=planetexpress,dc=com": database already in use.
67ec3f4c backend_startup_one (type=hdb, suffix="dc=planetexpress,dc=com"): bi_db_open failed! (-1)
67ec3f4c slapd stopped.
starting slapd

Reproduction:
Run from the SHA-256 that matches the aforementioned commit:
docker run ghcr.io/rroemhild/docker-test-openldap@sha256:7f709b3c5827090f1501fda1511b14a688ef644338af94b6d063adb5dac70033

Originally created by @ryancragun on GitHub (Apr 1, 2025). Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/62 After https://github.com/rroemhild/docker-test-openldap/commit/b64c0c2771f3600bd73a34e67318e936fcb9e5c4 was merged you can no longer run the container without an object class violation: ``` + ldapadd -x -H ldapi:/// -D cn=admin,dc=planetexpress,dc=com -w GoodNewsEveryone -f /opt/openldap/bootstrap/data/30_groups_crew.ldif ldap_add: Object class violation (65) additional info: attribute 'mail' not allowed adding new entry "cn=ship_crew,ou=people,dc=planetexpress,dc=com" [cont-init.d] 050-openldap-populate: exited 65. [cont-init.d] done. [services.d] starting services starting slapd [services.d] done. 67ec3f4c @(#) $OpenLDAP: slapd (May 14 2022 18:35:44) $ Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org> 67ec3f4c hdb_db_open: database "dc=planetexpress,dc=com": database already in use. 67ec3f4c backend_startup_one (type=hdb, suffix="dc=planetexpress,dc=com"): bi_db_open failed! (-1) 67ec3f4c slapd stopped. starting slapd ``` Reproduction: Run from the SHA-256 that matches the aforementioned commit: `docker run ghcr.io/rroemhild/docker-test-openldap@sha256:7f709b3c5827090f1501fda1511b14a688ef644338af94b6d063adb5dac70033`
kerem closed this issue 2026-02-27 16:47:44 +03:00
Author
Owner

@rroemhild commented on GitHub (Apr 1, 2025):

Thanks for reporting. I reverted the pull request #44 in #63.

<!-- gh-comment-id:2770694218 --> @rroemhild commented on GitHub (Apr 1, 2025): Thanks for reporting. I reverted the pull request #44 in #63.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-test-openldap#39
No description provided.