Skip to content

[HTTP/401 on repo.jenkins-ci.org] Fix LDAP user configurations in Artifactory to avoid unexpected HTTP/401 when logging in #3700

@dduportal

Description

@dduportal

Service(s)

Artifactory

Summary

We recently (past 2 weeks) had a lot of contribuotr users failing to release their plugin due to an authentication problem in Artifactory (repo.jenkins-ci.org): HTTP/401 answered.

  • All accounts are valid LDAP accounts (all users have successfully logged-in on accounts.jenkins.io and/or issues.jenkins.io as a technical proof)
  • The HTTP/401 happens when logging-in in the Artifactory UI, when using the Artifactory API and also when releasing manually a plugin (with the LDAP credentials set up in the Maven's settings.xml).
    • No HTTP/401 happens when using the "CD" process from JEP-299 as it uses short-lived access tokens

The solution is to update user configuration in Artifactory itself (a "proxy" user is created inside Artifactory database when a LDAP account logs in the first time) by setting the boolean attribute "Disable Internal Password" to true to force Artifactory considering only the LDAP system for password instead of checking the "proxy" user local password (??) as described by #3680 (comment).

The following cases where treated with this problem:

This issue is to track the actions required to fix all users:

  • Contacting JFrog about this behavior to have their recommendation and diagnostic
  • And/or doing a batch script using the Artifactory API to force this attribute to true to all users
  • And finding a solution to force this setting to "true" (otherwise we'll keep having it over time)

Reproduction steps

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions