Lucterios2 / django_auth_ldap3_ad

Simple LDAP/AD auth module for django
https://pypi.python.org/pypi/django-auth-ldap3-ad
GNU General Public License v3.0
45 stars 25 forks source link

Debug output #23

Closed Issen007 closed 4 years ago

Issen007 commented 6 years ago

I think I got the code working, but it can't login. Is it possible to debug what's going on?

LOGGING = {
    "version": 1,
    "disable_existing_loggers": False,
    "handlers": {
        "console": {
            "class": "logging.StreamHandler",
        },
    },
    'loggers': {
        'django': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': True,
        },
    },
}

This doesn't give my any idea what's going on.

povtux commented 6 years ago

Hi, better late than never... Sorry.

You can add a logger like that:

'django_auth_ldap3_ad': {
    'handlers': ['console'],
    'level': 'DEBUG',
},