LDAP not working (configuration not applied to pod after configuring and pushing helm chart)
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)
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.
Closing as explanation and solution provided.