You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 8, 2019. It is now read-only.
We use multiple uid fields in our LDAP database and Let's Chat is choking on that because it concatenates all the fields into one value:
{ [ValidationError: User validation failed]
stack: 'Error\n at MongooseError.ValidationError (/var/www/lets-chat/node_modules/mongoose/lib/error/validation.js:22:16)\n at model.Document.invalidate (/var/www/lets-chat/node_modules/mongoose/lib/document.js:1162:32)\n at /var/www/lets-chat/node_modules/mongoose/lib/document.js:1037:16\n at validate (/var/www/lets-chat/node_modules/mongoose/lib/schematype.js:651:7)\n at /var/www/lets-chat/node_modules/mongoose/lib/schematype.js:679:9\n at Array.forEach (native)\n at SchemaString.SchemaType.doValidate (/var/www/lets-chat/node_modules/mongoose/lib/schematype.js:656:19)\n at /var/www/lets-chat/node_modules/mongoose/lib/document.js:1035:9\n at process._tickCallback (node.js:419:13)',
message: 'User validation failed',
name: 'ValidationError',
errors:
{ uid:
{ [ValidatorError: invalid ldap/kerberos username]
properties: [Object],
stack: 'Error\n at MongooseError.ValidatorError (/var/www/lets-chat/node_modules/mongoose/lib/error/validator.js:25:16)\n at validate (/var/www/lets-chat/node_modules/mongoose/lib/schematype.js:650:13)\n at /var/www/lets-chat/node_modules/mongoose/lib/schematype.js:679:9\n at Array.forEach (native)\n at SchemaString.SchemaType.doValidate (/var/www/lets-chat/node_modules/mongoose/lib/schematype.js:656:19)\n at /var/www/lets-chat/node_modules/mongoose/lib/document.js:1035:9\n at process._tickCallback (node.js:419:13)',
message: 'invalid ldap/kerberos username',
name: 'ValidatorError',
kind: 'user defined',
path: 'uid',
value: 'ondrej,ondrej.sury,oerdnj' },
username:
{ [ValidatorError: Path `username` is invalid (ondrej,ondrej.sury,oerdnj).]
properties: [Object],
stack: 'Error\n at MongooseError.ValidatorError (/var/www/lets-chat/node_modules/mongoose/lib/error/validator.js:25:16)\n at validate (/var/www/lets-chat/node_modules/mongoose/lib/schematype.js:650:13)\n at /var/www/lets-chat/node_modules/mongoose/lib/schematype.js:679:9\n at Array.forEach (native)\n at SchemaString.SchemaType.doValidate (/var/www/lets-chat/node_modules/mongoose/lib/schematype.js:656:19)\n at /var/www/lets-chat/node_modules/mongoose/lib/document.js:1035:9\n at process._tickCallback (node.js:419:13)',
message: 'Path `username` is invalid (ondrej,ondrej.sury,oerdnj).',
name: 'ValidatorError',
kind: 'regexp',
path: 'username',
value: 'ondrej,ondrej.sury,oerdnj' } } }
We use multiple uid fields in our LDAP database and Let's Chat is choking on that because it concatenates all the fields into one value:
The LDAP entry (just uids) looks like this:
It should try to either:
I think that 2) is better approach, but as a temporary workaround I have adopted ldapEmail approach.
I can confirm that I can login now to Let's Chat.
The text was updated successfully, but these errors were encountered: