npm 使用LDAP身份验证的Verdaccio

xiozqbni  于 2023-01-26  发布在  其他
关注(0)|答案(1)|浏览(287)

我想问一下是否有人尝试过使用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?

相关问题