fix: added a plug for ssh_keys

This commit is contained in:
dettlaff 2024-11-29 19:54:20 +04:00
parent 11d583bd92
commit 8d4639fd78

View file

@ -189,6 +189,7 @@ class KanidmUserRepository(AbstractUserRepository):
username=attrs.get("name", [None])[0],
displayname=attrs.get("displayname", [None])[0],
email=attrs.get("mail", [None])[0],
ssh_keys=[], # actions layer will full in this field
origin=origin,
directmemberof=attrs.get("directmemberof", []),
memberof=attrs.get("memberof", []),
@ -258,7 +259,7 @@ class KanidmUserRepository(AbstractUserRepository):
username=attrs.get("name", [None])[0],
displayname=attrs.get("displayname", [None])[0],
email=attrs.get("mail", [None])[0],
ssh_keys=attrs.get("ssh_keys", []),
ssh_keys=[], # actions layer will full in this field
origin=KanidmUserRepository._check_user_origin_by_memberof(
memberof=attrs.get("memberof", [])
),