<div dir="ltr"><div class="gmail_extra">Hi,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I am using shibboleth2.xml for picking up configuration for shibboleth.</div><div class="gmail_extra">However, there are use cases when we don't want to do the exact hostmatch or do something for all hosts.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Following is the configuration:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><i><Host name="<a href="http://host3.com">host3.com</a>" scheme="https" port="443" applicationId="smlsvc_pol7" authType="shibboleth" requireSession="true"/></i></div></blockquote><div class="gmail_extra">The above configuration works fine for all URLs for host3, perfect.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">But if I configure wildcard character with hostname e.g.</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><i><Host name="host*.com" scheme="https" port="443" applicationId="smlsvc_pol7" authType="shibboleth" requireSession="true"/></i></div></blockquote><div class="gmail_extra">This doesn't work. </div><div class="gmail_extra">Tried it doing following way as well:<br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_extra"><i><Host name="host*.com" scheme="https" port="443" applicationId="smlsvc_pol7"></i></div></div><div class="gmail_extra"><div class="gmail_extra"><i><Path name="*" authType="shibboleth" requireSession="true"/></i></div></div><div class="gmail_extra"><div class="gmail_extra"><i></Host></i></div></div></blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">But it fails in following code for the wildcard case:</div><div class="gmail_extra">samlsp::ServiceProvider::doAuthentication</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">281<span class="" style="white-space:pre">        </span>        if ((!requireSession.first || !requireSession.second) && !requireSessionWith.first &&</div><div class="gmail_extra"><div class="gmail_extra">  (!authType.first || m_authTypes.find(boost::to_lower_copy(string(authType.second))) == m_authTypes.end()))</div><div class="gmail_extra">283             return make_pair(true, request.returnDecline());</div><div class="gmail_extra"><br></div></div><div class="gmail_extra">(gdb) p authType.first</div><div class="gmail_extra">$10 = false</div><div class="gmail_extra">(gdb) p requireSession</div><div class="gmail_extra">$11 = {first = false, second = false}</div><div class="gmail_extra"><br></div><div class="gmail_extra">Can somebody let me know the way to fix it ?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks in advance !!</div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Amit</div></div></div>