path: root/swiftkerbauth/
diff options
authorPrashanth Pai <>2013-12-26 14:24:19 +0530
committerLuis Pabon <>2014-01-10 07:45:51 -0800
commitf952c756ad024e100953a43b1f297f82b5c8f3e2 (patch)
treef30f155a1fd1c1929370af1094cb83567b5aed81 /swiftkerbauth/
parent2f9e3120bbd7ef6b7459fccb5b740b6542b13c57 (diff)
Return X-Storage-Url in passive mode
When auth_mode is set to 'passive', client can authenticate itself using account, user and key. This enables swiftkerbauth to return X-Storage-Url response header to client. X-Storage-Url contains account name provided in the request. This required a change in X-Storage-User header format from X-Storage-User: user to X-Storage-User: account:user This makes swiftkerbauth(passive mode) handle_get_token APIs to be more consistent with that of swauth and tempauth. Change-Id: Ic1d1520bb8afbc80cca443d92d659436f2f7cd0e Signed-off-by: Prashanth Pai <> Reviewed-on: Reviewed-by: Chetan Risbud <> Tested-by: Chetan Risbud <>
Diffstat (limited to 'swiftkerbauth/')
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftkerbauth/ b/swiftkerbauth/
index 8490d83..683cdea 100644
--- a/swiftkerbauth/
+++ b/swiftkerbauth/
@@ -81,7 +81,7 @@ def generate_token():
return token
-def get_groups(username):
+def get_groups_from_username(username):
"""Return a set of groups to which the user belongs to."""
# Retrieve the numerical group IDs. We cannot list the group names
# because group names from Active Directory may contain spaces, and