Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #504 from basho/jrd-print-grants

Add print-grants to riak-admin
  • Loading branch information...
commit 2f833c8be413b7d1780fd1f2d475216df2a10713 2 parents 46a009b + fcb7314
@macintux macintux authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 rel/files/riak-admin
View
21 rel/files/riak-admin
@@ -140,6 +140,9 @@ security_admin()
exit 1
fi
$NODETOOL rpc riak_core_console add_user "$@"
+ if [ $? -eq 0 ]; then
+ $NODETOOL rpc riak_core_console print_user "$1"
+ fi
;;
add-group)
shift
@@ -148,6 +151,9 @@ security_admin()
exit 1
fi
$NODETOOL rpc riak_core_console add_group "$@"
+ if [ $? -eq 0 ]; then
+ $NODETOOL rpc riak_core_console print_group "$1"
+ fi
;;
alter-user)
shift
@@ -156,6 +162,9 @@ security_admin()
exit 1
fi
$NODETOOL rpc riak_core_console alter_user "$@"
+ if [ $? -eq 0 ]; then
+ $NODETOOL rpc riak_core_console print_user "$1"
+ fi
;;
alter-group)
shift
@@ -164,6 +173,9 @@ security_admin()
exit 1
fi
$NODETOOL rpc riak_core_console alter_group "$@"
+ if [ $? -eq 0 ]; then
+ $NODETOOL rpc riak_core_console print_group "$1"
+ fi
;;
del-user)
shift
@@ -233,6 +245,14 @@ security_admin()
status)
$NODETOOL rpc riak_core_console security_status
;;
+ print-grants)
+ shift
+ if [ $# -ne 1 ]; then
+ echo "Usage: $SCRIPT security print-grants <user>"
+ exit 1
+ fi
+ $NODETOOL rpc riak_core_console print_grants "$@"
+ ;;
print-user)
shift
if [ $# -ne 1 ]; then
@@ -273,6 +293,7 @@ The following commands modify users and security ACLs for Riak:
print-groups
print-user <user>
print-group <group>
+ print-grants <user|group>
print-sources
enable
disable
Please sign in to comment.
Something went wrong with that request. Please try again.