Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveDirectoryRealmTests#testUnauthenticatedLookupWithConnectionPool failed to find user #69804

Closed
DaveCTurner opened this issue Mar 2, 2021 · 2 comments
Assignees
Labels
:Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team >test-failure Triaged test failures from CI

Comments

@DaveCTurner
Copy link
Contributor

Build scan: https://gradle-enterprise.elastic.co/s/tw7kq5un6sjus

Repro line: REPRODUCE WITH: ./gradlew ':x-pack:plugin:security:test' --tests "org.elasticsearch.xpack.security.authc.ldap.ActiveDirectoryRealmTests.testUnauthenticatedLookupWithConnectionPool" -Dtests.seed=C166C47928FCFF84 -Dtests.security.manager=true -Dtests.locale=hi -Dtests.timezone=America/Toronto -Druntime.java=8

Reproduces locally?: No, not after a few iterations.

Applicable branches: Only seen in 7.x.

Failure history: The only such failure in many months.

Failure excerpt:

Suite: Test class org.elasticsearch.xpack.security.authc.ldap.ActiveDirectoryRealmTests
  1> [2021-03-02T07:10:15,872][INFO ][o.e.x.s.a.l.ActiveDirectoryRealmTests] [testUnauthenticatedLookupWithConnectionPool] before test
  1> [2021-03-02T07:10:16,461][WARN ][o.e.x.s.a.s.DnRoleMapper ] [testUnauthenticatedLookupWithConnectionPool] Role mapping file [/private/var/lib/jenkins/workspace/elastic+elasticsearch+7.x+multijob-darwin-compatibility/x-pack/plugin/security/build/testrun/test/temp/org.elasticsearch.xpack.security.authc.ldap.ActiveDirectoryRealmTests_C166C47928FCFF84-001/tempDir-002/config/role_mapping.yml] for realm [testunauthenticatedlookupwithconnectionpool] does not exist. Role mapping will be skipped.
  1> [2021-03-02T07:10:21,681][INFO ][o.e.x.s.a.l.ActiveDirectoryRealmTests] [testUnauthenticatedLookupWithConnectionPool] after test
  2> REPRODUCE WITH: ./gradlew ':x-pack:plugin:security:test' --tests "org.elasticsearch.xpack.security.authc.ldap.ActiveDirectoryRealmTests.testUnauthenticatedLookupWithConnectionPool" -Dtests.seed=C166C47928FCFF84 -Dtests.security.manager=true -Dtests.locale=hi -Dtests.timezone=America/Toronto -Druntime.java=8
  2> java.lang.AssertionError: 
    Expected: not null
         but: was null
        at __randomizedtesting.SeedInfo.seed([C166C47928FCFF84:49682346750AAACF]:0)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
        at org.junit.Assert.assertThat(Assert.java:956)
        at org.junit.Assert.assertThat(Assert.java:923)
        at org.elasticsearch.xpack.security.authc.ldap.ActiveDirectoryRealmTests.doUnauthenticatedLookup(ActiveDirectoryRealmTests.java:330)
        at org.elasticsearch.xpack.security.authc.ldap.ActiveDirectoryRealmTests.testUnauthenticatedLookupWithConnectionPool(ActiveDirectoryRealmTests.java:299)
@DaveCTurner DaveCTurner added >test-failure Triaged test failures from CI :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) labels Mar 2, 2021
@elasticmachine elasticmachine added the Team:Security Meta label for security team label Mar 2, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@slobodanadamovic slobodanadamovic self-assigned this Oct 17, 2022
@slobodanadamovic
Copy link
Contributor

I could not reproduce this one. It seems that it did not happen since it was reported. This might be because darwin CI jobs have been removed due to constant failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

3 participants