<div dir="ltr">Hi,<div><br></div><div>are you done with this?</div><div><a href="https://wiki.evolveum.com/display/midPoint/Reset+Password+Configuration#ResetPasswordConfiguration-EnablingResetPassword">https://wiki.evolveum.com/display/midPoint/Reset+Password+Configuration#ResetPasswordConfiguration-EnablingResetPassword</a><br></div><div><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:14px">To enable reset password feature, it is needed to configure it in security policy referenced from system configuration.</span><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">best regards,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Gustav</div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-07 19:06 GMT+01:00 Peter Healy <span dir="ltr"><<a href="mailto:phealy3330@gmail.com" target="_blank">phealy3330@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Gustav, I don't see the forgot password link on the login page at "midpoint/login?0"<div>Where should I check to make this link active? Is there another step I have to take?</div><div><br></div><div>Thanks,</div><div>Peter<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Mar 6, 2017 at 11:27 PM,  <span dir="ltr"><<a href="mailto:midpoint-request@lists.evolveum.com" target="_blank">midpoint-request@lists.<wbr>evolveum.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">Send midPoint mailing list submissions to<br>
        <a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:midpoint-request@lists.evolveum.com" target="_blank">midpoint-request@lists.evolveu<wbr>m.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:midpoint-owner@lists.evolveum.com" target="_blank">midpoint-owner@lists.evolveum.<wbr>com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of midPoint digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Password Reset Email Notifier Configuration (Pálos Gustáv)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br></span>
Date: Tue, 7 Mar 2017 05:26:43 +0100<span class=""><br>
From: Pálos Gustáv <<a href="mailto:gustav.palos@evolveum.com" target="_blank">gustav.palos@evolveum.com</a>><br>
To: midPoint General Discussion <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br>
Subject: Re: [midPoint] Password Reset Email Notifier Configuration<br>
Message-ID:<br></span>
        <CAPXQVkfi2=<a href="mailto:rVEu4VtKZJFaJMAJ4psGzyrpruz3vfJ2-EKeYAKw@mail.gmail.com" target="_blank">rVEu4VtKZJFaJMAJ4p<wbr>sGzyrpruz3vfJ2-EKeYAKw@mail.gm<wbr>ail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br><div><div class="h5">
