<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I am thinking about adding LDAP example, which can be used as a base
for LDAP mappers based blog and screencast. <br>
<br>
It will contain the application to show some claims (also both
singlevalued and multivalued attributes). It will also contain JSON
realm with UserFederation configuration pointing to our ApacheDS and
LDIF with some simple users for testing. I already added end-to-end
test to the testsuite
(LDAPMultipleAttributesTest.ldapPortalEndToEndTest
<meta http-equiv="content-type" content="text/html; charset=utf-8">
)<br>
<br>
<br>
The only possible problem is how to easily bootstrap ApacheDS based
LDAP servers in user's environment. I am thinking about 3
approaches:<br>
<br>
a) Point to the embedded ApacheDS server from our testsuite. This
will be easy to do and it's what Kerberos example is already doing .
Problem is that it requires people to checkout the keycloak sources
through github and build them through maven, so not very user
friendly<br>
<br>
b) Create docker image for ApacheDS servers (one for ldap example
and another for kerberos). Not sure if it's fine to require users to
install docker (even more pain might be on windows, when they need
boot2docker or something...)<br>
<br>
c) Packaging with ApacheDS based servers directly into our example
package, so people can just run something like: <br>
<br>
java -jar keycloak-examples/ldap/apacheds-embedded.jar
-Dldif.location=keycloak-examples/ldap/example.ldif<br>
<br>
and similarly for kerberos.<br>
<br>
For me it's easiest to go with (a) but not sure about usability...
Regarding usability (c) looks best but it's much more work.<br>
<br>
WDYT?<br>
Marek<br>
<br>
<br>
</body>
</html>