Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
verdaccio-ldap-auth
Advanced tools
注意:这里使用的pnpm的overrides配置,才能正常构建
pnpm add verdaccio-ldap-auth
在配置文件里这样配置
# ...
auth:
auth:
clientOptions:
url: ldap://xxxxx:389 # 请求的url
dnTimeout: 3e3 # 绑定dn超时时间
searchTimeout: 3e3 # 搜索dn超时时间
verifyPasswordOptions:
adminDn: CN=npm服务,DC=163,DC=com
adminPwd: xxxx
baseDn: DC=163,DC=com
searchOptions:
filter:
mail: "{user}@163.me" # mail是ldap字段名,user是登陆的用户名
filter2ReplaceKey: # 用来声明,用请求的user字段填充填searchOptions的filter
user: user
# ...
可以尝试使用如下包进行覆盖
"pnpm": {
"overrides": {
"@ldapjs/dn": "npm:ldapjs-dn-fork@1.1.0"
}
}
require("node:util") # 此处构建babel和rollup都不管
"pnpm": {
"overrides": {
"process-warning": "~2.2.0"
}
}
更多问题文档 make emit work in jest
需要运行在node v14.17 环境下,该环境下一直没有 replaceAll方法,babel也未注入,需要手动引入
import 'core-js/modules/es.string.replace-all'
FAQs
The npm package verdaccio-ldap-auth receives a total of 3 weekly downloads. As such, verdaccio-ldap-auth popularity was classified as not popular.
We found that verdaccio-ldap-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.