[RTFACT-7173] Multiple logins of the same user create a race condition Created: 11/Feb/15  Updated: 14/Nov/17  Resolved: 11/Nov/15

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Security
Affects Version/s: 3.4.2
Fix Version/s: 4.1.0

Type: Bug Priority: Critical
Reporter: Michal Reuven (Inactive) Assignee: Chen Keinan (Inactive)
Resolution: Fixed Votes: 15
Labels: None

Issue Links:
Relationship
is related to RTFACT-7366 Internal users infrequently lose thei... Resolved

 Description   

When using the same LDAP user to run parallel builds from different machines, the virtual user is periodically losing its internal Artifactory group memberships.



 Comments   
Comment by Johann Ollivier-Lapeyre [ 02/Jun/15 ]

I'm thinking we have the same issue

Comment by Julian Meisel [ 15/Jul/15 ]

Same here, our builduser is loosing group memberships every few days/weeks. With Artifactory 3.0.3 it worked without problems.

Comment by Joseph Hughes [ 17/Aug/15 ]

We are seeing the same problem. It is causing some confidence issues with the artifactory service.

Comment by David Bayendor [ 17/Aug/15 ]

This problem is causing build problems for our developers.

Comment by Daniel Keler [ 15/Oct/15 ]

Logs confirmed. Waiting for customer input.

2015-10-15 22:56:26,811 [http-nio-8081-exec-195] [DEBUG] (o.a.s.l.ArtifactoryLdapAuthenticationProvider:131) - Trying to authenticate user 'XXXXXXXXXX' via ldap.
2015-10-15 22:56:27,154 [http-nio-8081-exec-195] [DEBUG] (o.a.s.l.ArtifactoryLdapAuthenticationProvider:171) - 'XXXXXXXXXX' authenticated successfully by ldap server.
2015-10-15 22:56:27,154 [http-nio-8081-exec-195] [DEBUG] (o.a.s.l.ArtifactoryLdapAuthenticationProvider:182) - User 'XXXXXXXXXX' has email address 'XXXXXXXXXX@jfrog.com'
2015-10-15 22:56:27,154 [http-nio-8081-exec-195] [DEBUG] (o.a.s.l.ArtifactoryLdapAuthenticationProvider:189) - Loading LDAP groups
2015-10-15 22:56:27,155 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:116) - Populating External groups
2015-10-15 22:56:27,325 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:128) - User: XXXXXXXXXX has 3 groups
2015-10-15 22:56:27,326 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:129) - User: XXXXXXXXXX is in the following internal groups [XXXXXXXXXX, XXXXXXXXXX, XXXXXXXXXX]
2015-10-15 22:56:27,326 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:134) - User: LdapUser{uid='XXXXXXXXXX', dn='cn=XXXXXXXXXX,ou=people,ou=il,ou=frogs,dc=jfrog,dc=local'} is in LDAP Group: LdapGroup{groupName='XXXXXXXXXX', description='QA Israel'}
2015-10-15 22:56:27,326 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:134) - User: LdapUser{uid='XXXXXXXXXX', dn='cn=XXXXXXXXXX,ou=people,ou=il,ou=frogs,dc=jfrog,dc=local'} is in LDAP Group: LdapGroup{groupName='XXXXXXXXXX', description='null'}
2015-10-15 22:56:27,326 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:147) - User: LdapUser{uid='XXXXXXXXXX', dn='cn=XXXXXXXXXX,ou=people,ou=il,ou=frogs,dc=jfrog,dc=local'} is being associated with LDAP Artifactory Group: LdapGroup{groupName='XXXXXXXXXX', description='null'}
2015-10-15 22:56:27,327 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:134) - User: LdapUser{uid='XXXXXXXXXX', dn='cn=XXXXXXXXXX,ou=people,ou=il,ou=frogs,dc=jfrog,dc=local'} is in LDAP Group: LdapGroup{groupName='XXXXXXXXXX', description='Managers Israel'}
2015-10-15 22:56:27,327 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:147) - User: LdapUser{uid='XXXXXXXXXX', dn='cn=XXXXXXXXXX,ou=people,ou=il,ou=frogs,dc=jfrog,dc=local'} is being associated with LDAP Artifactory Group: LdapGroup{groupName='XXXXXXXXXX', description='Managers Israel'}
2015-10-15 22:56:27,327 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:166) - starting user XXXXXXXXXX ldap group sync
2015-10-15 22:56:27,327 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:171) - group XXXXXXXXXX is valid
2015-10-15 22:56:27,328 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:171) - group XXXXXXXXXX is valid
2015-10-15 22:56:27,328 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:171) - group XXXXXXXXXX is valid
2015-10-15 22:56:27,328 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:152) - User XXXXXXXXXX has 3 groups
2015-10-15 22:56:27,328 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:153) - User: XXXXXXXXXX is in the following groups [XXXXXXXXXX, XXXXXXXXXX, XXXXXXXXXX]
2015-10-15 22:56:27,328 [http-nio-8081-exec-195] [DEBUG] (o.a.a.l.p.ArtifactoryLdapGroupsPopulator:154) - External Groups populated
2015-10-15 22:56:27,329 [http-nio-8081-exec-195] [DEBUG] (o.a.s.l.ArtifactoryLdapAuthenticationProvider:191) - Finished Loading LDAP groups
Generated at Sat Apr 04 11:02:07 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.