From bcfa189c6a5e3a20fb510fbda6a0a4a5113b46d1 Mon Sep 17 00:00:00 2001 From: Rezende & Pedro & Carlos & Raphael Date: Thu, 18 Sep 2014 20:08:02 -0300 Subject: [PATCH] updating pkey in the case of logging thru LDAP --- portal/actions.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- 2.43.0