Hi Peter,<br>
<br>
on login page you can now see "Forgot Password" link.<br>
<br>
Best regards,<br>
<br>
Gustav<br>
<br>
2017-03-06 23:55 GMT+01:00 Peter Healy <<a href="mailto:phealy3330@gmail.com" target="_blank">phealy3330@gmail.com</a>>:<br>
<br>
> Thanks Gustav, I put the notifier in as you described and it appears to<br>
> have saved OK.<br>
> Now that the notifier is there how can I allow users to actually reset<br>
> passwords via email? Is there a URL I can give them to visit?<br>
><br>
> Thanks again,<br>
> Peter<br>
><br>
> On Mon, Mar 6, 2017 at 4:35 PM, <<a href="mailto:midpoint-request@lists.evolveum.com" target="_blank">midpoint-request@lists.evolve<wbr>um.com</a>><br>
> wrote:<br>
><br>
>> Send midPoint mailing list submissions to<br>
>>         <a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a><br>
>><br>
>> To subscribe or unsubscribe via the World Wide Web, visit<br>
>>         <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mai<wbr>lman/listinfo/midpoint</a><br>
>> or, via email, send a message with subject or body 'help' to<br>
>>         <a href="mailto:midpoint-request@lists.evolveum.com" target="_blank">midpoint-request@lists.evolve<wbr>um.com</a><br>
>><br>
>> You can reach the person managing the list at<br>
>>         <a href="mailto:midpoint-owner@lists.evolveum.com" target="_blank">midpoint-owner@lists.<wbr>evolveum.com</a><br>
>><br>
>> When replying, please edit your Subject line so it is more specific<br>
>> than "Re: Contents of midPoint digest..."<br>
>><br>
>><br>
>> Today's Topics:<br>
>><br>
>>    1. Re: Password Reset Email Notifier Configuration (Pálos Gustáv)<br>
>><br>
>><br>
>> ------------------------------<wbr>------------------------------<wbr>----------<br>
>><br>
>> Message: 1<br>
>> Date: Mon, 6 Mar 2017 22:35:10 +0100<br>
>> From: Pálos Gustáv <<a href="mailto:gustav.palos@evolveum.com" target="_blank">gustav.palos@evolveum.com</a>><br>
>> To: midPoint General Discussion <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br>
>> Subject: Re: [midPoint] Password Reset Email Notifier Configuration<br>
>> Message-ID:<br>
>>         <CAPXQVkeypuuT6rbU-G7X57GWGXJ<wbr>AD+viqN7AC9F-SkqV0hoLXA@mail.<br></div></div><div><div class="h5">
>> <a href="http://gmail.com" rel="noreferrer" target="_blank">gmail.com</a>><br>
>> Content-Type: text/plain; charset="utf-8"<br>
>><br>
>><br>
>> you need not to import, but edit configuration --> repository objects --><br>
>> system configuration --><br>
>> find section <notificationConfiguration> and put here:<br>
>>   <handler><br>
>>          <simpleUserNotifier><br>
>>   .....<br>
>>          </simpleUserNotifier><br>
>>   </handler><br>
>><br>
>> and please also read & use this:<br>
>> <a href="https://wiki.evolveum.com/display/midPoint/Configuring+notifications" rel="noreferrer" target="_blank">https://wiki.evolveum.com/disp<wbr>lay/midPoint/Configuring+notif<wbr>ications</a><br>
>><br>
>> You can start with redirecting e-mail to file over redirectToFile<br>
>><br>
>> best regards,<br>
>><br>
>> Gustav<br>
>><br>
>> 2017-03-06 22:29 GMT+01:00 Peter Healy <<a href="mailto:phealy3330@gmail.com" target="_blank">phealy3330@gmail.com</a>>:<br>
>><br>
>> > Hi Gustav,<br>
>> > I have<br>
>> > Version 3.5<br>
>> > Git describe git-v3.5<br>
>> > Build at Wed, 21 Dec 2016 14:01:34 +0000<br>
>> ><br>
>> > I copied and pasted verbatim from the wiki page into the embedded editor<br>
>> > or the Import Object GUI page, I don't get any output from idm.log but<br>
>> I do<br>
>> > get this in catalina.out:<br>
>> > ==> catalina.out <==<br>
>> > java.lang.ClassCastException<br>
>> ><br>
>> > And the error in the GUI has changed to "Object validation failed (no<br>
>> > reason given)"<br>
>> ><br>
>> > On Mon, Mar 6, 2017 at 3:31 PM, <<a href="mailto:midpoint-request@lists.evolveum.com" target="_blank">midpoint-request@lists.evolve<wbr>um.com</a>><br>
>> > wrote:<br>
>> ><br>
>> >> Send midPoint mailing list submissions to<br>
>> >>         <a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a><br>
>> >><br>
>> >> To subscribe or unsubscribe via the World Wide Web, visit<br>
>> >>         <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mai<wbr>lman/listinfo/midpoint</a><br>
>> >> or, via email, send a message with subject or body 'help' to<br>
>> >>         <a href="mailto:midpoint-request@lists.evolveum.com" target="_blank">midpoint-request@lists.evolve<wbr>um.com</a><br>
>> >><br>
>> >> You can reach the person managing the list at<br>
>> >>         <a href="mailto:midpoint-owner@lists.evolveum.com" target="_blank">midpoint-owner@lists.<wbr>evolveum.com</a><br>
>> >><br>
>> >> When replying, please edit your Subject line so it is more specific<br>
>> >> than "Re: Contents of midPoint digest..."<br>
>> >><br>
>> >><br>
>> >> Today's Topics:<br>
>> >><br>
>> >>    1. JMS based workflow configuration (Prabhakara Rao Doddapaneni)<br>
>> >>    2. Password Reset Email Notifier Configuration (Peter Healy)<br>
>> >>    3. Re: Password Reset Email Notifier Configuration (Pálos Gustáv)<br>
>> >><br>
>> >><br>
>> >> ------------------------------<wbr>------------------------------<wbr>----------<br>
>> >><br>
>> >> Message: 1<br>
>> >> Date: Mon, 6 Mar 2017 19:30:26 +0000 (UTC)<br>
>> >> From: Prabhakara Rao Doddapaneni <<a href="mailto:dp_rao@yahoo.com" target="_blank">dp_rao@yahoo.com</a>><br>
>> >> To: "<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>" <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br>
>> >> Subject: [midPoint] JMS based workflow configuration<br>
>> >> Message-ID: <<a href="mailto:1001644321.2237664.1488828626312@mail.yahoo.com" target="_blank">1001644321.2237664.1488828626<wbr>312@mail.yahoo.com</a>><br>
>> >> Content-Type: text/plain; charset="utf-8"<br>
>> >><br>
>> >> One of my resources cannot be configured to respond to sync poll.  I<br>
>> plan<br>
>> >> to send a message in JMS Q so that midpoint can listen to that message<br>
>> and<br>
>> >> reconcile/add the user into repository.  What is the ideal solution to<br>
>> >> achieve this?  has anybody come across this situation?<br>
>> >> Thanks,Prabhakar.<br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<a href="http://lists.evolveum.com/pipermail/midpoint/attachments/" rel="noreferrer" target="_blank">http://lists.evolveum.com/pip<wbr>ermail/midpoint/attachments/</a><br>
>> >> 20170306/a715dd11/attachment-0<wbr>001.html><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 2<br>
>> >> Date: Mon, 6 Mar 2017 15:24:27 -0500<br>
>> >> From: Peter Healy <<a href="mailto:phealy3330@gmail.com" target="_blank">phealy3330@gmail.com</a>><br>
>> >> To: <a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a><br>
>> >> Subject: [midPoint] Password Reset Email Notifier Configuration<br>
>> >> Message-ID:<br>
>> >>         <CADnbc=wtq+Suhc6LUG-r04OppN4<wbr>AQshDzgk5wGNf7MScsvzbTQ@mail.<br>
>> >> <a href="http://gmail.com" rel="noreferrer" target="_blank">gmail.com</a>><br>
>> >> Content-Type: text/plain; charset="utf-8"<br>
>> >><br>
>> >><br>
>> >> I am trying to implement:<br>
>> >> <a href="https://wiki.evolveum.com/display/midPoint/Reset+Password+" rel="noreferrer" target="_blank">https://wiki.evolveum.com/disp<wbr>lay/midPoint/Reset+Password+</a><br>
>> Configuration<br>
>> >><br>
>> >> But I get an error importing the Simple User Notifier XML object that<br>
>> is<br>
>> >> in<br>
>> >> the wiki page:<br>
>> >><br>
>> >> <a href="http://com.evolveum.midpoint.prism.Pr">com.evolveum.midpoint.prism.Pr</a><wbr>ismProperty cannot be cast to<br>
>> >> <a href="http://com.evolveum.midpoint.prism.Pr">com.evolveum.midpoint.prism.Pr</a><wbr>ismObject<br>
>> >><br>
>> >><br>
>> >> I created and successfully imported this Mail Nonce Policy:<br>
>> >> <valuePolicy xmlns="<br>
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/common/common-3</a>"<br>
>> >>              xmlns:q="<a href="http://prism.evolveum.com/xml/ns/public/query-3" rel="noreferrer" target="_blank">http://prism.evolveum<wbr>.com/xml/ns/public/query-3</a>"<br>
>> >>              xmlns:c="<br>
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/common/common-3</a>"<br>
>> >>              xmlns:t="<a href="http://prism.evolveum.com/xml/ns/public/types-3" rel="noreferrer" target="_blank">http://prism.evolveum<wbr>.com/xml/ns/public/types-3</a>"<br>
>> >>              xmlns:icfs="<br>
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/r" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/connector/icf-1/r</a><br>
>> >> esource-schema-3<br>
>> >> "<br>
>> >>              xmlns:ri="<br>
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/resource/instance<wbr>-3</a>"<br>
>> >>              oid="c0c8a80d-1818-42d1-b3ad-e<wbr>7f8993593a0"<br>
>> >>              version="0"><br>
>> >>    <name>Mail Nonce Policy</name><br>
>> >>    <description>Mail Nonce Policy</description><br>
>> >>    <metadata><br>
>> >>       <createTimestamp>2017-03-06T1<wbr>9:56:44.233Z</createTimestamp><br>
>> >>       <creatorRef oid="00000000-0000-0000-0000-0<wbr>00000000002"<br>
>> >> type="c:UserType"><!-- administrator --></creatorRef><br>
>> >>       <createChannel><br></div></div><span class="">
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/model/channels-3#</a><br>
>> objectImport<br>
>> >> </createChannel><br>
>> >>    </metadata><br>
>> >>    <lifetime><br></span><div><div class="h5">
>> >>       <expiration>999</expiration><br>
>> >>       <warnBeforeExpiration>9</warn<wbr>BeforeExpiration><br>
>> >>       <lockAfterExpiration>0</lockA<wbr>fterExpiration><br>
>> >>       <minPasswordAge>0</minPasswor<wbr>dAge><br>
>> >>       <passwordHistoryLength>0</pas<wbr>swordHistoryLength><br>
>> >>    </lifetime><br>
>> >>    <stringPolicy><br>
>> >>       <description>Testing string policy</description><br>
>> >>       <limitations><br>
>> >>          <minLength>20</minLength><br>
>> >>          <maxLength>20</maxLength><br>
>> >>          <minUniqueChars>3</minUniqueCh<wbr>ars><br>
>> >>          <limit><br>
>> >>             <description>Alphas</descript<wbr>ion><br>
>> >>             <minOccurs>1</minOccurs><br>
>> >>             <mustBeFirst>false</mustBeFir<wbr>st><br>
>> >>             <characterClass><br>
>> >><br>
>> >>  <value>abcdefghijklmnopqrstuvw<wbr>xyzABCDEFGHIJKLMNOPQRSTUVWXYZ<<wbr>/value><br>
>> >>             </characterClass><br>
>> >>          </limit><br>
>> >>          <limit><br>
>> >>             <description>Numbers</descrip<wbr>tion><br>
>> >>             <minOccurs>1</minOccurs><br>
>> >>             <mustBeFirst>false</mustBeFir<wbr>st><br>
>> >>             <characterClass><br>
>> >>                <value>1234567890</value><br>
>> >>             </characterClass><br>
>> >>          </limit><br>
>> >>       </limitations><br>
>> >>    </stringPolicy><br>
>> >> </valuePolicy><br>
>> >><br>
>> >> And I successfully imported this security policy for the Mail reset:<br>
>> >> <securityPolicy xmlns="<br>
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/common/common-3</a>"<br></div></div><span class="">
>> >>                 xmlns:q="<a href="http://prism.evolveu" rel="noreferrer" target="_blank">http://prism.evolveu</a><br>
>> <a href="http://m.com/xml/ns/public/query-3" rel="noreferrer" target="_blank">m.com/xml/ns/public/query-3</a>"<br>
>> >>                 xmlns:c="<br>
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/common/common-3</a>"<br>
>> >>                 xmlns:t="<a href="http://prism.evolveu" rel="noreferrer" target="_blank">http://prism.evolveu</a><br>
>> <a href="http://m.com/xml/ns/public/types-3" rel="noreferrer" target="_blank">m.com/xml/ns/public/types-3</a>"<br>
>> >>                 xmlns:icfs="<br></span><span class="">
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/r" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/connector/icf-1/r</a><br>
>> >> esource-schema-3<br>
>> >> "<br>
>> >>                 xmlns:ri="<br>
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/resource/instance<wbr>-3</a>"<br>
>> >>                 oid="28bf845a-b107-11e3-85bc-<wbr>001e8c717e5b"<br>
>> >>                 version="19"><br>
>> >>    <name>Mail Reset Security Policy</name><br>
>> >>    <metadata><br>
>> >>       <createTimestamp>2017-02-14T1<wbr>7:10:13.860Z</createTimestamp><br>
>> >>       <creatorRef oid="00000000-0000-0000-0000-0<wbr>00000000002"<br>
>> >> type="c:UserType"><!-- administrator --></creatorRef><br>
>> >>       <createChannel><br></span><span class="">
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/model/channels-3#</a><br>
>> objectImport<br>
>> >> </createChannel><br>
>> >>    </metadata><br>
>> >>    <authentication><br></span><div><div class="h5">
>> >>       <mailAuthentication><br>
>> >>          <name>confirmationLink</name><br>
>> >>          <displayName>Additional mail authnetication</displayName><br>
>> >>          <mailNonce>mailNonce</mailNonc<wbr>e><br>
>> >>       </mailAuthentication><br>
>> >>    </authentication><br>
>> >>    <credentials><br>
>> >>       <nonce><br>
>> >>          <maxAge>PT2M</maxAge><br>
>> >>          <name>mailNonce</name><br>
>> >>          <valuePolicyRef oid="c0c8a80d-1818-42d1-b3ad-e<wbr>7f8993593a0"<br>
>> >> type="c:ValuePolicyType"><!-- Mail Nonce Policy --></valuePolicyRef><br>
>> >>       </nonce><br>
>> >>    </credentials><br>
>> >>    <credentialsReset><br>
>> >>       <mailReset><br>
>> >>          <name>Reset password using mail</name><br>
>> >><br>
>> >>  <additionalAuthenticationName><wbr>confirmationLink</additionalAu<wbr>t<br>
>> >> henticationName><br>
>> >>       </mailReset><br>
>> >>    </credentialsReset><br>
>> >> </securityPolicy><br>
>> >><br>
>> >> This is the Simple User Notifier form the wiki page:<br>
>> >> <simpleUserNotifier><br>
>> >>     <expressionFilter><br>
>> >>         <script><br>
>> >>             <code><br>
>> >>                     import<br>
>> >> com.evolveum.midpoint.notifica<wbr>tions.api.events.ModelEvent<br>
>> >>                     import<br>
>> >> com.evolveum.midpoint.xml.ns._<wbr>public.common.common_3.OrgType<br>
>> >>                     import <a href="http://com.evolveum.midpoint.prism.de" rel="noreferrer" target="_blank">com.evolveum.midpoint.prism.de</a><br>
>> lta.ChangeType<br>
>> >><br>
>> >>                    (event instanceof ModelEvent &amp;&amp;<br>
>> >> event.getChannel().equals("<br></div></div><span class="">
>> >> <a href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#re" rel="noreferrer" target="_blank">http://midpoint.evolveum.com/x<wbr>ml/ns/public/gui/channels-3#re</a><br>
>> setPassword<br>
>> >> "))<br>
>> >>             </code><br>
>> >>         </script><br></span><span class="">
>> >>     </expressionFilter><br>
>> >>     <recipientExpression><br>
>> >>         <script><br>
>> >>             <code>return requestee.getEmailAddress()</c<wbr>ode><br>
>> >>         </script><br>
>> >>     </recipientExpression><br>
>> >>     <bodyExpression><br>
>> >>         <script><br>
>> >>             <code><br>
>> >><br>
>> >>                 import<br>
>> >> com.evolveum.midpoint.notifica<wbr>tions.api.events.ModelEvent<br>
>> >>                 modelEvent = (ModelEvent) event<br>
>> >>                 newUser = modelEvent.getFocusContext().g<wbr>etObjectNew();<br>
>> >>                 userType = newUser.asObjectable();<br>
>> >><br>
>> >>                 link = "<br>
>> >> <a href="http://localhost:8080/midpoint/resetPasswordConfrimation/user/" rel="noreferrer" target="_blank">http://localhost:8080/midpoint<wbr>/resetPasswordConfrimation/use<wbr>r/</a>" +<br>
>> >> userType.getName().getOrig() +"/token/" +<br></span>
>> >> midpoint.getPlaintext(userType<wbr>.getCredentials().getNonce().<br>
>> getValue());<div><div class="h5"><br>
>> >>                 bodyMessage = "Did you request password reset? If yes,<br>
>> >> click on the link bellow \n" + link<br>
>> >><br>
>> >>                 return bodyMessage;<br>
>> >>             </code><br>
>> >>         </script><br>
>> >>     </bodyExpression><br>
>> >>     <transport>mail</transport><br>
>> >> </simpleUserNotifier><br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<a href="http://lists.evolveum.com/pipermail/midpoint/attachments/" rel="noreferrer" target="_blank">http://lists.evolveum.com/pip<wbr>ermail/midpoint/attachments/</a><br>
>> >> 20170306/4448fc63/attachment-0<wbr>001.html><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 3<br>
>> >> Date: Mon, 6 Mar 2017 21:31:06 +0100<br>
>> >> From: Pálos Gustáv <<a href="mailto:gustav.palos@evolveum.com" target="_blank">gustav.palos@evolveum.com</a>><br>
>> >> To: midPoint General Discussion <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br>
>> >> Subject: Re: [midPoint] Password Reset Email Notifier Configuration<br>
>> >> Message-ID:<br>
>> >>         <CAPXQVkdrEFOqZxKLZFxNtx-2Z=<wbr>v==PHTzEnkQhjdXcJXY6Mp=<a href="mailto:g@mail.gm" target="_blank">g@mail.<wbr>gm</a><br>
>> >> <a href="http://ail.com" rel="noreferrer" target="_blank">ail.com</a>><br>
>> >> Content-Type: text/plain; charset="utf-8"<br>
>> >><br>
>> >><br>
>> >> Hi Peter<br>
>> >><br>
>> >> I successfully imported Simple User Notifier snippet in midPoint 3.5.<br>
>> What<br>
>> >> version do you try?<br>
>> >> This feature is supported only from v3.5.<br>
>> >><br>
>> >> If you have same midPoint version, please send more detailed track<br>
>> trace<br>
>> >> from idm.log<br>
>> >><br>
>> >> Best regards,<br>
>> >><br>
>> >> Gustav<br>
>> >><br>
>> >> 2017-03-06 21:24 GMT+01:00 Peter Healy <<a href="mailto:phealy3330@gmail.com" target="_blank">phealy3330@gmail.com</a>>:<br>
>> >><br>
>> >> > I am trying to implement:<br>
>> >> > <a href="https://wiki.evolveum.com/display/midPoint/Reset+Password+" rel="noreferrer" target="_blank">https://wiki.evolveum.com/disp<wbr>lay/midPoint/Reset+Password+</a><br>
>> Configuration<br>
>> >> ><br>
>> >> > But I get an error importing the Simple User Notifier XML object<br>
>> that is<br>
>> >> > in the wiki page:<br>
>> >> ><br>
>> >> > <a href="http://com.evolveum.midpoint.prism.Pr">com.evolveum.midpoint.prism.Pr</a><wbr>ismProperty cannot be cast to<br>
>> >> > <a href="http://com.evolveum.midpoint.prism.Pr">com.evolveum.midpoint.prism.Pr</a><wbr>ismObject<br>
>> >> ><br>
>> >> ><br>
>> >> > I created and successfully imported this Mail Nonce Policy:<br>
>> >> > <valuePolicy xmlns="<a href="http://midpoint.evolveum.com/xml/ns/public/" rel="noreferrer" target="_blank">http://midpoint.evolveu<wbr>m.com/xml/ns/public/</a><br>
>> >> > common/common-3"<br></div></div><span class="">
>> >> >              xmlns:q="<a href="http://prism.evolveum" rel="noreferrer" target="_blank">http://prism.evolveum</a><br>
>> .com/xml/ns/public/query-3"<br></span><span class="">
>> >> >              xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/" rel="noreferrer" target="_blank">http://midpoint.evolv<wbr>eum.com/xml/ns/public/</a><br>
>> >> > common/common-3"<br></span><div><div class="h5">
>> >> >              xmlns:t="<a href="http://prism.evolveum" rel="noreferrer" target="_blank">http://prism.evolveum</a><br>
>> .com/xml/ns/public/types-3"<br>
>> >> >              xmlns:icfs="<a href="http://midpoint.evolveum.com/xml/ns/public/" rel="noreferrer" target="_blank">http://midpoint.ev<wbr>olveum.com/xml/ns/public/</a><br>
>> >> > connector/icf-1/resource-schem<wbr>a-3"<br>
>> >> >              xmlns:ri="<a href="http://midpoint.evolveum.com/xml/ns/public/" rel="noreferrer" target="_blank">http://midpoint.evol<wbr>veum.com/xml/ns/public/</a><br>
>> >> > resource/instance-3"<br>
>> >> >              oid="c0c8a80d-1818-42d1-b3ad-e<wbr>7f8993593a0"<br>
>> >> >              version="0"><br>
>> >> >    <name>Mail Nonce Policy</name><br>
>> >> >    <description>Mail Nonce Policy</description><br>
>> >> >    <metadata><br>
>> >> >       <createTimestamp>2017-03-06T1<wbr>9:56:44.233Z</createTimestamp><br>
>> >> >       <creatorRef oid="00000000-0000-0000-0000-0<wbr>00000000002"<br>
>> >> > type="c:UserType"><!-- administrator --></creatorRef><br>
>> >> >       <createChannel><a href="http://midpoint.evolveum.com/xml/ns/" rel="noreferrer" target="_blank">http://midpoin<wbr>t.evolveum.com/xml/ns/</a><br>
>> >> > public/model/channels-3#object<wbr>Import</createChannel><br>
>> >> >    </metadata><br>
>> >> >    <lifetime><br>
>> >> >       <expiration>999</expiration><br>
>> >> >       <warnBeforeExpiration>9</warn<wbr>BeforeExpiration><br>
>> >> >       <lockAfterExpiration>0</lockA<wbr>fterExpiration><br>
>> >> >       <minPasswordAge>0</minPasswor<wbr>dAge><br>
>> >> >       <passwordHistoryLength>0</pas<wbr>swordHistoryLength><br>
>> >> >    </lifetime><br>
>> >> >    <stringPolicy><br>
>> >> >       <description>Testing string policy</description><br>
>> >> >       <limitations><br>
>> >> >          <minLength>20</minLength><br>
>> >> >          <maxLength>20</maxLength><br>
>> >> >          <minUniqueChars>3</minUniqueCh<wbr>ars><br>
>> >> >          <limit><br>
>> >> >             <description>Alphas</descript<wbr>ion><br>
>> >> >             <minOccurs>1</minOccurs><br>
>> >> >             <mustBeFirst>false</mustBeFir<wbr>st><br>
>> >> >             <characterClass><br>
>> >> >                <value>abcdefghijklmnopqrstuvw<wbr>xyzABCD<br>
>> >> > EFGHIJKLMNOPQRSTUVWXYZ</value><br>
>> >> >             </characterClass><br>
>> >> >          </limit><br>
>> >> >          <limit><br>
>> >> >             <description>Numbers</descrip<wbr>tion><br>
>> >> >             <minOccurs>1</minOccurs><br>
>> >> >             <mustBeFirst>false</mustBeFir<wbr>st><br>
>> >> >             <characterClass><br>
>> >> >                <value>1234567890</value><br>
>> >> >             </characterClass><br>
>> >> >          </limit><br>
>> >> >       </limitations><br>
>> >> >    </stringPolicy><br>
>> >> > </valuePolicy><br>
>> >> ><br>
>> >> > And I successfully imported this security policy for the Mail reset:<br>
>> >> > <securityPolicy xmlns="<a href="http://midpoint.evolveum.com/xml/ns/public/" rel="noreferrer" target="_blank">http://midpoint.evolveu<wbr>m.com/xml/ns/public/</a><br>
>> >> > common/common-3"<br>
>> >> >                 xmlns:q="<a href="http://prism.evolveu" rel="noreferrer" target="_blank">http://prism.evolveu</a><br>
>> >> <a href="http://m.com/xml/ns/public/query-3" rel="noreferrer" target="_blank">m.com/xml/ns/public/query-3</a>"<br>
>> >> >                 xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/" rel="noreferrer" target="_blank">http://midpoint.evol<wbr>veum.com/xml/ns/public/</a><br>
>> >> > common/common-3"<br>
>> >> >                 xmlns:t="<a href="http://prism.evolveu" rel="noreferrer" target="_blank">http://prism.evolveu</a><br>
>> >> <a href="http://m.com/xml/ns/public/types-3" rel="noreferrer" target="_blank">m.com/xml/ns/public/types-3</a>"<br>
>> >> >                 xmlns:icfs="<a href="http://midpoint.e" rel="noreferrer" target="_blank">http://midpoint.e</a><br>
>> <a href="http://volveum.com/xml/ns/public/" rel="noreferrer" target="_blank">volveum.com/xml/ns/public/</a><br>
>> >> > connector/icf-1/resource-schem<wbr>a-3"<br>
>> >> >                 xmlns:ri="<a href="http://midpoint.evo" rel="noreferrer" target="_blank">http://midpoint.evo</a><br>
>> <a href="http://lveum.com/xml/ns/public/" rel="noreferrer" target="_blank">lveum.com/xml/ns/public/</a><br>
>> >> > resource/instance-3"<br>
>> >> >                 oid="28bf845a-b107-11e3-85bc-<wbr>001e8c717e5b"<br>
>> >> >                 version="19"><br>
>> >> >    <name>Mail Reset Security Policy</name><br>
>> >> >    <metadata><br>
>> >> >       <createTimestamp>2017-02-14T1<wbr>7:10:13.860Z</createTimestamp><br>
>> >> >       <creatorRef oid="00000000-0000-0000-0000-0<wbr>00000000002"<br>
>> >> > type="c:UserType"><!-- administrator --></creatorRef><br>
>> >> >       <createChannel><a href="http://midpoint.evolveum.com/xml/ns/" rel="noreferrer" target="_blank">http://midpoin<wbr>t.evolveum.com/xml/ns/</a><br>
>> >> > public/model/channels-3#object<wbr>Import</createChannel><br>
>> >> >    </metadata><br>
>> >> >    <authentication><br>
>> >> >       <mailAuthentication><br>
>> >> >          <name>confirmationLink</name><br>
>> >> >          <displayName>Additional mail authnetication</displayName><br>
>> >> >          <mailNonce>mailNonce</mailNonc<wbr>e><br>
>> >> >       </mailAuthentication><br>
>> >> >    </authentication><br>
>> >> >    <credentials><br>
>> >> >       <nonce><br>
>> >> >          <maxAge>PT2M</maxAge><br>
>> >> >          <name>mailNonce</name><br>
>> >> >          <valuePolicyRef oid="c0c8a80d-1818-42d1-b3ad-e<wbr>7f8993593a0"<br>
>> >> > type="c:ValuePolicyType"><!-- Mail Nonce Policy --></valuePolicyRef><br>
>> >> >       </nonce><br>
>> >> >    </credentials><br>
>> >> >    <credentialsReset><br>
>> >> >       <mailReset><br>
>> >> >          <name>Reset password using mail</name><br>
>> >> >          <additionalAuthenticationName><wbr>confirmationLink</<br>
>> >> > additionalAuthenticationName><br>
>> >> >       </mailReset><br>
>> >> >    </credentialsReset><br>
>> >> > </securityPolicy><br>
>> >> ><br>
>> >> > This is the Simple User Notifier form the wiki page:<br>
>> >> > <simpleUserNotifier><br>
>> >> >     <expressionFilter><br>
>> >> >         <script><br>
>> >> >             <code><br>
>> >> >                     import com.evolveum.midpoint.notifica<br>
>> >> tions.api.events.<br>
>> >> > ModelEvent<br>
>> >> >                     import com.evolveum.midpoint.xml.ns._<br>
>> >> > public.common.common_3.OrgType<br>
>> >> >                     import <a href="http://com.evolveum.midpoint.prism.de" rel="noreferrer" target="_blank">com.evolveum.midpoint.prism.de</a><br>
>> lta.ChangeType<br>
>> >> ><br>
>> >> >                    (event instanceof ModelEvent &amp;&amp;<br>
>> >> > event.getChannel().equals("<a href="http://midpoint.evolveum.com/xml/" rel="noreferrer" target="_blank">htt<wbr>p://midpoint.evolveum.com/xml/</a><br>
>> >> > ns/public/gui/channels-3#reset<wbr>Password"))<br>
>> >> >             </code><br>
>> >> >         </script><br>
>> >> >     </expressionFilter><br>
>> >> >     <recipientExpression><br>
>> >> >         <script><br>
>> >> >             <code>return requestee.getEmailAddress()</c<wbr>ode><br>
>> >> >         </script><br>
>> >> >     </recipientExpression><br>
>> >> >     <bodyExpression><br>
>> >> >         <script><br>
>> >> >             <code><br>
>> >> ><br>
>> >> >                 import com.evolveum.midpoint.notifica<br>
>> tions.api.events.<br>
>> >> > ModelEvent<br>
>> >> >                 modelEvent = (ModelEvent) event<br>
>> >> >                 newUser = modelEvent.getFocusContext().g<br>
>> etObjectNew();<br>
>> >> >                 userType = newUser.asObjectable();<br>
>> >> ><br>
>> >> >                 link = "<a href="http://localhost:8080/midpoint/" rel="noreferrer" target="_blank">http://localhost:8080/midpoin<wbr>t/</a><br>
>> >> > resetPasswordConfrimation/user<wbr>/" + userType.getName().getOrig()<br>
>> >> > +"/token/" + midpoint.getPlaintext(userType<wbr>.getCredentials().<br>
>> >> > getNonce().getValue());<br>
>> >> >                 bodyMessage = "Did you request password reset? If<br>
>> yes,<br>
>> >> > click on the link bellow \n" + link<br>
>> >> ><br>
>> >> >                 return bodyMessage;<br>
>> >> >             </code><br>
>> >> >         </script><br>
>> >> >     </bodyExpression><br>
>> >> >     <transport>mail</transport><br>
>> >> > </simpleUserNotifier><br>
>> >> ><br>
>> >> > ______________________________<wbr>_________________<br>
>> >> > midPoint mailing list<br>
>> >> > <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
>> >> > <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
>> >> ><br>
>> >> ><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Gustáv Pálos<br>
>> >> Identity Engineer<br>
>> >> <a href="http://evolveum.com" rel="noreferrer" target="_blank">evolveum.com</a><br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<a href="http://lists.evolveum.com/pipermail/midpoint/attachments/" rel="noreferrer" target="_blank">http://lists.evolveum.com/pip<wbr>ermail/midpoint/attachments/</a><br>
>> >> 20170306/85ab3d27/attachment.h<wbr>tml><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Subject: Digest Footer<br>
>> >><br>
>> >> ______________________________<wbr>_________________<br>
>> >> midPoint mailing list<br>
>> >> <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
>> >> <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
>> >><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> End of midPoint Digest, Vol 59, Issue 26<br>
>> >> ******************************<wbr>**********<br>
>> >><br>
>> ><br>
>> ><br>
>> > ______________________________<wbr>_________________<br>
>> > midPoint mailing list<br>
>> > <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
>> > <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
>> ><br>
>> ><br>
>><br>
>><br>
>> --<br>
>> Gustáv Pálos<br>
>> Identity Engineer<br>
>> <a href="http://evolveum.com" rel="noreferrer" target="_blank">evolveum.com</a><br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<a href="http://lists.evolveum.com/pipermail/midpoint/attachments/" rel="noreferrer" target="_blank">http://lists.evolveum.com/pip<wbr>ermail/midpoint/attachments/</a><br>
>> 20170306/3dfbadb0/attachment.h<wbr>tml><br>
>><br>
>> ------------------------------<br>
>><br>
>> Subject: Digest Footer<br>
>><br>
>> ______________________________<wbr>_________________<br>
>> midPoint mailing list<br>
>> <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
>> <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
>><br>
>><br>
>> ------------------------------<br>
>><br>
>> End of midPoint Digest, Vol 59, Issue 28<br>
>> ******************************<wbr>**********<br>
>><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> midPoint mailing list<br>
> <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
> <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
><br>
><br>
<br>
<br>
--<br>
Gustáv Pálos<br>
Identity Engineer<br>
<a href="http://evolveum.com" rel="noreferrer" target="_blank">evolveum.com</a><br></div></div><span class="">
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br></span>
URL: <<a href="http://lists.evolveum.com/pipermail/midpoint/attachments/20170307/c28dfbb3/attachment.html" rel="noreferrer" target="_blank">http://lists.evolveum.com/pip<wbr>ermail/midpoint/attachments/<wbr>20170307/c28dfbb3/attachment.<wbr>html</a>><span class=""><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
<br>
<br>
------------------------------<br>
<br></span>
End of midPoint Digest, Vol 59, Issue 56<br>
******************************<wbr>**********<br>
</blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">s pozdravom<div><br></div><div>Gustáv Pálos</div></div>
</div></div>