#then the login is different from the one found in its hrn
if tmpname != hrn.split('.')[1]:
hrn = None
+ else:
+ hrn = None
+
+ if hrn is None:
results = {
'type': 'user',
'pkey': ldapentry['sshPublicKey'],
'authority': parent_hrn,
'peer_authority': peer_authority,
'pointer': -1,
- 'hrn': hrn,
}
else:
#hrn = None
'authority': parent_hrn,
'peer_authority': peer_authority,
'pointer': -1,
+ 'hrn': hrn,
}
return results