We wrote a LaserFiche API and we want to use windows authentication. In IIS, Windows Authentication is enabled and everything else is disabled, Kerberos is also set-up but when we ran our client that calls the API, we get this error "Laserfiche.RepositoryAccess.AccessDeniedException: The user account name or password is incorrect. [9010]."
Hosting the API on the LaserFiche server did not make any difference, this is the error we get:
Laserfiche.RepositoryAccess.AccessDeniedException: Log in failed because the number of sessions has reached the licensed limit, or the user account has reached its session limit, or no named user license has been allocated to the user account. [9030]
at Laserfiche.RepositoryAccess.Session.SendLogInRequest(String idnRepName, HttpCredential credentials)
at Laserfiche.RepositoryAccess.Session.LoginToServer(RepositoryRegistration repository, HttpCredential credentials)
Below is the code snippet for the log-in
session.Connect(repository);
if (session.IsConnected)
{
// Log in using windows auth
session.LogIn();
}
The API works when we pass a LaserFiche user name and password or when we we use a specific windows account in the AppPool that is used by the Web API but we don't want to use a LaserFiche account or assign a specific windows account in the application pool, is there anything that we are missing?