【发布时间】:2017-05-10 09:34:45
【问题描述】:
我在我的一个节点应用程序中使用来自 npmjs 的activedirectory module 对 Active Directory 进行身份验证,我的问题是 - 在使用 AD 进行身份验证时是否需要发送纯字符串密码?我的意思是如果广告存储了用户密码,它必须以某种方式对其进行加密,我们可以发送加密密码进行身份验证吗?这就是我的意思-
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!');
}
})
【问题讨论】:
标签: node.js authentication encryption npm active-directory