Skip to content

Instantly share code, notes, and snippets.

View stmps's full-sized avatar
🐧

stmps

🐧
  • Canberra
  • 21:32 (UTC +10:00)
View GitHub Profile
@stmps
stmps / generate_rgw_s3_token.py
Last active February 5, 2021 05:52 — forked from adamgoossens/generate_rgw_s3_token.py
Simple python3 script that will generate an access key suitable for use with the Ceph RADOSGW S3 API, when authenticating against an LDAP or AD backend.
######################
#
# generate_rgw_s3_token.py
#
# Generates a base64 access key suitable for use with the Ceph
# RADOSGW S3 API
#
# usage: python3 generate_rgw_s3_token.py --ttype ldap
#
# alternative: RGW_ACCESS_KEY_ID='foobar' RGW_ACCESS_SECRET_KEY='barbaz' generate_rgw_s3_token.py --ttype ad