diff --git a/api/services/protocols/ldap.js b/api/services/protocols/ldap.js index 9d504cfd7..b21983c51 100644 --- a/api/services/protocols/ldap.js +++ b/api/services/protocols/ldap.js @@ -38,7 +38,7 @@ var ldapToUser = function (ldapUser, user, next) { console.error("Failed to create user from ldap", err); next(err); } else { - next(null, data); + next(null, user); } }); }