<div dir="ltr"><div><div><div><div>Hi,<br><br></div>That is the same kind of configuration I have tried and that I had in mind.<br><br></div>By using static value, it worked. For instance:<br><tt>require shib-attr orgunit XXX<br><br></tt></div>I have to check the apache version though.<br><br>Regards,<br><br>Yannick</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 17, 2017 at 8:12 PM, Brent Putman <span dir="ltr"><<a href="mailto:putmanb@georgetown.edu" target="_blank">putmanb@georgetown.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <p><br>
    </p>
    <br>
    <div class="m_3356077991487827364moz-cite-prefix">On 4/17/17 1:37 PM, Cantor, Scott
      wrote:<br>
    </div>
    <blockquote type="cite"><br>
      <pre> 
</pre>
      <blockquote type="cite">
        <pre>I have tried a directive “LocationMatch” and a “require” and shib-attr with the matched string but it does not seem to work.
</pre>
      </blockquote>
    </blockquote>
    <br></span>
    To be clear, are you trying to use a something like a named match
    group expression in the require rule, similar to this?:<br>
    <br>
    <br>
    
    <tt><LocationMatch "^/(?<orgunit>[^/]+)/foo/bar"></tt><tt><br>
    </tt><tt>    require shib-attr orgunit %{env:MATCH_ORGUNIT}</tt><tt><br>
    </tt><tt></LocationMatch></tt><tt><br>
    </tt><tt><br>
    </tt><br>
    FYI, according to the Apache docs [1], that only works in 2.4.8+.  <br><span class="">
    <br>
    <br>
    <blockquote type="cite">
      <pre>Well, that does work, so your problem is with Apache configuration or the data you're actually getting.

</pre>
    </blockquote>
    <br></span>
    I may be reading too much into the OP's question, but do we know for
    a fact that a "dynamic runtime" require rule like the above works? 
    For example, does mod_shib need to invoke any special httpd
    machinery in order for the expression eval to happen properly?<br>
    <br>
    <br>
    <br>
    [1] <a class="m_3356077991487827364moz-txt-link-freetext" href="http://httpd.apache.org/docs/2.4/mod/core.html#locationmatch" target="_blank">http://httpd.apache.org/docs/<wbr>2.4/mod/core.html#<wbr>locationmatch</a><br>
  </div>

<br>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.<wbr>net</a><br></blockquote></div><br></div>