Verdaccio与LDAP身份验证

huangapple go评论66阅读模式
英文:

Verdaccio with LDAP authenthication

问题

我想询问是否有人尝试过使用LDAP进行Verdaccio的身份验证。我正在运行版本5.19.0的Docker容器,默认的身份验证方法是htpasswd,但我尝试使用Verdaccio的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}

Dockerfile:

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进行身份验证?

英文:

I will like to ask if anyone has tried to auth. LDAP with verdaccio am running 5.19.0 on docker container default auth. works

htpasswd:
  file: ./htpasswd

but i try getting plugins for verdaccio auth for ldap but not working have been stop here for over a month

i need a plugins to add to the verdaccio 5.19.0 with ldap

here is my config.yaml file on docker

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}

dockerfile

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

i need to auth verdaccio with ldap?

答案1

得分: 1

你可能想阅读我们的博客:

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

英文:

You might want to read our blog

https://verdaccio.org/blog/2019/10/05/verdaccio-4-with-ldap-and-docker

and this example is outdated but might work fine with v5

https://github.com/verdaccio/verdaccio/tree/master/docker-examples/v4/ldap-verdaccio

huangapple
  • 本文由 发表于 2023年1月9日 19:13:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75056459.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定