2015-09-27 85 views
1

我試圖實現這個meteorjs插件允許LDAP/AD身份驗證。該插件安裝時沒有錯誤,但嘗試登錄時收到以下錯誤。meteorjs應用程序錯誤實施流星帳戶ldap

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問題。

套餐:https://github.com/tdamsma/meteor-accounts-ldap/

+0

你能發佈一個包的鏈接嗎? – challett

+0

查看此拉取請求:https://github.com/tdamsma/meteor-accounts-ldap/pull/3。維護人員尚未合併此修復程序。你可以克隆發起拉請求的回購,看看是否可以解決你的問題 – challett

+0

這有效,添加這個答案,所以我可以給信貸 – smokes2345

回答

1

看到這個拉請求:#3。維護人員尚未合併此修復程序。你可以克隆啓動pull請求的repo,看看是否解決了你的問題。

拉取請求基本上將password字段重命名爲其他內容以避免與accounts-password包發生衝突。