@Mantas Perhaps I’ve managed to capture the source using _root=DEBUG
. Around the time when the connector dies with an HTTP 401 error, OpenSearch logs show this lengthy part of information:
...
request: BulkShardRequest [[<redacted>.person.document][0]] containing [update {[<redacted>.person.document][139766999], doc_as_upsert[true], doc[index {[null][null], source[<redacted>],"person":<redacted>,"type":"person"}]}], upsert[index {[null][null], source[<redacted>], scripted_upsert[false], detect_noop[true]}]
evaluatedDlsFlsConfig: EvaluatedDlsFlsConfig [dlsQueriesByIndex={}, flsByIndex={}, fieldMaskingByIndex={}]
resolved: Resolved [aliases=[], allIndices=[<redacted>.person.document], types=[*], originalRequested=[<redacted>.person.document], remoteIndices=[]]
mode: ADAPTIVE
[2024-06-26T06:41:59,913][DEBUG][o.o.t.TransportService ] [opensearch-nodes-1] Action: indices:data/write/bulk[s]
[2024-06-26T06:41:59,914][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Check authdomain for rest ldap/1 or 2 in total
[2024-06-26T06:41:59,915][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Clear user cache for opensearchconnector due to EXPIRED
[2024-06-26T06:41:59,915][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] Connect timeout: PT5S/ResponseTimeout: PT0S
[2024-06-26T06:41:59,915][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] bindDn cn=readonly,dc=<redacted>,dc=de, password ****
[2024-06-26T06:41:59,915][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] Will perform simple bind with bind dn
[2024-06-26T06:41:59,927][DEBUG][o.l.BindOperation ] [opensearch-nodes-0] execute request=[org.ldaptive.BindRequest@888246425::bindDn=cn=readonly,dc=<redacted>,dc=de, saslConfig=null, controls=null, referralHandler=null, intermediateResponseHandlers=null] with connection=[org.ldaptive.DefaultConnectionFactory$DefaultConnection@2070013520::config=[org.ldaptive.ConnectionConfig@1605569633::ldapUrl=ldap://ldap.<redacted>.de:10389, connectTimeout=PT5S, responseTimeout=PT0S, sslConfig=null, useSSL=false, useStartTLS=false, connectionInitializer=[org.ldaptive.BindConnectionInitializer@1363518629::bindDn=cn=readonly,dc=<redacted>,dc=de, bindSaslConfig=null, bindControls=null], connectionStrategy=org.ldaptive.DefaultConnectionStrategy@6908834c], providerConnectionFactory=[org.ldaptive.provider.jndi.JndiConnectionFactory@489667419::metadata=[ldapUrl=ldap://ldap.<redacted>.de:10389, count=1], environment={com.sun.jndi.ldap.connect.timeout=5000, java.naming.ldap.version=3, java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, com.sun.jndi.ldap.read.timeout=0}, classLoader=null, providerConfig=[org.ldaptive.provider.jndi.JndiProviderConfig@1522035867::operationExceptionResultCodes=[PROTOCOL_ERROR, SERVER_DOWN], properties={}, controlProcessor=org.ldaptive.provider.ControlProcessor@26a48be5, environment=null, tracePackets=null, removeDnUrls=true, searchIgnoreResultCodes=[TIME_LIMIT_EXCEEDED, SIZE_LIMIT_EXCEEDED, PARTIAL_RESULTS], classLoader=null, sslSocketFactory=null, hostnameVerifier=null]], providerConnection=org.ldaptive.provider.jndi.JndiConnection@b9b7e9e]
[2024-06-26T06:41:59,929][DEBUG][o.l.BindOperation ] [opensearch-nodes-0] execute response=[org.ldaptive.Response@1796139477::result=null, resultCode=SUCCESS, message=null, matchedDn=null, responseControls=null, referralURLs=null, messageId=-1] for request=[org.ldaptive.BindRequest@888246425::bindDn=cn=readonly,dc=<redacted>,dc=de, saslConfig=null, controls=null, referralHandler=null, intermediateResponseHandlers=null] with connection=[org.ldaptive.DefaultConnectionFactory$DefaultConnection@2070013520::config=[org.ldaptive.ConnectionConfig@1605569633::ldapUrl=ldap://ldap.<redacted>.de:10389, connectTimeout=PT5S, responseTimeout=PT0S, sslConfig=null, useSSL=false, useStartTLS=false, connectionInitializer=[org.ldaptive.BindConnectionInitializer@1363518629::bindDn=cn=readonly,dc=<redacted>,dc=de, bindSaslConfig=null, bindControls=null], connectionStrategy=org.ldaptive.DefaultConnectionStrategy@6908834c], providerConnectionFactory=[org.ldaptive.provider.jndi.JndiConnectionFactory@489667419::metadata=[ldapUrl=ldap://ldap.<redacted>.de:10389, count=1], environment={com.sun.jndi.ldap.connect.timeout=5000, java.naming.ldap.version=3, java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, com.sun.jndi.ldap.read.timeout=0}, classLoader=null, providerConfig=[org.ldaptive.provider.jndi.JndiProviderConfig@1522035867::operationExceptionResultCodes=[PROTOCOL_ERROR, SERVER_DOWN], properties={}, controlProcessor=org.ldaptive.provider.ControlProcessor@26a48be5, environment=null, tracePackets=null, removeDnUrls=true, searchIgnoreResultCodes=[TIME_LIMIT_EXCEEDED, SIZE_LIMIT_EXCEEDED, PARTIAL_RESULTS], classLoader=null, sslSocketFactory=null, hostnameVerifier=null]], providerConnection=org.ldaptive.provider.jndi.JndiConnection@b9b7e9e]
[2024-06-26T06:41:59,929][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] Opened a connection, total count is now 1
[2024-06-26T06:41:59,929][DEBUG][o.l.SearchOperation ] [opensearch-nodes-0] execute request=[org.ldaptive.SearchRequest@1356983043::baseDn=ou=users,dc=<redacted>,dc=de, searchFilter=[org.ldaptive.SearchFilter@457579389::filter=(cn={0}), parameters={0=opensearchconnector}], returnAttributes=[*, +], searchScope=SUBTREE, timeLimit=PT0S, sizeLimit=0, derefAliases=ALWAYS, typesOnly=false, binaryAttributes=null, sortBehavior=UNORDERED, searchEntryHandlers=null, searchReferenceHandlers=[org.ldaptive.referral.SearchReferralHandler$SearchReferenceHandler@724b8c9b], controls=null, referralHandler=org.ldaptive.referral.SearchReferralHandler@70b2ca94, intermediateResponseHandlers=null] with connection=com.amazon.dlic.auth.ldap.backend.LDAPAuthorizationBackend$4@200d3592
[2024-06-26T06:41:59,932][DEBUG][o.l.SearchOperation ] [opensearch-nodes-0] execute response=[org.ldaptive.Response@1011953671::result=[org.ldaptive.SearchResult@4303153::entries=[], references=[]], resultCode=SUCCESS, message=null, matchedDn=null, responseControls=null, referralURLs=null, messageId=-1] for request=[org.ldaptive.SearchRequest@1356983043::baseDn=ou=users,dc=<redacted>,dc=de, searchFilter=[org.ldaptive.SearchFilter@457579389::filter=(cn={0}), parameters={0=opensearchconnector}], returnAttributes=[*, +], searchScope=SUBTREE, timeLimit=PT0S, sizeLimit=0, derefAliases=ALWAYS, typesOnly=false, binaryAttributes=null, sortBehavior=UNORDERED, searchEntryHandlers=null, searchReferenceHandlers=[org.ldaptive.referral.SearchReferralHandler$SearchReferenceHandler@724b8c9b], controls=null, referralHandler=org.ldaptive.referral.SearchReferralHandler@70b2ca94, intermediateResponseHandlers=null] with connection=com.amazon.dlic.auth.ldap.backend.LDAPAuthorizationBackend$4@200d3592
[2024-06-26T06:41:59,932][DEBUG][c.a.d.a.l.b.LDAPAuthenticationBackend] [opensearch-nodes-0] Results for LDAP search for opensearchconnector in base _legacyConfig:
[2024-06-26T06:41:59,932][DEBUG][c.a.d.a.l.b.LDAPAuthenticationBackend] [opensearch-nodes-0] No user opensearchconnector found
[2024-06-26T06:41:59,932][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] Closed a connection, total count is now 0
[2024-06-26T06:41:59,932][DEBUG][c.a.d.a.l.b.LDAPAuthenticationBackend] [opensearch-nodes-0] Unable to authenticate user due to
org.opensearch.OpenSearchSecurityException: No user opensearchconnector found
at com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend.authenticate(LDAPAuthenticationBackend.java:111) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:589) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:579) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4938) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:4019) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4933) [guava-32.1.3-jre.jar:?]
at org.opensearch.security.auth.BackendRegistry.authcz(BackendRegistry.java:579) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry.authenticate(BackendRegistry.java:331) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.filter.SecurityRestFilter.checkAndAuthenticateRequest(SecurityRestFilter.java:309) [opensearch-security-2.14.0.0.jar:2.14.0.0]
...
[2024-06-26T06:41:59,934][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Check authdomain for rest ldap/1 or 2 in total
[2024-06-26T06:41:59,935][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] Connect timeout: PT5S/ResponseTimeout: PT0S
[2024-06-26T06:41:59,935][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] bindDn cn=readonly,dc=<redacted>,dc=de, password ****
[2024-06-26T06:41:59,935][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] Will perform simple bind with bind dn
[2024-06-26T06:41:59,934][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Can not authenticate opensearchconnector due to exception
com.google.common.util.concurrent.UncheckedExecutionException: OpenSearchSecurityException[OpenSearchSecurityException[No user opensearchconnector found]]; nested: OpenSearchSecurityException[No user opensearchconnector found];
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2087) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:4019) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4933) ~[guava-32.1.3-jre.jar:?]
at org.opensearch.security.auth.BackendRegistry.authcz(BackendRegistry.java:579) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry.authenticate(BackendRegistry.java:331) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.filter.SecurityRestFilter.checkAndAuthenticateRequest(SecurityRestFilter.java:309) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.ssl.http.netty.Netty4HttpRequestHeaderVerifier.channelRead0(Netty4HttpRequestHeaderVerifier.java:91) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.ssl.http.netty.Netty4HttpRequestHeaderVerifier.channelRead0(Netty4HttpRequestHeaderVerifier.java:38) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.109.Final.jar:4.1.109.Final]
...
Caused by: org.opensearch.OpenSearchSecurityException: OpenSearchSecurityException[No user opensearchconnector found]
at com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend.authenticate(LDAPAuthenticationBackend.java:148) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:589) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:579) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4938) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) ~[guava-32.1.3-jre.jar:?]
... 47 more
Caused by: org.opensearch.OpenSearchSecurityException: No user opensearchconnector found
at com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend.authenticate(LDAPAuthenticationBackend.java:111) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:589) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:579) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4938) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) ~[guava-32.1.3-jre.jar:?]
... 47 more
[2024-06-26T06:41:59,935][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Cannot authenticate rest user opensearchconnector (or add roles) with authdomain ldap/1 of [AuthDomain [backend=com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend@13ddbde4, httpAuthenticator=org.opensearch.security.http.HTTPBasicAuthenticator@2e90ee51, order=1, challenge=true], AuthDomain [backend=org.opensearch.security.auth.internal.InternalAuthenticationBackend@7d9587b3, httpAuthenticator=org.opensearch.security.http.HTTPBasicAuthenticator@1e7e201e, order=4, challenge=true]], try next
[2024-06-26T06:41:59,935][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Check authdomain for rest internal/4 or 2 in total
[2024-06-26T06:41:59,937][DEBUG][o.l.BindOperation ] [opensearch-nodes-0] execute request=[org.ldaptive.BindRequest@1794154177::bindDn=cn=readonly,dc=<redacted>,dc=de, saslConfig=null, controls=null, referralHandler=null, intermediateResponseHandlers=null] with connection=[org.ldaptive.DefaultConnectionFactory$DefaultConnection@1073711515::config=[org.ldaptive.ConnectionConfig@1158474574::ldapUrl=ldap://ldap.<redacted>.de:10389, connectTimeout=PT5S, responseTimeout=PT0S, sslConfig=null, useSSL=false, useStartTLS=false, connectionInitializer=[org.ldaptive.BindConnectionInitializer@367246557::bindDn=cn=readonly,dc=<redacted>,dc=de, bindSaslConfig=null, bindControls=null], connectionStrategy=org.ldaptive.DefaultConnectionStrategy@7b8b3e36], providerConnectionFactory=[org.ldaptive.provider.jndi.JndiConnectionFactory@947635085::metadata=[ldapUrl=ldap://ldap.<redacted>.de:10389, count=1], environment={com.sun.jndi.ldap.connect.timeout=5000, java.naming.ldap.version=3, java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, com.sun.jndi.ldap.read.timeout=0}, classLoader=null, providerConfig=[org.ldaptive.provider.jndi.JndiProviderConfig@445585751::operationExceptionResultCodes=[PROTOCOL_ERROR, SERVER_DOWN], properties={}, controlProcessor=org.ldaptive.provider.ControlProcessor@12024b8f, environment=null, tracePackets=null, removeDnUrls=true, searchIgnoreResultCodes=[TIME_LIMIT_EXCEEDED, SIZE_LIMIT_EXCEEDED, PARTIAL_RESULTS], classLoader=null, sslSocketFactory=null, hostnameVerifier=null]], providerConnection=org.ldaptive.provider.jndi.JndiConnection@30daad77]
[2024-06-26T06:41:59,939][DEBUG][o.l.BindOperation ] [opensearch-nodes-0] execute response=[org.ldaptive.Response@1457219402::result=null, resultCode=SUCCESS, message=null, matchedDn=null, responseControls=null, referralURLs=null, messageId=-1] for request=[org.ldaptive.BindRequest@1794154177::bindDn=cn=readonly,dc=<redacted>,dc=de, saslConfig=null, controls=null, referralHandler=null, intermediateResponseHandlers=null] with connection=[org.ldaptive.DefaultConnectionFactory$DefaultConnection@1073711515::config=[org.ldaptive.ConnectionConfig@1158474574::ldapUrl=ldap://ldap.<redacted>.de:10389, connectTimeout=PT5S, responseTimeout=PT0S, sslConfig=null, useSSL=false, useStartTLS=false, connectionInitializer=[org.ldaptive.BindConnectionInitializer@367246557::bindDn=cn=readonly,dc=<redacted>,dc=de, bindSaslConfig=null, bindControls=null], connectionStrategy=org.ldaptive.DefaultConnectionStrategy@7b8b3e36], providerConnectionFactory=[org.ldaptive.provider.jndi.JndiConnectionFactory@947635085::metadata=[ldapUrl=ldap://ldap.<redacted>.de:10389, count=1], environment={com.sun.jndi.ldap.connect.timeout=5000, java.naming.ldap.version=3, java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, com.sun.jndi.ldap.read.timeout=0}, classLoader=null, providerConfig=[org.ldaptive.provider.jndi.JndiProviderConfig@445585751::operationExceptionResultCodes=[PROTOCOL_ERROR, SERVER_DOWN], properties={}, controlProcessor=org.ldaptive.provider.ControlProcessor@12024b8f, environment=null, tracePackets=null, removeDnUrls=true, searchIgnoreResultCodes=[TIME_LIMIT_EXCEEDED, SIZE_LIMIT_EXCEEDED, PARTIAL_RESULTS], classLoader=null, sslSocketFactory=null, hostnameVerifier=null]], providerConnection=org.ldaptive.provider.jndi.JndiConnection@30daad77]
[2024-06-26T06:41:59,939][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] Opened a connection, total count is now 1
[2024-06-26T06:41:59,939][DEBUG][o.l.SearchOperation ] [opensearch-nodes-0] execute request=[org.ldaptive.SearchRequest@-350849793::baseDn=ou=users,dc=<redacted>,dc=de, searchFilter=[org.ldaptive.SearchFilter@457579389::filter=(cn={0}), parameters={0=opensearchconnector}], returnAttributes=[*, +], searchScope=SUBTREE, timeLimit=PT0S, sizeLimit=0, derefAliases=ALWAYS, typesOnly=false, binaryAttributes=null, sortBehavior=UNORDERED, searchEntryHandlers=null, searchReferenceHandlers=[org.ldaptive.referral.SearchReferralHandler$SearchReferenceHandler@34fc8967], controls=null, referralHandler=org.ldaptive.referral.SearchReferralHandler@3422e244, intermediateResponseHandlers=null] with connection=com.amazon.dlic.auth.ldap.backend.LDAPAuthorizationBackend$4@517650a2
[2024-06-26T06:41:59,941][DEBUG][o.l.SearchOperation ] [opensearch-nodes-0] execute response=[org.ldaptive.Response@1545243889::result=[org.ldaptive.SearchResult@4303153::entries=[], references=[]], resultCode=SUCCESS, message=null, matchedDn=null, responseControls=null, referralURLs=null, messageId=-1] for request=[org.ldaptive.SearchRequest@-350849793::baseDn=ou=users,dc=<redacted>,dc=de, searchFilter=[org.ldaptive.SearchFilter@457579389::filter=(cn={0}), parameters={0=opensearchconnector}], returnAttributes=[*, +], searchScope=SUBTREE, timeLimit=PT0S, sizeLimit=0, derefAliases=ALWAYS, typesOnly=false, binaryAttributes=null, sortBehavior=UNORDERED, searchEntryHandlers=null, searchReferenceHandlers=[org.ldaptive.referral.SearchReferralHandler$SearchReferenceHandler@34fc8967], controls=null, referralHandler=org.ldaptive.referral.SearchReferralHandler@3422e244, intermediateResponseHandlers=null] with connection=com.amazon.dlic.auth.ldap.backend.LDAPAuthorizationBackend$4@517650a2
[2024-06-26T06:41:59,941][DEBUG][c.a.d.a.l.b.LDAPAuthenticationBackend] [opensearch-nodes-0] Results for LDAP search for opensearchconnector in base _legacyConfig:
[2024-06-26T06:41:59,941][DEBUG][c.a.d.a.l.b.LDAPAuthenticationBackend] [opensearch-nodes-0] No user opensearchconnector found
[2024-06-26T06:41:59,941][DEBUG][c.a.d.a.l.b.LDAPAuthorizationBackend] [opensearch-nodes-0] Closed a connection, total count is now 0
[2024-06-26T06:41:59,941][DEBUG][c.a.d.a.l.b.LDAPAuthenticationBackend] [opensearch-nodes-0] Unable to authenticate user due to
org.opensearch.OpenSearchSecurityException: No user opensearchconnector found
at com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend.authenticate(LDAPAuthenticationBackend.java:111) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:589) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:579) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4938) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:4019) [guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4933) [guava-32.1.3-jre.jar:?]
at org.opensearch.security.auth.BackendRegistry.authcz(BackendRegistry.java:579) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry.authenticate(BackendRegistry.java:331) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.filter.SecurityRestFilter.checkAndAuthenticateRequest(SecurityRestFilter.java:309) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.ssl.http.netty.Netty4HttpRequestHeaderVerifier.channelRead0(Netty4HttpRequestHeaderVerifier.java:91) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.ssl.http.netty.Netty4HttpRequestHeaderVerifier.channelRead0(Netty4HttpRequestHeaderVerifier.java:38) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.109.Final.jar:4.1.109.Final]
...
[2024-06-26T06:41:59,942][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Can not authenticate opensearchconnector due to exception
com.google.common.util.concurrent.UncheckedExecutionException: OpenSearchSecurityException[OpenSearchSecurityException[No user opensearchconnector found]]; nested: OpenSearchSecurityException[No user opensearchconnector found];
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2087) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:4019) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4933) ~[guava-32.1.3-jre.jar:?]
at org.opensearch.security.auth.BackendRegistry.authcz(BackendRegistry.java:579) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry.authenticate(BackendRegistry.java:331) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.filter.SecurityRestFilter.checkAndAuthenticateRequest(SecurityRestFilter.java:309) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.ssl.http.netty.Netty4HttpRequestHeaderVerifier.channelRead0(Netty4HttpRequestHeaderVerifier.java:91) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.ssl.http.netty.Netty4HttpRequestHeaderVerifier.channelRead0(Netty4HttpRequestHeaderVerifier.java:38) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.109.Final.jar:4.1.109.Final]
...
Caused by: org.opensearch.OpenSearchSecurityException: OpenSearchSecurityException[No user opensearchconnector found]
at com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend.authenticate(LDAPAuthenticationBackend.java:148) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:589) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:579) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4938) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) ~[guava-32.1.3-jre.jar:?]
... 47 more
Caused by: org.opensearch.OpenSearchSecurityException: No user opensearchconnector found
at com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend.authenticate(LDAPAuthenticationBackend.java:111) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:589) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:579) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4938) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) ~[guava-32.1.3-jre.jar:?]
... 47 more
[2024-06-26T06:41:59,942][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Can not authenticate opensearchconnector due to exception
com.google.common.util.concurrent.UncheckedExecutionException: OpenSearchSecurityException[OpenSearchSecurityException[No user opensearchconnector found]]; nested: OpenSearchSecurityException[No user opensearchconnector found];
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2087) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:4019) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4933) ~[guava-32.1.3-jre.jar:?]
at org.opensearch.security.auth.BackendRegistry.authcz(BackendRegistry.java:579) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry.authenticate(BackendRegistry.java:331) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.filter.SecurityRestFilter.checkAndAuthenticateRequest(SecurityRestFilter.java:309) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.ssl.http.netty.Netty4HttpRequestHeaderVerifier.channelRead0(Netty4HttpRequestHeaderVerifier.java:91) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.ssl.http.netty.Netty4HttpRequestHeaderVerifier.channelRead0(Netty4HttpRequestHeaderVerifier.java:38) [opensearch-security-2.14.0.0.jar:2.14.0.0]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.109.Final.jar:4.1.109.Final]
...
Caused by: org.opensearch.OpenSearchSecurityException: OpenSearchSecurityException[No user opensearchconnector found]
at com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend.authenticate(LDAPAuthenticationBackend.java:148) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:589) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:579) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4938) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) ~[guava-32.1.3-jre.jar:?]
... 47 more
Caused by: org.opensearch.OpenSearchSecurityException: No user opensearchconnector found
at com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend.authenticate(LDAPAuthenticationBackend.java:111) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:589) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at org.opensearch.security.auth.BackendRegistry$5.call(BackendRegistry.java:579) ~[opensearch-security-2.14.0.0.jar:2.14.0.0]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4938) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) ~[guava-32.1.3-jre.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) ~[guava-32.1.3-jre.jar:?]
... 47 more
[2024-06-26T06:41:59,943][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Cannot authenticate rest user opensearchconnector (or add roles) with authdomain internal/4 of [AuthDomain [backend=com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend@13ddbde4, httpAuthenticator=org.opensearch.security.http.HTTPBasicAuthenticator@2e90ee51, order=1, challenge=true], AuthDomain [backend=org.opensearch.security.auth.internal.InternalAuthenticationBackend@7d9587b3, httpAuthenticator=org.opensearch.security.http.HTTPBasicAuthenticator@1e7e201e, order=4, challenge=true]], try next
[2024-06-26T06:41:59,943][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Cannot authenticate rest user opensearchconnector (or add roles) with authdomain ldap/1 of [AuthDomain [backend=com.amazon.dlic.auth.ldap.backend.LDAPAuthenticationBackend@13ddbde4, httpAuthenticator=org.opensearch.security.http.HTTPBasicAuthenticator@2e90ee51, order=1, challenge=true], AuthDomain [backend=org.opensearch.security.auth.internal.InternalAuthenticationBackend@7d9587b3, httpAuthenticator=org.opensearch.security.http.HTTPBasicAuthenticator@1e7e201e, order=4, challenge=true]], try next
[2024-06-26T06:41:59,943][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] User still not authenticated after checking 2 auth domains
[2024-06-26T06:41:59,943][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Check authdomain for rest internal/4 or 2 in total
[2024-06-26T06:41:59,943][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Rerequest with class org.opensearch.security.http.HTTPBasicAuthenticator
[2024-06-26T06:41:59,944][DEBUG][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Rerequest class org.opensearch.security.http.HTTPBasicAuthenticator failed
[2024-06-26T06:41:59,944][WARN ][o.o.s.a.BackendRegistry ] [opensearch-nodes-0] Authentication finally failed for opensearchconnector from 10.96.21.147:60530
...
(I’ve redacted parts of the call stacks to have this text fit into the response…)
As stated initially, the referenced user opensearchconnector
is defined in internal_users.yml
and roles.yml
(role kafka_sink
), and should be excluded from LDAP search as per:
...
authz:
ldap_roles:
authorization_backend:
config:
skip_users:
- ...
- opensearchconnector
- ...
...