最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

authentication - Is there a way to move the anonymous user back to internal in Artifactory? - Stack Overflow

programmeradmin0浏览0评论

Our anonymous User is somehow not internal and has the problem of timing out sessions for our users

We cant delete the user. And we need anon pulling, we enabled the anon allowance in Artifactory and it works. Till the session of the user times out and we can fix it only, by someone logging into the UI. Not with the anon user, but some other user logging into the UI fixes the Bad Credentials Error.

And maybe we can fix the Problem by moving the anon user back to internal?

Our anonymous User is somehow not internal and has the problem of timing out sessions for our users

We cant delete the user. And we need anon pulling, we enabled the anon allowance in Artifactory and it works. Till the session of the user times out and we can fix it only, by someone logging into the UI. Not with the anon user, but some other user logging into the UI fixes the Bad Credentials Error.

And maybe we can fix the Problem by moving the anon user back to internal?

Share Improve this question asked Feb 5 at 11:18 herbertherbert 133 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

I got it moved to internal, only by exporting and importing again this json as user anonymous, which comes from a clean artifactory install:

{
    "username" : "anonymous",
    "firstName" : null,
    "lastName" : null,
    "email" : null,
    "realm" : "internal",
    "status" : "enabled",
    "lastLoginTime" : 0,
    "lastLoginIp" : null,
    "password" : null,
    "allowedIps" : [ "*" ],
    "created" : 1738314752329,
    "modified" : 1738314752329,
    "failedLoginAttempts" : 0,
    "statusLastModified" : 1738314752329,
    "passwordLastModified" : 0,
    "customData" : {
      "disabled_password" : {
        "value" : "true",
        "sensitive" : false,
        "clusterLocal" : false
      }
    },
    "groups" : [ ]
  }

I believe that it's possible to change the realm by simply executing the following SQL query:

UPDATE access_users set realm = 'internal' WHERE username  = 'anonymous';
发布评论

评论列表(0)

  1. 暂无评论