You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ap...@apache.org on 2013/07/25 13:57:27 UTC

[49/50] git commit: updated refs/heads/ldapplugin to 1f64354

CLOUDSTACK-3626 register the correct user and account for api calls made with api keys and secret keys


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1744ed7a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1744ed7a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1744ed7a

Branch: refs/heads/ldapplugin
Commit: 1744ed7ad5b512135e567576271e11a6e26e4379
Parents: e432ce6
Author: Chiradeep Vittal <ch...@apache.org>
Authored: Thu Jul 25 14:45:59 2013 +0530
Committer: Chiradeep Vittal <ch...@apache.org>
Committed: Thu Jul 25 14:45:59 2013 +0530

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiServer.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1744ed7a/server/src/com/cloud/api/ApiServer.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiServer.java b/server/src/com/cloud/api/ApiServer.java
index 08af964..91c6c7c 100755
--- a/server/src/com/cloud/api/ApiServer.java
+++ b/server/src/com/cloud/api/ApiServer.java
@@ -745,6 +745,8 @@ public class ApiServer extends ManagerBase implements HttpRequestHandler, ApiSer
             boolean equalSig = signature.equals(computedSignature);
             if (!equalSig) {
                 s_logger.info("User signature: " + signature + " is not equaled to computed signature: " + computedSignature);
+            } else {
+                CallContext.register(user, account);
             }
             return equalSig;
         } catch (ServerApiException ex){