简体   繁体   English

apache常春藤认证与人工

[英]apache Ivy authentication with artifactory

I have shared repository in artifactory which requires authentication in order to resolve/retrieve dependencies. 我在工件中共享了存储库,该存储库需要进行身份验证才能解决/检索依赖关系。

For some reason Ivy is not able to authenticate. 由于某些原因,Ivy无法进行身份验证。

my ivysettings.xml: 我的ivysettings.xml:

<ivysettings>
  <settings defaultResolver="main" />
  <credentials host="localhost" realm="Artifactory Realm" username="admin" passwd="password" />
  <resolvers>
    <chain name="main">
      <ibiblio name="public" m2compatible="true" root="http://localhost:8081/artifactory/repo" />
    </chain>
  </resolvers>
</ivysettings>

log file: 日志文件:

try to get credentials for: Authenticate Artifactory@localhost
authentication: k='Authenticate Artifactory@localhost' c='null'
HTTP response status: 401 url=https://localhost/artifactory/repo... the rest of the log file...

Artifacotry is configured to authenticate against ldap/active directory Artifacotry配置为针对ldap / active目录进行身份验证

in my configuration realm="Artifactory Realm" was wrong. 在我的配置中realm =“ Artifactory Realm”是错误的。 It should be: realm="Authenticate Artifactory" 应该是:realm =“ Authenticate Artifactory”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM