Anonymous_User Absent Member.
Absent Member.
435 views

Validator - Case sensivity


Hi,
Does anybody know how to make Validator to check value of attribute case
sensitively? In my test scenario I used Action "Assert Attributes and
Values Equals" and "Assert Attributes and Values Contains" with "Use
RegEx" on but still doesn't work. Any ideas?

Thanks,
Marcin


--
mbanach_atos
------------------------------------------------------------------------
mbanach_atos's Profile: https://forums.netiq.com/member.php?userid=4000
View this thread: https://forums.netiq.com/showthread.php?t=49941

Labels (1)
0 Likes
3 Replies
Knowledge Partner
Knowledge Partner

Re: Validator - Case sensivity

mbanach atos wrote:

> Does anybody know how to make Validator to check value of attribute case
> sensitively? In my test scenario I used Action "Assert Attributes and
> Values Equals" and "Assert Attributes and Values Contains" with "Use
> RegEx" on but still doesn't work. Any ideas?


I think "equals" let's the directory do the compare depending on it's syntax.
So if you work with a case-insensitive string syntax, that's what you get.

Regex might be case-insensitive by default (as it is in IDM), but you can
enforce case-sensitivity by prepending the processing instruction (?-i) to the
regex expression. So '(?-i)[abc]*' will match 'abc', 'Abc' and 'ABC'. You can
also turn on /off case-sensitivity midway through the expression (use '(?i)' to
turn off case sentivity).
______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Validator - Case sensivity


lhaeger;240358 Wrote:
> mbanach atos wrote:
>
> > Does anybody know how to make Validator to check value of attribute

> case
> > sensitively? In my test scenario I used Action "Assert Attributes and
> > Values Equals" and "Assert Attributes and Values Contains" with "Use
> > RegEx" on but still doesn't work. Any ideas?

>
> I think "equals" let's the directory do the compare depending on it's
> syntax.
> So if you work with a case-insensitive string syntax, that's what you
> get.
>
> Regex might be case-insensitive by default (as it is in IDM), but you
> can
> enforce case-sensitivity by prepending the processing instruction (?-i)
> to the
> regex expression. So '(?-i)[abc]*' will match 'abc', 'Abc' and 'ABC'.
> You can
> also turn on /off case-sensitivity midway through the expression (use
> '(?i)' to
> turn off case sentivity).



In fact regex '(?-i)xyz' works but not directly in "Assert Attributes
and Values Contains". I assigned attribute taken from IDV to another
variable and then compared them in: "Generic Actions->Assert Variable
Contains"


--
mbanach_atos
------------------------------------------------------------------------
mbanach_atos's Profile: https://forums.netiq.com/member.php?userid=4000
View this thread: https://forums.netiq.com/showthread.php?t=49941

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Validator - Case sensivity


mbanach_atos;240467 Wrote:
> In fact regex '(?-i)xyz' works but not directly in "Assert Attributes
> and Values Contains". I assigned attribute taken from IDV to another
> variable and then compared them in: "Generic Actions->Assert Variable
> Contains"



Try to remove them from the Variable and place the logic in the test and
see if the results change.

Steven


--
stharp
------------------------------------------------------------------------
stharp's Profile: https://forums.netiq.com/member.php?userid=2709
View this thread: https://forums.netiq.com/showthread.php?t=49941

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.