Try fixing unicode decode errors when settin kerberos pass

This commit is contained in:
nikolark committed 2015-09-01 13:59:58 +02:00
1 parent b29bba2381
commit 2389812a90
1 file changed
+2
+2
View File
@@ -1,3 +1,4 @@
from __future__ import unicode_literals
import datetime
from django.conf import settings
import logging
@@ -77,6 +78,7 @@ def add_kerberos_principal(username, password, dry_run=False):
# KADM5_PASS_Q_* (password quality violations)
logger.error(error)
return False
logger.debug('Added kerberos principal {}'.format(principal))
return True