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

New users can not login, account creation error Match error: Expected string, got undefined in field username] #4259

Closed
dupree972 opened this issue Sep 9, 2016 · 5 comments
Assignees
Milestone

Comments

@dupree972
Copy link

dupree972 commented Sep 9, 2016

Your Rocket.Chat version: .39

Sep  9 12:47:47 localhost RocketChat: loginHandler.js:97 #033[34mLDAPHandler ➔ debug#033[39m userQuery { username: 'jul' }
Sep  9 12:47:47 localhost RocketChat: loginHandler.js:127 #033[34mLDAPHandler ➔ info#033[39m User does not exist, creating jul
Sep  9 12:47:47 localhost RocketChat: sync.js:174 #033[34mLDAPSync ➔ debug#033[39m New user data { username: undefined, email: '[email protected]' }
Sep  9 12:47:47 localhost RocketChat: sync.js:179 #033[31mLDAPSync ➔ error#033[39m Error creating user { [Error: Match error: Expected string, got undefined in field username]
Sep  9 12:47:47 localhost RocketChat: message: 'Match error: Expected string, got undefined in field username',
Sep  9 12:47:47 localhost RocketChat: path: 'username',
Sep  9 12:47:47 localhost RocketChat: sanitizedError:
Sep  9 12:47:47 localhost RocketChat: { [Error: Match failed [400]]
Sep  9 12:47:47 localhost RocketChat: error: 400,
Sep  9 12:47:47 localhost RocketChat: reason: 'Match failed',
Sep  9 12:47:47 localhost RocketChat: details: undefined,
Sep  9 12:47:47 localhost RocketChat: message: 'Match failed [400]',
Sep  9 12:47:47 localhost RocketChat: errorType: 'Meteor.Error' },
Sep  9 12:47:47 localhost RocketChat: errorType: 'Match.Error' }
Sep  9 12:47:47 localhost RocketChat: Exception while invoking method 'login' Error: Match error: Expected string, got undefined in field username
@engelgabriel
Copy link
Member

@dupree972 can you give more info? Is this on a fresh install? Are you using any other auth methods?

@engelgabriel
Copy link
Member

engelgabriel commented Sep 12, 2016

@rodrigok this looks like an errors on the LDAP sync function, can you please take a quick look?

@mpetersen42
Copy link

This is on an existing upgraded install using only LDAP (and local) authentication. If you "pre-create" a local user with the same username they'll be converted to LDAP on login fine. However if you login as an LDAP user that doesn't exist it attempts to create the user with an undefined username.

@engelgabriel engelgabriel added this to the 0.40.0 milestone Sep 13, 2016
@rodrigok
Copy link
Member

@mpetersen42 Which field are you using as your LDAP Username Field?

@mpetersen42
Copy link

Blank or default, so 'sAMAccountName'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants