From: Rezende & Pedro & Carlos & Raphael Date: Thu, 18 Sep 2014 23:08:02 +0000 (-0300) Subject: updating pkey in the case of logging thru LDAP X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=bcfa189c6a5e3a20fb510fbda6a0a4a5113b46d1 updating pkey in the case of logging thru LDAP --- diff --git a/portal/actions.py b/portal/actions.py index 24ad7f41..285b4400 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -707,6 +707,16 @@ def create_user_in_ldap(wsgi_request, request, user_detail): # Add reference accounts for platforms manifold_add_reference_user_accounts(wsgi_request, request) + organization = request['username'].split('@')[1] + lsClient = LaboraSchedulerClient( organization ) + + userId = lsClient.get_user_id_by_username( { 'username': str( request['username'] ) } ) + + ls_up_pkey = ls_update_public_key( wsgi_request, request, lsClient, userId ) + + if ls_up_pkey: + print "OK PKEY" + from sfa.util.xrn import Xrn auth_pi = request.get('pi', None)