1
我使用npmjs中的activedirectory module在我的一個節點應用程序中針對Active Directory進行身份驗證,我的問題是 - 是否需要在使用AD進行身份驗證時發送純字符串密碼?我的意思是,如果廣告存儲用戶密碼,它必須以某種方式或其他方式對其進行加密,那麼我們是否可以發送加密的密碼以進行身份驗證?這裏是我的意思是 -NPM - ActiveDirectory模塊身份驗證
ad.authenticate(username, password, function(err, auth) {
// instead of plain password can it be encrypted password?
if (err) {
console.log('ERROR: '+JSON.stringify(err));
return;
}
if (auth) {
console.log('Authenticated!');
}
else {
console.log('Authentication failed!');
}
})