Facing the exact same issue as @zmwrc, it worked in 3.5.x, ldap authentication broke on update to 3.6.0
BaseDN and Search filter are used
Enabling/Disabling “Login Fallback” or “Find after Login” had no effect.
I would think BaseDN/Search Filter are correct since they worked properly before updating to 3.6.0. Users are listed with Role “User”, not sure what is ment with “LDAP user”, however RocketChat does talk to LDAP/AD when attempting to login, so i assume it correctly tries to use ldap.
A working solution would be most welcome, currently i am trying to get meaningfull logs with trace but not usefull results so far. Have not yet tried deleting users, this is the next step i guess but they seem correct now.
Edit: to clarify, users also cannot login (the “pre-existing” login with the rocketchat client works) but if i would do a private browser session and attempt to login -> user not known/password incorrect
Edit2: after deleting the users and attempting to re-import i am getting the following errors:
error: ‘file-too-small’,
reason: ‘File size (size = 0) is too small (min = 1)’,
details: undefined,
errorType: 'Meteor.Error
Edit3: https://github.com/RocketChat/Rocket.Chat/issues/18737
-> after disabling the “synchronize Login Images” is a workaround for me
Sep 10 15:00:32 hostname rocketchat: ➔ ±--------------------------------------------------------+
Sep 10 15:00:32 hostname rocketchat: ➔ | SERVER RUNNING |
Sep 10 15:00:32 hostname rocketchat: ➔ ±--------------------------------------------------------+
Sep 10 15:00:32 hostname rocketchat: ➔ | |
Sep 10 15:00:32 hostname rocketchat: ➔ | Rocket.Chat Version: 3.6.0 |
Sep 10 15:00:32 hostname rocketchat: ➔ | NodeJS Version: 12.18.2 - x64 |
Sep 10 15:00:32 hostname rocketchat: ➔ | MongoDB Version: 4.0.20 |
Sep 10 15:00:32 hostname rocketchat: ➔ | MongoDB Engine: wiredTiger |
Sep 10 15:00:32 hostname rocketchat: ➔ | Platform: linux |
Sep 10 15:00:32 hostname rocketchat: ➔ | Process Port: 3000 |
Sep 10 15:00:32 hostname rocketchat: ➔ | Site URL: https://some.domain.tld |
Sep 10 15:00:32 hostname rocketchat: ➔ | ReplicaSet OpLog: Enabled |
Sep 10 15:00:32 hostname rocketchat: ➔ | Commit Hash: 071d72ebdc |
Sep 10 15:00:32 hostname rocketchat: ➔ | Commit Branch: HEAD |
Sep 10 15:00:32 hostname rocketchat: ➔ | |
Sep 10 15:00:32 hostname rocketchat: ➔ ±--------------------------------------------------------+
Sep 10 15:01:20 hostname rocketchat: (node:1796) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Sep 10 15:01:20 hostname rocketchat: server.js:204 LDAPSync ➔ error errorClass [Error]: File size (size = 0) is too small (min = 1) [file-too-small]
Sep 10 15:01:20 hostname rocketchat: at Object.fileTooSmallError (packages/jalik:ufs/ufs-filter.js:43:53)
Sep 10 15:01:20 hostname rocketchat: at Filter.check (packages/jalik:ufs/ufs-filter.js:89:28)
Sep 10 15:01:20 hostname rocketchat: at FileUploadClass.insert (app/file-upload/server/lib/FileUpload.js:586:11)
Sep 10 15:01:20 hostname rocketchat: at DDPCommon.MethodInvocation. (app/ldap/server/sync.js:418:15)
Sep 10 15:01:20 hostname rocketchat: at packages/dispatch_run-as-user.js:211:14
Sep 10 15:01:20 hostname rocketchat: at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
Sep 10 15:01:20 hostname rocketchat: at Object.Meteor.runAsUser (packages/dispatch_run-as-user.js:210:33)
Sep 10 15:01:20 hostname rocketchat: at syncUserData (app/ldap/server/sync.js:417:11)
Sep 10 15:01:20 hostname rocketchat: at app/ldap/server/sync.js:575:6
Sep 10 15:01:20 hostname rocketchat: at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1138:16)
Sep 10 15:01:20 hostname rocketchat: at Cursor. [as forEach] (packages/mongo/mongo_driver.js:918:44)
Sep 10 15:01:20 hostname rocketchat: at sync (app/ldap/server/sync.js:565:10)
Sep 10 15:01:20 hostname rocketchat: at MethodInvocation.ldap_sync_now (app/ldap/server/syncUsers.js:24:3)
Sep 10 15:01:20 hostname rocketchat: at MethodInvocation.methodsMap. (app/lib/server/lib/debug.js:67:34)
Sep 10 15:01:20 hostname rocketchat: at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1771:12)
Sep 10 15:01:20 hostname rocketchat: at packages/ddp-server/livedata_server.js:719:19
Sep 10 15:01:20 hostname rocketchat: at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
Sep 10 15:01:20 hostname rocketchat: at packages/ddp-server/livedata_server.js:717:46
Sep 10 15:01:20 hostname rocketchat: at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
Sep 10 15:01:20 hostname rocketchat: at packages/ddp-server/livedata_server.js:715:46
Sep 10 15:01:20 hostname rocketchat: at new Promise ()
Sep 10 15:01:20 hostname rocketchat: at Session.method (packages/ddp-server/livedata_server.js:689:23)
Sep 10 15:01:20 hostname rocketchat: at packages/ddp-server/livedata_server.js:559:43 {
Sep 10 15:01:20 hostname rocketchat: isClientSafe: true,
Sep 10 15:01:20 hostname rocketchat: error: ‘file-too-small’,
Sep 10 15:01:20 hostname rocketchat: reason: ‘File size (size = 0) is too small (min = 1)’,
Sep 10 15:01:20 hostname rocketchat: details: undefined,
Sep 10 15:01:20 hostname rocketchat: errorType: ‘Meteor.Error’
Sep 10 15:01:20 hostname rocketchat: }
Sep 10 15:01:25 hostname rocketchat: Exception in callback of async function: errorClass [Error]: File size (size = 0) is too small (min = 1) [file-too-small]
Sep 10 15:01:25 hostname rocketchat: at Object.fileTooSmallError (packages/jalik:ufs/ufs-filter.js:43:53)
Sep 10 15:01:25 hostname rocketchat: at Filter.check (packages/jalik:ufs/ufs-filter.js:89:28)
Sep 10 15:01:25 hostname rocketchat: at FileUploadClass.insert (app/file-upload/server/lib/FileUpload.js:586:11)
Sep 10 15:01:25 hostname rocketchat: at DDPCommon.MethodInvocation. (app/ldap/server/sync.js:418:15)
Sep 10 15:01:25 hostname rocketchat: at packages/dispatch_run-as-user.js:211:14
Sep 10 15:01:25 hostname rocketchat: at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
Sep 10 15:01:25 hostname rocketchat: at Object.Meteor.runAsUser (packages/dispatch_run-as-user.js:210:33)
Sep 10 15:01:25 hostname rocketchat: at syncUserData (app/ldap/server/sync.js:417:11)
Sep 10 15:01:25 hostname rocketchat: at addLdapUser (app/ldap/server/sync.js:469:2)
Sep 10 15:01:25 hostname rocketchat: at app/ldap/server/sync.js:529:5
Sep 10 15:01:25 hostname rocketchat: at Array.forEach ()
Sep 10 15:01:25 hostname rocketchat: at app/ldap/server/sync.js:496:13
Sep 10 15:01:25 hostname rocketchat: at runWithEnvironment (packages/meteor.js:1286:24) {
Sep 10 15:01:25 hostname rocketchat: isClientSafe: true,
Sep 10 15:01:25 hostname rocketchat: error: ‘file-too-small’,
Sep 10 15:01:25 hostname rocketchat: reason: ‘File size (size = 0) is too small (min = 1)’,
Sep 10 15:01:25 hostname rocketchat: details: undefined,
Sep 10 15:01:25 hostname rocketchat: errorType: ‘Meteor.Error’
Sep 10 15:01:25 hostname rocketchat: }