
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
verdaccio-ldap-extended
Advanced tools
verdaccio-ldap-extended is a fork of verdaccio-ldap which is a fork of sinopia-ldap that aims to keep backwards compatibility with sinopia, while keeping up with npm changes.
Differs with verdaccio-ldap in accounting ALL of user's groups instead of only root ones: ldapauth#a3b6310a
$ npm install verdaccio
$ npm install verdaccio-ldap
A detailed example of the verdaccio-ldap plugin + OpenLDAP server packed in Docker is available here.
Add to your config.yaml:
auth:
'ldap-extended':
type: ldap
# Optional
# If set, the outcome of plugin would consider these groups only (cut off unimportant LDAP groups)
considerableGroups: ['groupA', 'groupB']
client_options:
url: "ldaps://ldap.example.com"
# Only required if you need auth to bind
adminDn: "cn=admin,dc=example,dc=com"
adminPassword: "admin"
# Search base for users
searchBase: "ou=People,dc=example,dc=com"
searchFilter: "(uid={{username}})"
# If you are using groups, this is also needed
groupDnProperty: 'cn',
groupSearchBase: 'ou=groups,dc=myorg,dc=com',
# If you have memberOf support on your ldap
searchAttributes: ['*', 'memberOf']
# Else, if you don't (use one or the other):
# groupSearchFilter: '(memberUid={{dn}})'
#
# Optional, default false.
# If true, then up to 100 credentials at a time will be cached for 5 minutes.
cache: false
# Optional
reconnect: true
It's called as:
require('verdaccio-ldap-extended')(config, stuff)
Where:
This should export two functions:
adduser(user, password, cb)
It should respond with:
cb(err) in case of an error (error will be returned to user)cb(null, false) in case registration is disabled (next auth plugin will be executed)cb(null, true) in case user registered successfullyIt's useful to set err.status property to set http status code (e.g. err.status = 403).
authenticate(user, password, cb)
It should respond with:
cb(err) in case of a fatal error (error will be returned to user, keep those rare)cb(null, false) in case user not authenticated (next auth plugin will be executed)cb(null, [groups]) in case user is authenticatedGroups is an array of all users/usergroups this user has access to. You should probably include username itself here.
FAQs
LDAP auth plugin for verdaccio
The npm package verdaccio-ldap-extended receives a total of 0 weekly downloads. As such, verdaccio-ldap-extended popularity was classified as not popular.
We found that verdaccio-ldap-extended 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.