我想问一下是否有人尝试过使用verdaccio对LDAP进行认证,我在Docker容器上运行5.19.0默认认证。
htpasswd:
file: ./htpasswd
但我尝试获得插件verdaccio auth为ldap,但不工作已停止在这里超过一个月
我需要一个插件添加到verdaccio 5.19.0与ldap
下面是我在Docker上config.yaml文件
storage: /verdaccio/storage
plugins: /verdaccio/plugins
web:
title: Verdaccio
auth:
htpasswd:
file: ./htpasswd
uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
'@*/*':
access: $all
publish: $authenticated
unpublish: $authenticated
proxy: npmjs
'**':
access: $all
publish: $authenticated
unpublish: $authenticated
proxy: npmjs
middlewares:
audit:
enabled: true
logs:
- {type: stdout, format: pretty, level: http}
固定文件
FROM verdaccio/verdaccio:latest
RUN node -v
RUN npm -v
RUN npm i
RUN npm i verdaccio-ldap
RUN npm i verdaccio-activedirectory -g
RUN npm i sinopia-memory -g
我需要用ldap认证verdaccio?
1条答案
按热度按时间vmdwslir1#
你可能想看看我们的博客
https://verdaccio.org/blog/2019/10/05/verdaccio-4-with-ldap-and-docker
这个例子已经过时了,但是在v5中可能工作得很好
https://github.com/verdaccio/verdaccio/tree/master/docker-examples/v4/ldap-verdaccio