Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
node ldap client
npm install node-ldap
var LdapClient = RedisClient('node-ldap');
var client = new LdapClient({
ldapUrl: 'ldap://192.168.1.81:389',
userDn: 'administrator@ad.yliyun.com',
password: 'yliyun@123'
});
// 用户认证
client.auth('administrator@ad.yliyun.com', 'yliyun@123').then(function() {
console.log('success');
}).catch(function(err) {
console.error(err);
});
// 搜索部门
client.searchOU('dc=ad,dc=yliyun,dc=com').then(function(ous) {
console.log(ous);
}).catch(function(err) {
console.error(err);
});
// 搜索用户
client.searchUser('dc=ad,dc=yliyun,dc=com').then(function(users) {
console.log(users);
}).catch(function(err) {
console.error(err);
});
// 搜索
client.searchUser({
base: 'dc=ad,dc=yliyun,dc=com',
scope: 'sub', // 默认为'one'
paged: 'true', // 默认为true
filter: '(objectclass=organizationalUnit)'
}).then(function(rows) {
console.log(rows);
}).catch(function(err) {
console.error(err);
});
// 断开连接
client.disconnect();
FAQs
node ldap client
The npm package node-ldap receives a total of 2 weekly downloads. As such, node-ldap popularity was classified as not popular.
We found that node-ldap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.