<div dir="ltr">If you don&#39;t mind having prospective students in LDAP as well you can have them created in LDAP when they register in Keycloak. This applies to users registering with social IdPs as well. Might even help your onboarding of students as you&#39;d already have some details filled in.<div><br></div><div>Otherwise you could use the admin endpoints to link the KC user to an LDAP user when the student is created in LDAP.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 August 2016 at 06:17, Adam Keily <span dir="ltr">&lt;<a href="mailto:adam.keily@adelaide.edu.au" target="_blank">adam.keily@adelaide.edu.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-AU" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m new to keycloak and we’re investigating using it within our University. In the first instance it would be used as a registration point for external users e.g. prospective students etc. They will either register via the form or using
 social IdP’s in order to access various apps for these types of users. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We want to remain open to using Keycloak for our internal (AD / LDAP) users to authenticate to these same apps as well as corporate applications.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The tricky part comes where a prospective student (external identity) enrols and becomes a regular student (LDAP user). We would like them to continue to be recognised as a single identity and have their registered identities merged / linked
 with their new internal id.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hoping someone might be able to provide some guidance on the best way to go. There are a few ideas I’ve been testing.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">One is to have a single keycloak realm for user registration and configure LDAP as a user federation source. However this would seem to rule out linking the accounts?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Another idea was to configure two realms (internal and external) and have the internal realm act as an IdP for the external realm.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Another option is to create three realms, internal, external and combined. The combined realm is used for SSO for all apps and the internal and external realms are configured to be IdP’s for the combined realm. I can’t help but feel this
 is starting to get more complicated than is necessary.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any guidance or thoughts would be much appreciated.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal">Adam<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">-- </span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">Adam Keily</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">Risk &amp; Security Services</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">The University of Adelaide</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</font></span></div>
</div>

<br>______________________________<wbr>_________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>