[midPoint] Hook: detect change Password

Marco Benucci m.benucci at nsr.it
Mon Nov 27 17:18:37 CET 2017


Hi,

I'm running midPoint 3.6 and I'm playing with hooks.

I'd like to detect when an user has changed his/her password using hooks 
and I have tried this without luck:

delta = ObjectDelta.summarize(modelContext.getPrimaryChanges());
QName pwdName = new 
QName("http://midpoint.evolveum.com/xml/ns/public/common/common-3", 
"credentials/password/value");
ItemPath pwdPath = new ItemPath(pwdName);
if(delta.hasItemDelta(pwdPath)){
     println("user has changed the password");
}


Is there a better way to do this..?

Thank you.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20171127/54afb442/attachment.htm>


More information about the midPoint mailing list