diff --git a/app/ldap/server/loginHandler.js b/app/ldap/server/loginHandler.js index f4c3901c16ca..a0c0f893e8cf 100644 --- a/app/ldap/server/loginHandler.js +++ b/app/ldap/server/loginHandler.js @@ -143,7 +143,7 @@ Accounts.registerLoginHandler('ldap', function(loginRequest) { } // Create new user - const result = addLdapUser(ldapUser, username, loginRequest.ldapPass); + const result = addLdapUser(ldapUser, username, loginRequest.ldapPass, ldap); if (result instanceof Error) { throw result;