<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Yaowen,</div>
<div><br>
</div>
<div>Got to wiki.shibboleth.net and follow the menus to find the information on writing plugins. That same information will guide on where you could choose to modify the existing source code.</div>
<div><br>
</div>
<div>I would strongly recommend writing a plugin. You'll do more work, but you will only do it once, rather that for every release.</div>
<div><br>
</div>
<div>Paul</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Yaowen Tu &lt;<a href="mailto:yaowen.tu@gmail.com">yaowen.tu@gmail.com</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>Shibboleth Users &lt;<a href="mailto:users@shibboleth.net">users@shibboleth.net</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Tuesday, July 23, 2013 8:21 PM<br>
<span style="font-weight:bold">To: </span>Shibboleth Users &lt;<a href="mailto:users@shibboleth.net">users@shibboleth.net</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: How to change relying-party.xml config location dynamically<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>I hope it is better to change the source code directly, because most likely it will be a generic place, once I change it, the same place holder can be applied to any ConfigurationResource values that defined in other places.<br>
<br>
</div>
So can anyone give me some hint about where it is?<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>Yaowen</div>
<br>
<br>
<div class="gmail_quote">On Tue, Jul 23, 2013 at 5:01 PM, Yaowen Tu <span dir="ltr">
&lt;<a href="mailto:yaowen.tu@gmail.com" target="_blank">yaowen.tu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thanks a lot Scott. Can you give me some more details about the plugins? Where is the sample code that I should look at? Any documents?<span class="HOEnZb"><font color="#888888"><br>
</font></span></div>
<div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all">
<div>Yaowen</div>
</font></span>
<div>
<div class="h5"><br>
<br>
<div class="gmail_quote">On Tue, Jul 23, 2013 at 4:43 PM, Cantor, Scott <span dir="ltr">
&lt;<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 7/23/13 7:35 PM, &quot;Yaowen Tu&quot; &lt;<a href="mailto:yaowen.tu@gmail.com" target="_blank">yaowen.tu@gmail.com</a>&gt; wrote:<br>
<br>
&gt;So how can I change the source code to support some kinds of place holder<br>
&gt;like:<br>
&gt;<br>
&gt;&lt;srv:Service id=&quot;shibboleth.RelyingPartyConfigurationManager&quot;<br>
&gt;xsi:type=&quot;relyingParty:SAMLMDRelyingPartyConfigurationManager&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; depends-on=&quot;shibboleth.SAML1AttributeAuthority<br>
&gt;shibboleth.SAML2AttributeAuthority&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;srv:ConfigurationResource<br>
&gt;file=&quot;$IDP_CONIFG_HOME$/idp/relying-party.xml&quot;<br>
&gt;xsi:type=&quot;resource:FilesystemResource&quot;/&gt;<br>
&gt; &nbsp; &nbsp;&lt;/srv:Service&gt;<br>
&gt;<br>
&gt;<br>
&gt;When we launch IdP, we make sure IDP_CONFIG_HOME has been set to<br>
&gt;environment variables. Then in the IdP code, I resolve $IDP_CONIFG_HOME$<br>
&gt;to translate to the real path.<br>
<br>
</div>
I don't recall what code handles the Service schema, but the<br>
ConfigurationResource piece is pluggable. Writing an extension with a new<br>
resource type would work. The existing ones are in shibboleth-common.<br>
<br>
-- Scott<br>
<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">
users-unsubscribe@shibboleth.net</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>