sp authorization with wildcard

Cantor, Scott cantor.2 at osu.edu
Thu Aug 29 10:38:45 EDT 2013


On 8/29/13 10:08 AM, "Flannery, Sean" <sean.flannery at jwt.com> wrote:

>
>I'm trying to protect an app based on a custom LDAP attribute that
>requires a wild card search, ie

There is no globbing support, which is the technical term for what you
mean by wildcard.

You can do regular expressions, as Ian's link to the documentation
mentions.

>But if I do a wild card search, it doesn't let anyone in- maybe it
>interprets the "*" char literally?  Not sure.

It does. All Apache rules work that way in general.

>Anyway wondering: am I just using bad regex, or is this not supported?

That's not a regex. You're confusing two unrelated things. A * in a regex
means "any number of occurrences of the previous expression" not "any
sequence of characters". They're very different approaches. A regex would
be "^(.*)foo(.*)$" but you can get yourself into unexpected situations
doing matches very broadly.

-- Scott




More information about the users mailing list