summaryrefslogtreecommitdiffstats
path: root/apachekerbauth/var/www/cgi-bin
diff options
context:
space:
mode:
authorPrashanth Pai <ppai@redhat.com>2013-10-10 15:47:31 +0530
committerLuis Pabon <lpabon@redhat.com>2013-10-14 20:20:24 -0700
commit9812a4a9e4a30a208d77d3b10828a1c174dccd77 (patch)
tree458a0bb606320394d7ad331c71b9b2425b18a4dd /apachekerbauth/var/www/cgi-bin
parentbe359eabbbbf8269a5fa3aebaef17cec48c44176 (diff)
Add unit tests
Change-Id: I7bbf74b66c26d0a964fa769bf9c46dd73bd03d73 Signed-off-by: Prashanth Pai <ppai@redhat.com> Reviewed-on: http://review.gluster.org/6067 Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com>
Diffstat (limited to 'apachekerbauth/var/www/cgi-bin')
-rwxr-xr-xapachekerbauth/var/www/cgi-bin/swift-auth1
1 files changed, 1 insertions, 0 deletions
diff --git a/apachekerbauth/var/www/cgi-bin/swift-auth b/apachekerbauth/var/www/cgi-bin/swift-auth
index 6173408..1d124c5 100755
--- a/apachekerbauth/var/www/cgi-bin/swift-auth
+++ b/apachekerbauth/var/www/cgi-bin/swift-auth
@@ -40,6 +40,7 @@ MEMCACHE_SERVERS = ['127.0.0.1:11211']
DEBUG_HEADERS = True
+
def main():
remote_user = os.environ['REMOTE_USER']
matches = re.match('([^@]+)@.*', remote_user)