<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 <<a href="mailto:yaowen.tu@gmail.com">yaowen.tu@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>Shibboleth Users <<a href="mailto:users@shibboleth.net">users@shibboleth.net</a>><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 <<a href="mailto:users@shibboleth.net">users@shibboleth.net</a>><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">
<<a href="mailto:yaowen.tu@gmail.com" target="_blank">yaowen.tu@gmail.com</a>></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">
<<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></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, "Yaowen Tu" <<a href="mailto:yaowen.tu@gmail.com" target="_blank">yaowen.tu@gmail.com</a>> wrote:<br>
<br>
>So how can I change the source code to support some kinds of place holder<br>
>like:<br>
><br>
><srv:Service id="shibboleth.RelyingPartyConfigurationManager"<br>
>xsi:type="relyingParty:SAMLMDRelyingPartyConfigurationManager"<br>
><br>
> depends-on="shibboleth.SAML1AttributeAuthority<br>
>shibboleth.SAML2AttributeAuthority"><br>
> <srv:ConfigurationResource<br>
>file="$IDP_CONIFG_HOME$/idp/relying-party.xml"<br>
>xsi:type="resource:FilesystemResource"/><br>
> </srv:Service><br>
><br>
><br>
>When we launch IdP, we make sure IDP_CONFIG_HOME has been set to<br>
>environment variables. Then in the IdP code, I resolve $IDP_CONIFG_HOME$<br>
>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>