我正在尝试实现此meteorjs插件以允许LDAP / AD身份验证。插件安装没有错误,但在尝试登录时收到以下错误。
I20150927-17:39:23.412(0)? Exception while invoking method 'login' Error: Match error: Unknown key in field username
I20150927-17:39:23.412(0)? at packages/check/match.js:299:1
I20150927-17:39:23.412(0)? at Function._.each._.forEach (packages/underscore/underscore.js:113:1)
I20150927-17:39:23.412(0)? at checkSubtree (packages/check/match.js:290:1)
I20150927-17:39:23.412(0)? at check (packages/check/match.js:32:1)
I20150927-17:39:23.412(0)? at [object Object].Accounts.registerLoginHandler.check.user (packages/accounts-password/password_server.js:144:1)
I20150927-17:39:23.413(0)? at packages/accounts-base/accounts_server.js:358:1
I20150927-17:39:23.413(0)? at tryLoginMethod (packages/accounts-base/accounts_server.js:161:1)
I20150927-17:39:23.413(0)? at runLoginHandlers (packages/accounts-base/accounts_server.js:355:1)
I20150927-17:39:23.413(0)? at [object Object].Meteor.methods.login (packages/accounts-base/accounts_server.js:409:1)
I20150927-17:39:23.413(0)? at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1617:1)
I20150927-17:39:23.417(0)? Sanitized and reported to the client as: Match failed [400]
过去几天谷歌搜索后,我不知道还有什么可以尝试的。我已经验证我的绑定凭据工作正常,我可以搜索子树,因此它不是ldap问题。
答案 0 :(得分:1)
请参阅此拉取请求:#3。维护者尚未合并此修复程序。您可以克隆发起拉取请求的仓库,看看是否能解决您的问题。
拉取请求基本上会将password
字段重命名为其他内容,以避免与accounts-password
包冲突。