Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP sync only syncing some users #15159

Closed
MarqtransIT opened this issue Aug 10, 2019 · 6 comments
Closed

LDAP sync only syncing some users #15159

MarqtransIT opened this issue Aug 10, 2019 · 6 comments
Labels
stat: stale Stale issues will be automatically closed if no activity

Comments

@MarqtransIT
Copy link

Description:

When setup, ldap will sync and import 22 of the 37 users in an ad group. however it will not import the rest of of them

Additional context

Database was migrated from standard ubuntu install

I have gotten all 37 users with this command

 ldapsearch -b dc=marqtrans,dc=com -H ldap://192.168.0.69 -D cn=admin,cn=users,dc=marqtrans,dc=com -W "(memberof=CN=RealUsers,CN=Users,DC=marqtrans,DC=com)" | less

Steps to reproduce:

Cant say for sure here are picture of my config
image
image
image
image
image

Expected behavior:

Have all 37 users populated

Actual behavior:

only 22 of the 37 users are added

Server Setup Information:

MongoDB shell version v3.4.20
git version: 447847d93d6e0a21b018d5df45528e815c7c13d8
allocator: tcmalloc
modules: none
build environment:
    distarch: x86_64
    target_arch: x86_64
  • Apps Engine Version 1.4.2
  • Database Migration 147
  • Database Migration Date Tue Aug 06 2019 17:22:33 GMT-0500 (Central Daylight Time)
  • Installed at Fri Aug 02 2019 08:34:32 GMT-0500 (Central Daylight Time)
  • Uptime 3 days, 14 hours, 31 seconds
  • PID 2628
  • OpLog Enabled

Relevant logs:

logs from the latest LDAP Sync

I20190810-12:42:41.906(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.911(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.925(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.928(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.938(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.944(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.953(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.960(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.971(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.974(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.983(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:41.987(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.002(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.006(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.016(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.021(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.032(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.040(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.049(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.052(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.061(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.063(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.076(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.078(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.087(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.090(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.098(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.105(0) server.js:207 LDAPSync ➔ error Error creating user { Error: [error-invalid-domain]     at server/lib/accounts.js:307:10     at _validateNewUserHooks.forEach.hook (packages/accounts-base/accounts_server.js:1094:13)     at Array.forEach (<anonymous>)     at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1093:32)     at AccountsServer.<anonymous> (server/lib/accounts.js:179:28)     at executeBound (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:762:67)     at AccountsServer.bound [as insertUserDoc] (/snap/rocketchat-server/1392/programs/server/npm/node_modules/underscore/underscore.js:793:14)     at createUser (packages/accounts-password/password_server.js:1078:25)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 'error-invalid-domain',   reason: undefined,   details: undefined,   message: '[error-invalid-domain]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.129(0) server.js:207 LDAPSync ➔ error Error creating user { Error: Email already exists. [403]     at handleError (packages/accounts-password/password_server.js:104:17)     at checkForCaseInsensitiveDuplicates (packages/accounts-password/password_server.js:245:7)     at createUser (packages/accounts-password/password_server.js:1076:3)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 403,   reason: 'Email already exists.',   details: undefined,   message: 'Email already exists. [403]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.131(0) server.js:207 LDAPSync ➔ error Error creating user { Error: Email already exists. [403]     at handleError (packages/accounts-password/password_server.js:104:17)     at checkForCaseInsensitiveDuplicates (packages/accounts-password/password_server.js:245:7)     at createUser (packages/accounts-password/password_server.js:1076:3)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 403,   reason: 'Email already exists.',   details: undefined,   message: 'Email already exists. [403]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.176(0) server.js:207 LDAPSync ➔ error Error creating user { Error: Username already exists. [403]     at handleError (packages/accounts-password/password_server.js:104:17)     at checkForCaseInsensitiveDuplicates (packages/accounts-password/password_server.js:245:7)     at createUser (packages/accounts-password/password_server.js:1075:3)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 403,   reason: 'Username already exists.',   details: undefined,   message: 'Username already exists. [403]',   errorType: 'Meteor.Error' } 
I20190810-12:42:42.178(0) server.js:207 LDAPSync ➔ error Error creating user { Error: Username already exists. [403]     at handleError (packages/accounts-password/password_server.js:104:17)     at checkForCaseInsensitiveDuplicates (packages/accounts-password/password_server.js:245:7)     at createUser (packages/accounts-password/password_server.js:1075:3)     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)     at addLdapUser (app/ldap/server/sync.js:264:29)     at ldapUsers.forEach.ldapUser (app/ldap/server/sync.js:327:5)     at Array.forEach (<anonymous>)     at ldap.searchUsersSync.Meteor.bindEnvironment (app/ldap/server/sync.js:294:13)     at runWithEnvironment (packages/meteor.js:1356:24)   isClientSafe: true,   error: 403,   reason: 'Username already exists.',   details: undefined,   message: 'Username already exists. [403]',   errorType: 'Meteor.Error' } 
@MarqtransIT MarqtransIT changed the title LDAP sync only bringing some users LDAP sync only syncing some users Aug 11, 2019
@Hudell
Copy link
Contributor

Hudell commented Aug 21, 2019

Are you using a domain whitelist? Is marqtrans.com in it?
If the server is also configured to check the DNS of email domains, that may also be what's preventing those users from being registered.

@jtorrex
Copy link

jtorrex commented Sep 16, 2019

Hi @MarqtransIT !

  • Could you paste the result from the ldapsearch command? (only the fields of the query, no the data)
  • Wich LDAP server are you using?

Gave us this info and I will try to help you!

Regards

@saschafoerster
Copy link

@MarqtransIT And maybe could you switch the option for "Find user after login"? This helped me: #11502 (comment)

@armagankaratosun
Copy link

Hi @MarqtransIT,

I also had the same problem and I fixed it with disabling the "UTF8 Names Slugify". Just navigate through Settings --> General --> UTF8 and disable it.

image

Cheers!

@tomdwyer3003
Copy link

@armagankaratosun Thank you mate, that fixed it for me too. Was only seeing 124 users, the other 800 have come through now :)

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stat: stale Stale issues will be automatically closed if no activity label Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: stale Stale issues will be automatically closed if no activity
Projects
None yet
Development

No branches or pull requests

6 participants