Commit 2bc1409c authored by Andrew's avatar Andrew Committed by William Grzybowski
Browse files

Exclude unknown encytypes from ktutil choices

Unknown enctype may break processing of ktutil output.
Showing with 4 additions and 0 deletions
+4 -0
......@@ -752,6 +752,10 @@ class KerberosKeytabService(CRUDService):
for line in kt_list_output.splitlines():
fields = line.split()
if len(fields) >= 4 and fields[0] != 'Vno':
if fields['1'] == 'unknown':
self.logger.warning('excluding unknown encryption type %s from keytab choices', fields[2])
continue
keytab_entries.append({
'kvno': fields[0],
'type': fields[1],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment