Browse code

Fix spn_to_principal().

Xavier G authored on04/04/2022 19:15:48
Showing1 changed files

  • yamltab index 761733d..24ff138 100755
... ...
@@ -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