Authorization rules with spaces in them

Topics: Security Application Block
Mar 6, 2008 at 10:55 AM
If active directory domain group names can have spaces then you MUST allow the ability to use domain group names with spaces in authorization rules.

The following rule throws an exception (Found token "end of file" when expecting word at position 55).

<rules>
<add expression="R:mydomain\domain admins" name="AllowFullAdminAccess"/>
</rules>

It fails on he rule "mydomain\domain admins"
Mar 27, 2008 at 4:46 PM
This ability exists, you must surround the domain\group name with quotes. Do not include the R: token inside the quotes though.

R:"mydomain\domain admins" will work


bab5139 wrote:
If active directory domain group names can have spaces then you MUST allow the ability to use domain group names with spaces in authorization rules.

The following rule throws an exception (Found token "end of file" when expecting word at position 55).

<rules>
<add expression="R:mydomain\domain admins" name="AllowFullAdminAccess"/>
</rules>

It fails on he rule "mydomain\domain admins"