Hi! We are struggling with NTLM login via .NET API and have tried the following methods with no luck. The first three methods always return the User running the IIS App pool, the others return an Error without description. Do you have any suggestions/ideas on how to properly log into DocuWare (OnPrem) via .NET API, with local Windows credentials.
AuthenticationType: Negotiate
ImpersonationLevel: None
IsAnonymous: False
IsAuthenticated: True
IsGuest: False
IsSystem: False
Label:
Name: DOMAIN\My.Username (this is the user credential with which I shuld be logged in)
NameClaimType: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name
Owner: S-1-5-32-544
RoleClaimType: http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid
Token: 3164
User: S-1-x-21-xxxxxxxxxxx-1452108637-xxxxx-xx
UserClaims: System.Security.Claims.Claim[]
1. Method
CreateWithWindowsAuthenticationAsync(new Uri(uri), CredentialCache.DefaultNetworkCredentials)
Error, Access for account "DOMAIN\IIS_APPLICATION_POOL_USER$" was denied. Please try to log in with DocuWare credentials or contact your system administrator.
2. Method
CreateWithWindowsAuthenticationAsync(new Uri(uri), CredentialCache.DefaultNetworkCredentials, organizationName, null, new HttpClientHandler() { UseDefaultCredentials = true }, null)
Error, Access for account "DOMAIN\IIS_APPLICATION_POOL_USER$" was denied. Please try to log in with DocuWare credentials or contact your system administrator.
3. Method
CreateWithWindowsAuthenticationAsync(new Uri(uri), CredentialCache.DefaultNetworkCredentials, organizationName, null, new HttpClientHandler() { Credentials = CredentialCache.DefaultNetworkCredentials, UseDefaultCredentials = true }, null)
Error, Access for account "DOMAIN\IIS_APPLICATION_POOL_USER$" was denied. Please try to log in with DocuWare credentials or contact your system administrator.
4. Method
CreateWithWindowsAuthenticationAsync(new Uri(uri), null, organizationName, null, new HttpClientHandler() { UseDefaultCredentials = true }, null)
Error, External authentication failed!
5. Method
CreateWithWindowsAuthenticationAsync(new Uri(uri), null, organizationName, null, new HttpClientHandler() { Credentials = CredentialCache.DefaultNetworkCredentials, UseDefaultCredentials = true }, null)
Error, External authentication failed!
Thank You in advance.