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

LDAP not working (configuration not applied to pod after configuring and pushing helm chart) #174

Open
ServiceOfTerms opened this issue Jan 10, 2024 · 1 comment

Comments

@ServiceOfTerms
Copy link

Hi, I am facing an issue with LDAP configuration with latest helm chart. It doesn't seem to pass LDAP environment variables to a pod, and I don't see any LDAP outbound traffic from netbox app. Also, during the boot, no LDAP config is loaded.

I followed your guide from readme

Is there anything I am missing or is it a bug?

Netbox version: v3.6.6
Chart version: 4.1.1 (latest)

@ServiceOfTerms ServiceOfTerms changed the title LDAP not working (configuration not applied to pod after setting up helm chart) LDAP not working (configuration not applied to pod after configuring and pushing helm chart) Jan 10, 2024
@Danielp93
Copy link

Danielp93 commented Jan 26, 2024

I was having the same issues, #172 fixed it for me.

Also, LDAP config is not passed as environment variable, but as configmap data. The LDAP (django-auth-ldap) module reads these from the file system. They are available as a volumeMount under "/run/config/netbox/ldap.yaml". So to check you could use:

kubectl describe configmap netbox to see if the data is present in the configmap. Look for ldap.yaml. If this is not the case, it might be due to the bug that is fixed in the linked pull request.

kubectl exec <netbox pod name> -- cat /run/config/netbox/ldap.yaml would show you the data that is mounted in the pod. And should output the configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants