ADFS service is getting hung frequently.

Shyju Krishnan 0 Reputation points
2023-04-24T09:27:51.3966667+00:00
Hello, 

The ADFS service is getting stuck frequently. When we are trying to reboot the service, we get an error. After rebooting the server, the service will return to normal.

During that time, the group is experiencing an error.

Event logs are mentioned. 

Event id 364 & 111

Error message 
*************

111

********

The Federation Service encountered an error while processing the WS-Trust request. 

Request type: http://schemas.microsoft.com/idfx/requesttype/issue 

Additional Data 

Exception details: 

Microsoft.IdentityServer.Service.SecurityTokenService.ADAccountValidationException: MSIS3173: Active Directory account validation failed. ---> Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapServerUnavailableException: The supplied credential is invalid.

Error code: 49

Server response message: 

 ---> System.DirectoryServices.Protocols.LdapException: The supplied credential is invalid.

   at System.DirectoryServices.Protocols.LdapConnection.BindHelper(NetworkCredential newCredential, Boolean needSetCredential)

   at Microsoft.IdentityServer.GenericLdap.Channel.ConnectionBaseFactory.GenerateConnection()

   at Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapConnectionCache.CacheEntry.CreateConnectionHelper(String server, Boolean isGC, LdapConnectionSettings settings)

   --- End of inner exception stack trace ---

   at Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapConnectionCache.CacheEntry.CreateConnectionHelper(String server, Boolean isGC, LdapConnectionSettings settings)

   at Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapConnectionCache.CacheEntry.CreateConnection(String server, Boolean isGC, LdapConnectionSettings settings)

   at Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapConnectionCache.GetConnectionCore(String server, Boolean isGC, LdapConnectionSettings settings, LdapServerConfiguration& configuration)

   at Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapAttributeStoreReader.GetConnectionToServer()

   at Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapAttributeStoreReader.BeginGetAttributes(Collection`1 attributes, String filter, String location, SearchScope scope, AsyncCallback callback, Object state)

   at Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapAttributeStoreReader.BeginGetAttributes(Collection`1 attributes, String filter, AsyncCallback callback, Object state)

   at Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapAttributeStore.QueryStore(IEnumerator`1 serverEnumerator, String userName, TypedAsyncResult`1 result, Boolean overrideLocation, Collection`1 attributesList, String filter, String location, SearchScope scope)

###########364############

Encountered error during federation passive request. 

Additional Data 

Protocol Name: 

OAuthAuthorizationProtocol 

Relying Party: 

0ce0a7ae-67dd-4ba9-897a-59254fd11c99 

Exception details: 

Microsoft.IdentityServer.Service.SecurityTokenService.ADAccountValidationException: MSIS3173: Active Directory account validation failed. ---> Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapServerUnavailableException: The supplied credential is invalid.

Error code: 49

Server response message: 

 ---> System.DirectoryServices.Protocols.LdapException: The supplied credential is invalid.

   at System.DirectoryServices.Protocols.LdapConnection.BindHelper(NetworkCredential newCredential, Boolean needSetCredential)

   at Microsoft.IdentityServer.GenericLdap.Channel.ConnectionBaseFactory.GenerateConnection()

   at Microsoft.IdentityServer.ClaimsPolicy.Engine.AttributeStore.Ldap.LdapConnectionCache.CacheEntry.CreateConnectionHelper(String server, Boolean isGC, LdapConnectionSettings settings)

   --- End of inner exception stack trace ---
Microsoft Security | Active Directory Federation Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amit Singh 5,306 Reputation points
    2023-04-25T10:07:17.75+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.