diff --git a/mujina-common/pom.xml b/mujina-common/pom.xml
index cded907..a60e694 100644
--- a/mujina-common/pom.xml
+++ b/mujina-common/pom.xml
@@ -21,7 +21,7 @@
org.openconext
mujina
- 8.0.3
+ 8.0.4
../pom.xml
diff --git a/mujina-idp/pom.xml b/mujina-idp/pom.xml
index dff06f6..95d403f 100644
--- a/mujina-idp/pom.xml
+++ b/mujina-idp/pom.xml
@@ -21,7 +21,7 @@
org.openconext
mujina
- 8.0.3
+ 8.0.4
../pom.xml
diff --git a/mujina-idp/src/main/java/mujina/idp/SsoController.java b/mujina-idp/src/main/java/mujina/idp/SsoController.java
index 1363dd3..557ee78 100644
--- a/mujina-idp/src/main/java/mujina/idp/SsoController.java
+++ b/mujina-idp/src/main/java/mujina/idp/SsoController.java
@@ -107,7 +107,9 @@ private List attributes(Authentication authentication) {
Map> replacements = new HashMap<>();
String mail = String.format("%s@%s",
uid.replaceAll("[^a-zA-Z0-9]", ""),
- "example.com");
+ "example.com")
+ .toLowerCase();
+ String givenName = uid.substring(0, 1).toUpperCase() + uid.substring(1);
result.keySet().forEach(key -> {
String standardValue = standardAttributes.get(key);
List resultValues = result.get(key);
@@ -117,10 +119,10 @@ private List attributes(Authentication authentication) {
switch (key) {
case "urn:mace:dir:attribute-def:cn":
case "urn:mace:dir:attribute-def:displayName":
- replacements.put(key, List.of(uid + " Doe"));
+ replacements.put(key, List.of(givenName + " Doe"));
break;
case "urn:mace:dir:attribute-def:givenName":
- replacements.put(key, List.of(uid));
+ replacements.put(key, List.of(givenName));
break;
case "urn:mace:dir:attribute-def:mail":
case "urn:mace:dir:attribute-def:eduPersonPrincipalName":
diff --git a/mujina-sp/pom.xml b/mujina-sp/pom.xml
index 90009e5..7121919 100644
--- a/mujina-sp/pom.xml
+++ b/mujina-sp/pom.xml
@@ -21,7 +21,7 @@
org.openconext
mujina
- 8.0.3
+ 8.0.4
../pom.xml
diff --git a/pom.xml b/pom.xml
index 51f93f6..13d7d97 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
org.openconext
mujina
- 8.0.3
+ 8.0.4
pom