<div dir="ltr"><div><div><div><div><div>Hi Katka,<br><br></div>Thanks for your reply.<br><br></div>I also had to add the following snippet in the "user template":<br><br> <mapping><br> <description><br> Name of user<br> </description><br> <strength>weak</strength><br> <source><br> <c:path>$user/givenName</c:path><br> </source><br> <target><br> <c:path>$user/name</c:path><br> </target><br> </mapping><br><a target="_blank" rel="noreferrer" href="http://10.3.190.47:8080/midpoint/confirm/registrationId/87865657872/token/jtGFT"></a><br></div>Otherwise, the message<br><br>
<b class="gmail-box-title">Registration failed : No name in new
object null as produced by template
objectTemplate:e63e1118-cbe5-11e5-b08e-3c970e44b9e2(User Template) in
iteration 0, we cannot process an object without a name<br><br></b></div><span class="gmail-box-title">would be shown, since "name" is a mandatory attribute when defining a user.<br><br><br><br></span></div><span class="gmail-box-title">Carlos<br></span><div><div><div><br><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-18 8:32 GMT-02:00 Katka Valalikova <span dir="ltr"><<a href="mailto:katka.valalikova@evolveum.com" target="_blank">katka.valalikova@evolveum.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div>Hi Carlos,</div><div><br></div><div>probably you already solved the issue on your own, but at least I updated the documentation for self-registration process. I described the different scenarios in more depth. You can read about it here:</div><div><a href="https://wiki.evolveum.com/display/midPoint/Self+Registration+Configuration" style="font-size:12pt" target="_blank">https://wiki.evolveum.com/<wbr>display/midPoint/Self+<wbr>Registration+Configuration</a></div><div><br></div><div>Briefly, the problem is, that with your configuration you enforce the existence of the user in midPoint for registration process. It is configured with the attribute</div><div><br></div><div><span style="font-family:monospace"><requiredLifecycleState><wbr>proposed</<wbr>requiredLifecycleState></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:'times new roman','new york',times,serif">So, if you remove this attribute, your registration process will work.</span></div><div><br></div><div><span name="x"></span>Best regards,<br><div><br></div>Katarina Valalikova<br>Java Developer<br><a href="http://evolveum.com" target="_blank">evolveum.com</a><span name="x"></span><br></div><div><br></div><hr id="m_1043050891719289816zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From: </b>"Carlos Ferreira" <<a href="mailto:carlos18619@gmail.com" target="_blank">carlos18619@gmail.com</a>><br><b>To: </b>"midPoint General Discussion" <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br><b>Sent: </b>Thursday, December 22, 2016 4:36:44 PM<br><b>Subject: </b>[midPoint] SELF-REGISTRATION - MIDPOINT 3.5<div><div class="h5"><br><div><br></div><div dir="ltr"><div><div><div><div><div>Hi,<br><div><br></div></div>I am trying to configure self-registration on Midpoint 3.5 according to <br><div><br></div><br><a href="https://wiki.evolveum.com/display/midPoint/Self+Registration+Configuration" target="_blank">https://wiki.evolveum.com/<wbr>display/midPoint/Self+<wbr>Registration+Configuration</a><br><div><br></div><br>My Security Policy is as follows:<br><div><br></div><br><code><securityPolicy xmlns="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>common/common-3</a>"<br> xmlns:q="<a href="http://prism.evolveum.com/xml/ns/public/query-3" target="_blank">http://prism.<wbr>evolveum.com/xml/ns/public/<wbr>query-3</a>"<br> xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>common/common-3</a>"<br> xmlns:t="<a href="http://prism.evolveum.com/xml/ns/public/types-3" target="_blank">http://prism.<wbr>evolveum.com/xml/ns/public/<wbr>types-3</a>"<br> xmlns:icfs="<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>connector/icf-1/resource-<wbr>schema-3</a>"<br> xmlns:ri="<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>resource/instance-3</a>"<br> oid="28bf845a-b107-11e3-85bc-<wbr>001e8c717e5b"<br> version="3"><br> <name>Global Security Policy</name><br> <metadata><br> <createTimestamp>2016-12-<wbr>22T13:03:27.065-02:00</<wbr>createTimestamp><br> <creatorRef oid="00000000-0000-0000-0000-<wbr>000000000002" type="c:UserType"><!-- administrator --></creatorRef><br> <createChannel><a href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport" target="_blank">http://<wbr>midpoint.evolveum.com/xml/ns/<wbr>public/model/channels-3#<wbr>objectImport</a></createChannel><br> </metadata><br> <authentication><br> <mailAuthentication><br> <name>confirmationLink</name><br> <displayName>Additional mail authentication</displayName><br> <mailNonce>mailNonce</<wbr>mailNonce><br> </mailAuthentication><br> </authentication><br> <credentials><br> <nonce><br> <maxAge>PT10M</maxAge><br> <name>mailNonce</name><br> </nonce><br> </credentials><br> <registration><br> <selfRegistration><br> <name>selfRegistration</name><br> <initialLifecycleState><wbr>proposed</<wbr>initialLifecycleState><br> <requiredLifecycleState><wbr>proposed</<wbr>requiredLifecycleState><br> <displayName>Self Registration</displayName><br> <additionalAuthenticationName><wbr>confirmationLink</<wbr>additionalAuthenticationName><br> <defaultRole oid="00000000-0000-0000-0000-<wbr>000000000008" type="c:RoleType"><!-- End user --></defaultRole><br> </selfRegistration><br> </registration><br></securityPolicy><br><div><br></div><br></code></div><code>However, when a try to register a new user, after filling the attributes on screen, I receive the message<br><div><br></div></code><br>
<b class="m_1043050891719289816gmail-box-title">Registration process not allowed. Please contact system administrator.<br><div><br></div></b></div><span class="m_1043050891719289816gmail-box-title">In the IDM.LOG, this line is appended:</span><b class="m_1043050891719289816gmail-box-title"><br><div><br></div>2016-12-22 13:35:12,092 [] [http-nio-8080-exec-23] ERROR (com.evolveum.midpoint.web.<wbr>page.login.<wbr>PageSelfRegistration): Registration not allowed for a user <a href="mailto:carlosaf@trt3.jus.br" target="_blank">carlosaf@trt3.jus.br</a> -> Unsatisfied Configuration for required lifecycle, expected proposed but was null<br><div><br></div></b></div><span class="m_1043050891719289816gmail-box-title"><br>Thks in advance,<br><div><br></div><br></span></div><span class="m_1043050891719289816gmail-box-title">Carlos<br></span></div>
<br></div></div>______________________________<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" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br></div><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></div>