No subject
Thu Mar 14 15:04:54 GMT 2013
On Fri, Oct 11, 2013 at 8:39 AM, Simon MacMullen <simon at rabbitmq.com> wrote:
> On 11/10/2013 4:26PM, MyOwnFitness wrote:
>
>> There is a naming convention where the users will have LDAP accounts
>> like, TestUser1 and 2 and TestPub1 and 2. Is there a way to grant
>> access to a certain vhost based on Naming convention?
>>
>
> You could do something like:
>
> {match, {string, "${vhost}"}, {string, "^${username}-host$"}}
>
> So that TestUser1 can log in to TestUser1-host and so on.
>
>
> Also, on that
>> same note could you have multiple vhost sections in the config?
>>
>
> No. Like I said, in 3.2.0 you will be able to use boolean ops to simulate
> this.
>
>
> Cheers, Simon
>
> --
> Simon MacMullen
> RabbitMQ, Pivotal
>
--047d7b47207804bb8d04e87a3f45
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Awesome, that might work... one more question...<div><br><=
/div><div>If i used:</div><div><br></div><div><span style=3D"font-family:ar=
ial,sans-serif;font-size:13px">{match, {string, "${vhost}"}, {str=
ing, "^${username}-host$"}}</span><br>
</div><div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br>=
</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x">What if TestPub1 needed to publish to TestUser1-host?=A0</span></div><di=
v>
<span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span></di=
v><div><span style=3D"font-family:arial,sans-serif;font-size:13px">From the=
above they would only get access to TestPub1-host, correct?</span></div><d=
iv>
<span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span></di=
v></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Fr=
i, Oct 11, 2013 at 8:39 AM, Simon MacMullen <span dir=3D"ltr"><<a href=
=3D"mailto:simon at rabbitmq.com" target=3D"_blank">simon at rabbitmq.com</a>>=
</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">On 11/10/2013 4:26PM, MyOw=
nFitness wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
There is a naming convention where the users will have LDAP accounts<br>
like, TestUser1 and 2 and TestPub1 and 2. Is there a way to grant<br>
access to a certain vhost based on Naming convention?<br>
</blockquote>
<br></div>
You could do something like:<br>
<br>
{match, {string, "${vhost}"}, {string, "^${username}-host$&q=
uot;}}<br>
<br>
So that TestUser1 can log in to TestUser1-host and so on.<div class=3D"im">=
<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Also, on that<br>
same note could you have multiple vhost sections in the config?<br>
</blockquote>
<br></div>
No. Like I said, in 3.2.0 you will be able to use boolean ops to simulate t=
his.<div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
Cheers, Simon<br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
</div></div></blockquote></div><br></div>
--047d7b47207804bb8d04e87a3f45--
More information about the rabbitmq-discuss
mailing list