LDAP not working
Trying to use LDAP with Graphite.
I am using a python3 virtual environment.
Here are my LDAP settings in local_settings.py:
DEBUG = True
### LDAP authentication setup
USE_LDAP_AUTH = True
LDAP_SERVER = "serveraddress"
LDAP_PORT = 1234
LDAP_USE_TLS = False
### Manual URI / query setup
LDAP_URI = "ldaps:
LDAP_SEARCH_BASE = "ou=users,
LDAP_BASE_USER = "cn=user,
LDAP_BASE_PASS = "*******"
LDAP_USER_QUERY = "(cn=%s)"
I have the following python modules:
asgiref==3.3.0
attrs==20.2.0
Automat==20.2.0
cairocffi==1.1.0
cffi==1.14.3
Django==2.2
django-
graphite-web==1.1.7
mod-wsgi==4.7.1
psycopg2-
pyasn1==0.4.8
pyasn1-
pycparser==2.20
pyparsing==2.4.7
python-ldap==3.3.1
python-
python3-
pytz==2020.1
scandir==1.10.0
six==1.15.0
sqlparse==0.4.1
urllib3==1.25.11
whisper==1.1.7
zope.interface=
When I tcpdump on the destination port for the ldap server I don't see any traffic at all. It seems Graphite doesn't even try.
If I try ldap client in python command line I see the traffic with tcpdump. nc -v ldapserver 1234 also works.
I also tried disabling selinux but no difference.
Connecting with ldap client works well so no network issues.
Does it not work with python3?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Piotr Popieluch
- Solved:
- Last query:
- Last reply: