[midPoint] Filter not working but the other does

Jason Everling jeverling at bshp.edu
Tue Oct 13 02:39:23 CEST 2015


Ok, I will set debug on to full and then run a test enable/disable with the
filters. I am out all week at a conference so next week I should have to
data,

As for the Reconcile task disabling users, I went ahead and added,

         <activation>
            <administrativeStatus>
               <inbound>
                  <strength>weak</strength>
                  <expression>
                     <value>enabled</value>
                  </expression>
               </inbound>
            </administrativeStatus>
         </activation>

Directly onto the resource object, I didn't have any mapping defined for
this resource since it is really not needed, so hopefully this will keep
the recon task/resource from taking any activation action. I set it a few
days ago and so far I haven't has any falsely disabled accounts. I also set
full account notifications on to me so I can keep track every change made
to user to see if it works.

Thanks!
JASON

On Mon, Oct 12, 2015 at 3:47 PM, Pavol Mederly <mederly at evolveum.com> wrote:

> Hello Jason,
>
> sorry for the delay. Today I had a look at your problem again, but ...
> just don't know.
>
> I could diagnose the problem from detailed logs, if it would be possible
> to take them.
> E.g. by reconciling one particular user (from GUI), with model logs set to
> TRACE.
>
> And, as for the filtering problem below ... again, sorry, no idea (yet). I
> think that == and != operators work in groovy just fine. Maybe some logging
> instructions that you'd put into your scripts could help...
>
> Best regards,
> Pavol
>
> This below does not work
>
>      event.isRelatedToItem(new
> com.evolveum.midpoint.prism.path.ItemPath("activation",
> "administrativeStatus")) &&
>                     requestee.getOrganization().size() == 1 &&
>                     requestee.getOrganization().get(0).getOrig() !=
> 'OU=DISABLED,OU=Dept,OU=Users,DC=Test,DC=Local' &&
> basic.getExtensionPropertyValue(requestee, 'http://www.bshp.edu/test/bshp',
> 'eduPersonAffiliation') == 'student'
>
>
> But this one does
>
>      event.isRelatedToItem(new
> com.evolveum.midpoint.prism.path.ItemPath("activation",
> "administrativeStatus")) &&
>                     requestee.getOrganization().size() == 1 &&
>                     requestee.getOrganization().get(0).getOrig() ==
> 'OU=DISABLED,OU=Dept,OU=Users,DC=Test,DC=Local' &&
> basic.getExtensionPropertyValue(requestee, 'http://www.bshp.edu/test/bshp',
> 'eduPersonAffiliation') == 'student'
>
> All I changed was the == to != which I assumed would work as a does not
> match
>
> --
> JASON
>
>
>
> CONFIDENTIALITY NOTICE:
> This e-mail together with any attachments is proprietary and confidential;
> intended for only the recipient(s) named above and may contain information
> that is privileged. You should not retain, copy or use this e-mail or any
> attachments for any purpose, or disclose all or any part of the contents to
> any person. Any views or opinions expressed in this e-mail are those of the
> author and do not represent those of the Baptist School of Health
> Professions. If you have received this e-mail in error, or are not the
> named recipient(s), you are hereby notified that any review, dissemination,
> distribution or copying of this communication is prohibited by the sender
> and to do so might constitute a violation of the Electronic Communications
> Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the
> sender and delete this e-mail and any attachments from your computer.
>
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>


-- 
JASON

-- 


CONFIDENTIALITY NOTICE:
This e-mail together with any attachments is proprietary and confidential; 
intended for only the recipient(s) named above and may contain information 
that is privileged. You should not retain, copy or use this e-mail or any 
attachments for any purpose, or disclose all or any part of the contents to 
any person. Any views or opinions expressed in this e-mail are those of the 
author and do not represent those of the Baptist School of Health 
Professions. If you have received this e-mail in error, or are not the 
named recipient(s), you are hereby notified that any review, dissemination, 
distribution or copying of this communication is prohibited by the sender 
and to do so might constitute a violation of the Electronic Communications 
Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the 
sender and delete this e-mail and any attachments from your computer. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20151012/a196da83/attachment.htm>


More information about the midPoint mailing list