Create folder:
$ mkdir /tmp/ldap
$ vim /tmp/ldap/all.ldif
Put ldif file information into file.
/tmp/ldap/infuseai.ldif
Create openldap server
$ docker run --name ldap -p 10389:389 -d \\
-v /tmp/ldap:/tmp/ldap:ro \\
-e LDAP_ORGANISATION="InfuseAI Inc" \\
-e LDAP_DOMAIN="infuseai.io" \\
osixia/openldap:1.5.0
Add user information:
docker exec -ti ldap ldapadd -x -H ldap://localhost -D "cn=admin,dc=infuseai,dc=io" -w admin -f /tmp/ldap/infuseai.ldif
Once in Primehub realm, click on User Federation, and click Add Provider. On the next page ("Required Settings"), set the following:
When save the setting, you can synchronize all users.
You can see the user list in Manage > Users
functions.
Reference:
OpenLDAP - Funky Penguin's Geek Cookbook
In the Configure
menu on the left, select User Federation
to display the entry dialog.
In the drop-down menu, select ldap
.
Enter your ldap
configuration according to the following table:
ldap - windows AD setting in Keycloak
Save your settings and you can see the result in Manage > Users
functions.