diff --git a/jams-server/src/main/java/net/jami/jams/server/Server.java b/jams-server/src/main/java/net/jami/jams/server/Server.java
index f6a36edf69bb3386601402a4ddfda08cb471f94b..efc6061e99eaa19719a912bb3fd0f4f35b18b67c 100644
--- a/jams-server/src/main/java/net/jami/jams/server/Server.java
+++ b/jams-server/src/main/java/net/jami/jams/server/Server.java
@@ -61,7 +61,7 @@ public class Server {
             userAuthenticationModule.attachLDAPAuthSource(new String(path.readAllBytes()));
             UserProfile[] userProfile = userAuthenticationModule.getAuthenticationSources()
                     .get(new AuthModuleKey("savoirfairelinux", AuthenticationSourceType.LDAP))
-                    .getUserProfile("Félix","FULL_TEXT_NAME");
+                    .getUserProfile("Béraud","FULL_TEXT_NAME");
             System.out.println(userProfile[0]);
         } catch (Exception e) {
             log.error("Could not load and inject active directory connector with error: " + e.toString());
diff --git a/ldap-connector/src/main/java/net/jami/jams/ldap/connector/service/UserProfileService.java b/ldap-connector/src/main/java/net/jami/jams/ldap/connector/service/UserProfileService.java
index e0334e154e01efe62f5abdc48a777e495f5d74a2..d2d4e3d149f820ba34625b4dad9e505c520f11a6 100644
--- a/ldap-connector/src/main/java/net/jami/jams/ldap/connector/service/UserProfileService.java
+++ b/ldap-connector/src/main/java/net/jami/jams/ldap/connector/service/UserProfileService.java
@@ -44,7 +44,7 @@ public class UserProfileService {
                 SearchResponse res = search.execute(buildRequest(queryString,field));
                 if (res.getEntries().size() > 0) profiles = new UserProfile[res.getEntries().size()];
                 for(int i=0; i< profiles.length; i++){
-                    profiles[i] = profileFromResponse(res.getEntry());
+                    profiles[i] = profileFromResponse(res.getEntries().iterator().next());
                 }
                 return profiles;
             } catch (Exception e) {