+ # XXX JORDAN XXX slice_record devrait recevoir le caller_xrn...
+ logger.debug("LOIC users = %r" % users)
+ # XXX LOIC XXX Trying here to bypass the verify_persons function
+ # But it doesn't work, It seems we have to add users in LDAP anyway...
+ for user in users:
+ # XXX LOIC using hrn is a workaround because the function
+ # Xrn.get_urn returns 'urn:publicid:IDN+onelab:upmc+timur_friedman'
+ # Instead of this 'urn:publicid:IDN+onelab:upmc+user+timur_friedman'
+ user['hrn'] = urn_to_hrn(user['urn'])[0]
+ # XXX LOIC adding the users of the slice to reg-researchers
+ # reg-researchers is used in iotlabslices.py verify_slice in order to add the slice
+ if 'reg-researchers' not in slice_record:
+ slice_record['reg-researchers'] = list()
+ slice_record['reg-researchers'].append(user['hrn'])
+ if caller_hrn == user['hrn']:
+ #hierarchical_user = user['hrn'].split(".")
+ #user['login'] = hierarchical_user[-1]
+ #slice_record['login'] = user['login']
+ slice_record['user']=user
+
+ # XXX LOIC XXX Need to re-activate this function and understand exactly what is required
+
+ persons = slices.verify_persons(xrn.hrn, slice_record, [slice_record['user']], options=options)