02strich / django-auth-kerberos

Kerberos authentication backend for Django
MIT License
19 stars 12 forks source link

No handlers could be found for logger #6

Closed andebor closed 9 years ago

andebor commented 9 years ago

Hi!

I'm trying to get this working in our project and while testing with KRB5_DEBUG = True, I got the following console output:

No handlers could be found for logger "django_auth_kerberos.backends"

I have the following in settings.py (basically just like the README):

# kerberos realm and service
KRB5_REALM = 'TEST.EXAMPLE.COM'
#KRB5_SERVICE = 'http/TEST.EXAMPLE.COM'

# Enabled KDC verification defending against rogue KDC responses
# by validating the ticket against the local keytab.
KRB5_VERIFY_KDC = True

# Enable case-sensitive matching between Kerberos and database user names
KRB5_USERNAME_MATCH_IEXACT = True

# redirect url after login
LOGIN_REDIRECT_URL = '/'

KRB5_DEBUG =  True

I don't really get any console feedback about why auth is not working. Any advice? Am I doing something wrong?

andebor commented 9 years ago

Nevermind! We have a custom logger, so I just had to import that one instead of the default one.