diff options
author | venkata edara <redara@redhat.com> | 2017-07-31 16:17:49 +0530 |
---|---|---|
committer | venkata edara <redara@redhat.com> | 2017-07-31 16:30:45 +0530 |
commit | f8cde44e7c5a1a42a24e9993f4ebc088082a1deb (patch) | |
tree | 99f32d10e60b28430c53fbe1c81ac219fa0f4657 /gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user | |
parent | 4757dd977452d15baae91d46a7895cd3d5b7863e (diff) | |
download | gluster-f8cde44e7c5a1a42a24e9993f4ebc088082a1deb.tar.gz gluster-f8cde44e7c5a1a42a24e9993f4ebc088082a1deb.tar.bz2 gluster-f8cde44e7c5a1a42a24e9993f4ebc088082a1deb.tar.xz gluster-f8cde44e7c5a1a42a24e9993f4ebc088082a1deb.zip |
Added S3 authentication changes
changed the proxy-server.conf to enable authentication and scripts to add user
Signed-off-by: venkata edara <redara@redhat.com>
Diffstat (limited to 'gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user')
-rwxr-xr-x | gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user b/gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user new file mode 100755 index 0000000..59eb1b2 --- /dev/null +++ b/gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user @@ -0,0 +1,13 @@ +#!/bin/bash +if [ "$#" -lt 3 ]; then + echo "Incorrect args. invoke gluster-swift-add-user $GLUSTER_USER $GLUSTER_PASSWORD $GLUSTER_VOLUMES" + exit 1 +else + GLUSTER_USER=$1 + GLUSTER_PASSWORD=$2 + GLUSTER_VOLUMES=$(echo $3 | cut -d" " -f1) + sleep 5 + gswauth-prep -A http://0.0.0.0:8080/auth -K gswauthkey + gswauth-add-account -K gswauthkey $GLUSTER_VOLUMES + gswauth-add-user -K gswauthkey -a $GLUSTER_VOLUMES $GLUSTER_USER $GLUSTER_PASSWORD +fi |