<div dir="auto">Thanks Rod and Peter.<div dir="auto"><br></div><div dir="auto">Please my apologies for incomplete description.<br><div dir="auto"><br></div><div dir="auto">Sure I will keep in mind everything that you guys advised.</div><div dir="auto"><br></div><div dir="auto">Thanks a lot.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 Nov 2017 19:29, "Peter Schober" <<a href="mailto:peter.schober@univie.ac.at">peter.schober@univie.ac.at</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Santu Ghosh <<a href="mailto:mon.snahasish@gmail.com">mon.snahasish@gmail.com</a>> [2017-11-24 13:35]:<br>
<div class="quoted-text">> To do this I have done in :<br>
><br>
> 1) attribute-resolver-full.xml<br>
</div>[...]<br>
> 2) attribute-resolver-ldap.xml<br>
<br>
None of these files are being used by the IDP by default, only<br>
attribute-resolver.xml is. The files you changed are merely examples<br>
(none of which you are following, so this is doubly useless).<br>
<div class="quoted-text"><br>
> <AttributeDefinition xsi:type="Mapped" id="AREA"><br>
> <DefaultValue>USA</<wbr>DefaultValue><br>
> <ValueMap><br>
> <ReturnValue>USA</ReturnValue><br>
> <SourceValue>USA</SourceValue><br>
> </ValueMap><br>
<br>
</div>What should mapping "USA" to "USA" accomplish?<br>
<div class="quoted-text"><br>
> <AttributeDefinition xsi:type="Simple" id="AREA"><br>
> <DefaultValue>USA</<wbr>DefaultValue><br>
> <ValueMap><br>
> <ReturnValue>USA</ReturnValue><br>
> <SourceValue>USA</SourceValue><br>
> </ValueMap><br>
<br>
</div>Obviously (?) a "Simple" attribute defintion is not a mapped attribute<br>
defintion and therefore cannot have a ValueMap.<br>
<br>
Nothing you're doing here makes any sense. If the existing<br>
documentation doesn't help you can ask specific questions about parts<br>
that are unclear.<br>
<div class="quoted-text"><br>
> 3) ldap.properties<br>
><br>
> idp.attribute.resolver.LDAP.<wbr>returnAttributes = ou,uid,mail,surname,realm<br>
<br>
</div>The fact that you limit your default LDAP query to these attributes<br>
does not influence anything you're doing above. So this is immaterial<br>
unless you (later) want to generate something based on data from LDAP.<br>
<div class="quoted-text"><br>
> 4) global.xml<br>
><br>
> <bean id="abc" class="java.lang.String"><br>
> <constructor-arg value="USA"/><br>
> </bean><br>
><br>
> <bean id="AREA" class="java.lang.String"><br>
> <constructor-arg value="USA"/><br>
> </bean><br>
<br>
</div>Could you point out the documentattion that suggests this?<br>
<br>
To answer the (not asked) question of how to produce an attribute with a<br>
static string as its value:<br>
<br>
* You define a "Static" data connector that has an Attribute as child<br>
element, with an id of your choice, and a Value child element with<br>
the static string value.<br>
<br>
* You define a "Simple" attribute with a uniquie id and the<br>
sourceAttributeID set to the id of the attribute you defined in the<br>
Data COnnector. Also add a Dependency element to reference the data<br>
connector.<br>
<br>
To release the attribute you write a filter rule referencing the id of<br>
the attribute you dedined, as always.<br>
<div class="quoted-text"><br>
> but above setting ends with an error.<br>
<br>
</div>No doubt. But for the future you'll also need to be specific and<br>
provide the error message. We do not have access to your system (nor<br>
do we want to) and most of us here are not clairvoyant.<br>
<font color="#888888"><br>
-peter<br>
</font><div class="elided-text">--<br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/<wbr>confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.<wbr>net</a><br>
</div></blockquote></div><br></div>