From 47090c0a12d8ccffa6d67692461da61a7b7f67e7 Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Fri, 18 May 2018 12:21:38 +0200 Subject: [PATCH] FIT IoT-Lab shell: modified add_user category of user is required --- sfa/iotlab/iotlabshell.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sfa/iotlab/iotlabshell.py b/sfa/iotlab/iotlabshell.py index 105d1203..3b9f9930 100644 --- a/sfa/iotlab/iotlabshell.py +++ b/sfa/iotlab/iotlabshell.py @@ -152,7 +152,20 @@ class IotLABShell(object): def add_user(self, slice_user): """ Add LDAP user + { + "firstName":"loic", + "lastName":"test", + "email":"loic.test@lip6.fr", + "organization":"SFA", + "city":"To be defined", + "country":"To be defined", + "motivations":"SFA federation", + "category":"Academic", + "type": "SA", + "sshPublicKey": "ssh-rsa AAAAB3Nz..." + } """ + # pylint:disable=E1123 logger.warning("iotlashell add_user") logger.warning("slice_user: %s" % slice_user) @@ -165,7 +178,9 @@ class IotLABShell(object): "city": "To be defined", "country": "To be defined", "motivations": "SFA federation", - "organization": organization} + "organization": organization, + "category":"Academic" + } email = slice_user['email'] user['email'] = email user['sshPublicKey'] = slice_user['keys'][0] -- 2.43.0