Hi there,
I'm trying hard to get LDAP auth going, but I think the plane hasn't even taken off.
I have created the /opt/netbox/netbox/netbox/ldap_config.py file (following the official guides and even looking at what other ressources said on the topic).
It appears that the file is being read (if I make an intensional syntax error, netbox won't start).
However, netbox ever tries any LDAPy things. Trying to debug things futher, it appears that the following code in settings.py doesn't result in True:
try:
from netbox import ldap_config as LDAP_CONFIG
except ImportError:
LDAP_CONFIG = None
if LDAP_CONFIG is not None:
### THIS IS NEVER
if I move from netbox import ldap_config as LDAP_CONFIG from the try/except block to have it executed directly, I get the error
ModuleNotFoundError: No module named 'ldap'
so that must be the issue...
Now, I am unsure how to resolve this. I have tried pip3 installing a bunch of ldap-sounding things, to no avail.
Any pointers? Which package is required here?
PS: Running the latest version (v2.6.2) on an Ubuntu 18 box, really just following the install guides. Netbox itself works perfectly with local users... Cheers!