X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fsenslab%2Fslab-import.py;h=1cfbda10b155dca84065e93f56a755192d244dac;hb=e2adde340d3c1678329d69faa511d5a72fb31ccc;hp=e41e2ca4e8384f5af81af8b88c4f845793e1d1b0;hpb=c2d7f6e7f1df60c9759301d3770da5d443c2b7f4;p=sfa.git diff --git a/sfa/senslab/slab-import.py b/sfa/senslab/slab-import.py index e41e2ca4..1cfbda10 100644 --- a/sfa/senslab/slab-import.py +++ b/sfa/senslab/slab-import.py @@ -80,10 +80,15 @@ def import_person(person): existing_records = table.find({'hrn': person['hrn'], 'type': 'user'}) if not existing_records: print>>sys.stderr, " \r\n \t slab-import : person record %s inserted" %(person['hrn']) + uuid=create_uuid() + RSA_KEY_STRING=person['pkey'] + pkey=convert_public_key(RSA_KEY_STRING) + person['gid']=self.senslabauth.create_gid("urn:publicid:IDN+"+self.authname+"+user+"+ldapentry[1]['uid'][0], uuid, pkey, CA=False) table.insert(person) else: existing_record = existing_records[0] person['record_id'] = existing_record['record_id'] + # handle key change ??? table.update(person) def import_slice(person):