[prev in list] [next in list] [prev in thread] [next in thread] 

List:       shibboleth-users
Subject:    Re: caseSensitive not working in Mapped AttributeDefinition!
From:       Mohamed Lrhazi via users <users () shibboleth ! net>
Date:       2023-03-20 16:46:23
Message-ID: CAOm-VQ5mBg6mBMjv921QY8fmnwisTHiCQYyo8qGi6BVyfumSOg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Oh, I see in the docs:

Setting the caseSensitive attribute (default true) to false allows case
insensitive comparisons to be made. This is only valid for regular
expression matching (i.e., when partialMatch is false).


On Mon, Mar 20, 2023 at 12:22 PM Mohamed Lrhazi <lrhazi@cua.edu> wrote:

> Hello,
>
> I am trying to figure out what I am doing wrong... if x_department is
> TS_OPS, should this not map to true?
>
> In the log I see:
>
> Attribute Definition isLawMember: mapped dependency attribute value TS_OPS
> to the values [StringAttributeValue{value=false}]
> Attribute Definition isLawMember: mapping dependency attribute value TS_OPS
> Attribute Definition 'isLawMember': Attempting to map the following
> values: [StringAttributeValue{value=TS_OPS}]
>
> and the definition is:
>
> <AttributeDefinition id="isLawMember" xsi:type="Mapped">
>         <InputAttributeDefinition ref="x_department" />
>         <DefaultValue>false</DefaultValue>
>         <ValueMap>
>             <ReturnValue>true</ReturnValue>
>             <SourceValue partialMatch="true"
> caseSensitive="false">law</SourceValue>
>             <SourceValue partialMatch="true"
> caseSensitive="false">law_school</SourceValue>
>             <SourceValue partialMatch="true"
> caseSensitive="false">law_ccls</SourceValue>
>             <SourceValue partialMatch="true"
> caseSensitive="false">law_librry</SourceValue>
>             <SourceValue partialMatch="true"
> caseSensitive="false">ops</SourceValue>
>         </ValueMap>
>         <AttributeEncoder xsi:type="SAML1String"
> name="urn:mace:dir:attribute-def:isLawMember"
>             encodeType="false" />
>         <AttributeEncoder xsi:type="SAML2String" name="isLawMember"
> friendlyName="isLawMember"
>             encodeType="false" />
>     </AttributeDefinition>
>
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Oh, I see in the docs:<div><br></div><div><span \
style="color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe \
UI&quot;,Roboto,Oxygen,Ubuntu,&quot;Fira Sans&quot;,&quot;Droid \
Sans&quot;,&quot;Helvetica \
Neue&quot;,sans-serif;font-size:16px;letter-spacing:-0.08px;white-space:pre-wrap;background-color:rgba(255,255,255,0.6)">Setting \
the </span><code class="gmail-code gmail-css-z5oxh7" \
style="font-family:SFMono-Medium,&quot;SF Mono&quot;,&quot;Segoe UI \
Mono&quot;,&quot;Roboto Mono&quot;,&quot;Ubuntu \
Mono&quot;,Menlo,Consolas,Courier,monospace;font-size:0.875em;color:rgb(23,43,77);border-style:none;border-radius:3px;display:inline;padding:2px \
0.5ch 2px 0.5ch;overflow:auto;white-space:pre-wrap;box-sizing:border-box;letter-spacing:-0.08px">caseSensitive</code><span \
style="color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe \
UI&quot;,Roboto,Oxygen,Ubuntu,&quot;Fira Sans&quot;,&quot;Droid \
Sans&quot;,&quot;Helvetica \
Neue&quot;,sans-serif;font-size:16px;letter-spacing:-0.08px;white-space:pre-wrap;background-color:rgba(255,255,255,0.6)"> \
attribute (default true) to false allows case insensitive comparisons to be made. \
This is only valid for regular expression matching (i.e., when  </span><code \
class="gmail-code gmail-css-z5oxh7" style="font-family:SFMono-Medium,&quot;SF \
Mono&quot;,&quot;Segoe UI Mono&quot;,&quot;Roboto Mono&quot;,&quot;Ubuntu \
Mono&quot;,Menlo,Consolas,Courier,monospace;font-size:0.875em;color:rgb(23,43,77);border-style:none;border-radius:3px;display:inline;padding:2px \
0.5ch 2px 0.5ch;overflow:auto;white-space:pre-wrap;box-sizing:border-box;letter-spacing:-0.08px">partialMatch</code><span \
style="color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe \
UI&quot;,Roboto,Oxygen,Ubuntu,&quot;Fira Sans&quot;,&quot;Droid \
Sans&quot;,&quot;Helvetica \
Neue&quot;,sans-serif;font-size:16px;letter-spacing:-0.08px;white-space:pre-wrap;background-color:rgba(255,255,255,0.6)"> \
is false).</span><br></div><div><br></div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Mon, Mar 20, 2023 at 12:22 PM Mohamed Lrhazi &lt;<a \
href="mailto:lrhazi@cua.edu">lrhazi@cua.edu</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am \
trying to figure out what I am doing  wrong... if x_department is TS_OPS, should this \
not map to true?</div><div><br></div><div>In the log I \
see:</div><div><br></div><div><div \
style="color:rgb(0,0,0);font-family:Consolas,&quot;Courier \
New&quot;,monospace;font-size:14px;line-height:19px;white-space:pre-wrap"><div>Attribute \
Definition isLawMember: mapped dependency attribute value TS_OPS to the values \
[StringAttributeValue{<span \
style="color:rgb(0,0,255)">value</span>=false}]</div><div>Attribute Definition \
isLawMember: mapping dependency attribute value TS_OPS</div><div>Attribute Definition \
<span style="color:rgb(163,21,21)">&#39;isLawMember&#39;</span>: Attempting to map \
the following values: [StringAttributeValue{<span \
style="color:rgb(0,0,255)">value</span>=TS_OPS}]</div><div><br></div></div></div><div>and \
the definition  is:<br><div><br></div><div>&lt;AttributeDefinition \
id=&quot;isLawMember&quot; xsi:type=&quot;Mapped&quot;&gt;<br>            \
&lt;InputAttributeDefinition ref=&quot;x_department&quot; /&gt;<br>            \
&lt;DefaultValue&gt;false&lt;/DefaultValue&gt;<br>            &lt;ValueMap&gt;<br>    \
&lt;ReturnValue&gt;true&lt;/ReturnValue&gt;<br>                  &lt;SourceValue \
partialMatch=&quot;true&quot; \
caseSensitive=&quot;false&quot;&gt;law&lt;/SourceValue&gt;<br>                  \
&lt;SourceValue partialMatch=&quot;true&quot; \
caseSensitive=&quot;false&quot;&gt;law_school&lt;/SourceValue&gt;<br>                 \
&lt;SourceValue partialMatch=&quot;true&quot; \
caseSensitive=&quot;false&quot;&gt;law_ccls&lt;/SourceValue&gt;<br>                  \
&lt;SourceValue partialMatch=&quot;true&quot; \
caseSensitive=&quot;false&quot;&gt;law_librry&lt;/SourceValue&gt;<br>                 \
&lt;SourceValue partialMatch=&quot;true&quot; \
caseSensitive=&quot;false&quot;&gt;ops&lt;/SourceValue&gt;<br>            \
&lt;/ValueMap&gt;<br>            &lt;AttributeEncoder \
xsi:type=&quot;SAML1String&quot; \
name=&quot;urn:mace:dir:attribute-def:isLawMember&quot;<br>                  \
encodeType=&quot;false&quot; /&gt;<br>            &lt;AttributeEncoder \
xsi:type=&quot;SAML2String&quot; name=&quot;isLawMember&quot; \
friendlyName=&quot;isLawMember&quot;<br>                  \
encodeType=&quot;false&quot; /&gt;<br>      \
&lt;/AttributeDefinition&gt;<br></div><div><br></div><div><br></div></div></div> \
</blockquote></div>



-- 
For Consortium Member technical support, see https://shibboleth.atlassian.net/wiki/x/ZYEpPw
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic