From 582a2eaa7646b723acbdd734b9a374f3a089508d Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 10 Feb 2016 09:41:56 +0100 Subject: [PATCH] state that problem is related to the keytab when authGSSServerInit fails --- src/django_kerberos/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/django_kerberos/views.py b/src/django_kerberos/views.py index 5ccc851..0fbb695 100644 --- a/src/django_kerberos/views.py +++ b/src/django_kerberos/views.py @@ -64,8 +64,10 @@ class NegotiateView(View): try: result, context = kerberos.authGSSServerInit(service) except kerberos.KrbError, e: - self.logger.warning(u'exception during authGSSServerInit: %s', e) - details = u'exception during authGSSServerInit: %s' % e + self.logger.warning(u'exception during authGSSServerInit: %s, certainly a ' + u'keytab problem', e) + details = (u'exception during authGSSServerInit: %s, certainly a ' + u'keytab problem' % e) return TemplateResponse(request, self.error_template_name, context={'details': details}, status=500) # ensure context is finalized