[ceph-users] Shell / curl test script for rgw

2018-03-17 Thread Marc Roos
I am testing the ldap auth with rgw. But is there a simple shell script that I can use to test with? I have problems with the signature in this one #!/bin/bash # file=1MB.bin bucket=test s3Key="TEST" s3Secret="test" host="192.168.1.14" resource="/${bucket}/${file}" contentType="application/x

Re: [ceph-users] Shell / curl test script for rgw

2018-03-17 Thread Konstantin Shalygin
Hi Mark But is there a simple shell script that I can use to test with? I have problems with the signature in this one This is 100% working test admin api (uid should have caps="buckets=read"). #!/bin/bash s3_access_key="" s3_secret_key="" s3_host="objects-us-west-1.dream.io" query="admin

Re: [ceph-users] Shell / curl test script for rgw

2018-03-23 Thread Marc Roos
dd --uid='test$test1' --caps "buckets=read" -Original Message- From: Konstantin Shalygin [mailto:k0...@k0ste.ru] Sent: zondag 18 maart 2018 6:35 To: ceph-users@lists.ceph.com Cc: Marc Roos Subject: *SPAM* Re: [ceph-users] Shell / curl test script for rgw

Re: [ceph-users] Shell / curl test script for rgw

2018-03-23 Thread Konstantin Shalygin
On 03/24/2018 07:22 AM, Marc Roos wrote: Thanks! I got it working, although I had to change the date to "date -R -u", because I got the "RequestTimeTooSkewed" error. I also had to enable buckets=read on the account that was already able to read and write via cyberduck, I don’t get that. rad

Re: [ceph-users] Shell / curl test script for rgw

2018-03-24 Thread Marc Roos
${dateValue}" -H "Authorization: AWS ${key}:${signature}" -H "Host: ${host}" "https://${host}${resource}?format=json&stats=True"; --insecure echo -----Original Message- From: Konstantin Shalygin [mailto:k0...@k0ste.ru] Sent: zaterdag 24 maart 2018 4:03

Re: [ceph-users] Shell / curl test script for rgw

2018-03-24 Thread Marc Roos
ecure echo -Original Message- From: Konstantin Shalygin [mailto:k0...@k0ste.ru] Sent: zaterdag 24 maart 2018 4:03 To: Marc Roos; ceph-users Subject: Re: [ceph-users] Shell / curl test script for rgw On 03/24/2018 07:22 AM, Marc Roos wrote: > > Thanks! I got it working, although I h