I have said goodbye to Apache and hello to Nginx & Gunicorn and LDAP is now working as intended. The problem was propably in Apache configuration or maybe i