diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-07-14 10:56:38 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-07-14 10:56:38 +0100 |
| commit | 1849d6af7ea940f557a643c30ff67e091a3f863e (patch) | |
| tree | e195e6cb6c9a62b97e96c8e741daa47144734322 /docs/rabbitmqctl.1.xml | |
| parent | 74a64a59adc4515f08c7a61034be9ec6bad08210 (diff) | |
| download | rabbitmq-server-git-1849d6af7ea940f557a643c30ff67e091a3f863e.tar.gz | |
added a flag to set_permissions to control their scope
set_permissions -check_user_named is the default and checks
permissions only for user named permissions. I.e. server generated
names are not checked.
set_permissions -check_all_resources enables the check for server
generated names.
I had to shorten the argument names in the man page because otherwise
the set_permissions line would have exceeded 80 characters.
All parameters passed from rabbit_control to rabbit_access_control are
binary(), hence why we're passing <<"check_user_name">> rather than
'check_user_named'.
Rabbit_access_control:set_permissions now takes 6 parameters. There's
also a 5 parameter version that sets the default value for Check and
calls the other one. I've added it because I don't want the default
value for Check in 10 different places.
Diffstat (limited to 'docs/rabbitmqctl.1.xml')
| -rw-r--r-- | docs/rabbitmqctl.1.xml | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/rabbitmqctl.1.xml b/docs/rabbitmqctl.1.xml index 26863ae78a..74ac95686b 100644 --- a/docs/rabbitmqctl.1.xml +++ b/docs/rabbitmqctl.1.xml @@ -547,7 +547,7 @@ </varlistentry> <varlistentry> - <term><cmdsynopsis><command>set_permissions</command> <arg choice="opt">-p <replaceable>vhostpath</replaceable></arg> <arg choice="req"><replaceable>username</replaceable></arg> <arg choice="req"><replaceable>configure</replaceable></arg> <arg choice="req"><replaceable>write</replaceable></arg> <arg choice="req"><replaceable>read</replaceable></arg></cmdsynopsis></term> + <term><cmdsynopsis><command>set_permissions</command> <arg choice="opt">-p <replaceable>vhostpath</replaceable></arg> <arg choice="opt">-<replaceable>check</replaceable></arg> <arg choice="req"><replaceable>user</replaceable></arg> <arg choice="req"><replaceable>conf</replaceable></arg> <arg choice="req"><replaceable>write</replaceable></arg> <arg choice="req"><replaceable>read</replaceable></arg></cmdsynopsis></term> <listitem> <variablelist> <varlistentry> @@ -555,11 +555,18 @@ <listitem><para>The name of the virtual host to which to grant the user access, defaulting to <command>/</command>.</para></listitem> </varlistentry> <varlistentry> - <term>username</term> + <term>check</term> + <listitem><para>Which resources should permissions be + checked for? Either + <command>check_user_named</command> (the default) or + <command>check_all_resources</command>.</para></listitem> + </varlistentry> + <varlistentry> + <term>user</term> <listitem><para>The name of the user to grant access to the specified virtual host.</para></listitem> </varlistentry> <varlistentry> - <term>configure</term> + <term>conf</term> <listitem><para>A regular expression matching resource names for which the user is granted configure permissions.</para></listitem> </varlistentry> <varlistentry> |
