Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenLDAP] Custom schema freezes the image #74023

Open
RensHoskens opened this issue Oct 29, 2024 · 3 comments
Open

[OpenLDAP] Custom schema freezes the image #74023

RensHoskens opened this issue Oct 29, 2024 · 3 comments
Assignees
Labels
openldap stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@RensHoskens
Copy link

Name and Version

bitnami/openldap:2.6.8

What architecture are you using?

amd64

What steps will reproduce the bug?

I am creating an LDAP testcontainer for Java using the bitnami/openldap:2.6.8 image.
The environment variables are the following:

  • LDAP_ROOT: dc=example,dc=org
  • LDAP_ADMIN_USERNAME: admin
  • LDAP_ADMIN_PASSWORD: adminpassword

I have a custom schema (created in ApacheDS and then exported as OpenLDAP files).

attributetype ( 1.3.6.1.4.1.99999.1.1 NAME 'myCustomAttribute'
	DESC ''
	USAGE userApplications )
objectclass ( 1.3.6.1.4.2.99999.1.1 NAME 'myCustomType'
	DESC ''
	STRUCTURAL
	MAY myCustomAttribute )

I mount the custom schema file in /schema/custom.ldif (which is automatically added as custom schema)

What is the expected behavior?

I would expect that the image will add the schema to the openldap instance and then start up. The extra objectclass should be usable.

What do you see instead?

The logfile mentions that it's adding the custom schema:

 09:59:27.92 INFO  ==> ** Starting LDAP setup **
 09:59:27.93 INFO  ==> Validating settings in LDAP_* env vars
 09:59:27.94 INFO  ==> Initializing OpenLDAP...
 09:59:27.94 INFO  ==> Creating LDAP online configuration
 09:59:27.94 INFO  ==> Creating slapd.ldif
 09:59:27.96 INFO  ==> Starting OpenLDAP server in background
 09:59:28.96 INFO  ==> Configure LDAP credentials for admin user
 09:59:28.97 INFO  ==> Adding LDAP extra schemas
 09:59:28.98 INFO  ==> Adding custom Schema : /schema/custom.ldif ...

And then nothing more. No additional logs, the image doesn't respond anymore. Port is also not open.

Additional information

I'm guessing it has something to do with the startup function being called.
Also, adjusting the LDAP_LOGLEVEL has no effect on this.

@RensHoskens RensHoskens added the tech-issues The user has a technical issue about an application label Oct 29, 2024
@github-actions github-actions bot added the triage Triage is needed label Oct 29, 2024
@carrodher
Copy link
Member

Setting the BITNAMI_DEBUG env. variable to true will increase the verbosity of the initialization scripts, could please you try that?

@b17saurabh
Copy link

@RensHoskens Please add more info to this thread, contents of your schema file and how you have validated it.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openldap stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants