Hi everyone.
I use ActiveDirectory to Milestone login.
I’m trying to sign in with the following code:
VideoOS.Platform.SDK.Environment.Login(uri);
The following exception occurs:
catch (InvalidCredentialsMIPException ice)
{
error = "Invalid credentials for: " + ice.Message;
VideoOS.Platform.SDK.Environment.RemoveServer(uri);
}
This is an error message.
error-> Invalid credentials for: HTTP 상태401: Unauthorzed(으)로 인해 요청하지 못했습니다.
Sorry. It is not English.
Here is the translation:
HTTP Status 401: Request failed due to Unauthorzed.
Is there a way to solve it?
Hi,
Have you called Environment.AddServer previously with specifying the right credentials?
You can see example and try the login with AddServer by using e.g. the StatusDemoConsole sample (the login code is in Program.cs).
Yes, Login with the correct credentials.
Login failures are often transient.
Is there a problem in using ActiveDirectory and Failover(Windows Failover Clustering) systems?
It seems to be related.
Failover Clustering works well, but is easy to forget to setup the correct hostname or IP for your registered services seen in Management Client under Tools > Registered Services. The LAN address seen when you click the “Network” button from there may also need to be updated to reflect the name or IP of the role.
Note that you should not reference the name/IP of the cluster anywhere in Milestone because the cluster address does not always reflect the location of the role in the cluster.
If your login issues are transient, I would expect that the same issue is present with Smart Client. And if you are periodically failing over your cluster roles, it’s possible the login is only working properly while one of the nodes has the role.