Embedded LDAP server: Improve README.md and examples
Change-Id: Ia62b059960fab78d0150058bb24008273d9df2f9
diff --git a/full/src/main/resources/embedded-ldap-example.conf b/full/src/main/resources/embedded-ldap-example.conf
new file mode 100644
index 0000000..0fa5f9f
--- /dev/null
+++ b/full/src/main/resources/embedded-ldap-example.conf
@@ -0,0 +1,10 @@
+# Sample configuration for an automatically starting
+# embedded LDAP server
+host=localhost
+port=3267
+searchBase=dc=example,dc=com
+sLoginDN=cn=admin,dc=example,dc=com
+pwd=admin
+searchFilter=(|(uid=${login})(mail=${login}))
+useEmbeddedServer=true
+ldifFile=src/main/resources/example-users.ldif
diff --git a/full/src/main/resources/korap-users.ldif b/full/src/main/resources/example-users.ldif
similarity index 79%
rename from full/src/main/resources/korap-users.ldif
rename to full/src/main/resources/example-users.ldif
index 8760df9..103582f 100644
--- a/full/src/main/resources/korap-users.ldif
+++ b/full/src/main/resources/example-users.ldif
@@ -9,25 +9,25 @@
objectClass: organizationalUnit
dn: uid=user,ou=people,dc=example,dc=com
-cn: user
+cn: Rainer User
uid: user
mail: user@example.com
userPassword: {BASE64}cGFzc3dvcmQ=
dn: uid=user1,ou=people,dc=example,dc=com
-cn: user1
+cn: User 1
uid: user1
mail: user1@example.com
userPassword: {CLEAR}password1
dn: uid=user2,ou=people,dc=example,dc=com
-cn: user2
+cn: User 2
uid: user2
mail: user2@example.com
userPassword: password2
dn: uid=user3,ou=people,dc=example,dc=com
-cn: user3
+cn: User 3
uid: user3
mail: user3@example.com
userPassword: {SHA}ERnP037iRzV+A0oI2ETuol9v0g8=
@@ -37,10 +37,3 @@
uid: user4
mail: user4@example.com
userPassword: {SHA256}uXhzpA9zq+3Y1oWnzV5fheSpz7g+rCaIZkCggThQEis=
-
-dn: uid=user5,ou=people,dc=example,dc=com
-cn: user5
-uid: user5
-mail: user5@example.com
-userPassword: {PBKDF2-SHA256}26PFrg++/nI8YOiHum5MyAMp0HdqKMNOcLpY5RuO2bY=
-
diff --git a/full/src/main/resources/kustvakt.conf b/full/src/main/resources/kustvakt.conf
index 5d822ae..4ef6aac 100644
--- a/full/src/main/resources/kustvakt.conf
+++ b/full/src/main/resources/kustvakt.conf
@@ -9,7 +9,7 @@
#krill.namedVC = vc
# LDAP
-ldap.config = file-path-to-ldap-config
+ldap.config = src/main/resources/embedded-ldap-example.conf
# Kustvakt
api.welcome.message = Welcome to KorAP API!