... | ... |
@@ -430,7 +430,7 @@ def spn_to_principal(spn, name_type='KRB5_NT_PRINCIPAL'): |
430 | 430 |
raise KeytabComposingError('Cannot parse SPN %s into principal' % spn) |
431 | 431 |
principal['realm'] = rem.group('realm') |
432 | 432 |
principal['components'] = [] |
433 |
- for name, component in rem.groupdict(): |
|
433 |
+ for name, component in rem.groupdict().items(): |
|
434 | 434 |
if name.startswith('comp') and component is not None: |
435 | 435 |
principal['components'].append(component) |
436 | 436 |
return principal |