Hello,
I am facing strange login issue with basic and unable to resolve it as there is no more information.
I am getting ServerNotFoundMIPException when try to login using basic user through SDK. Below is Code snippets to understand the logic. My basic user is in administrator group.
Following thing works with basic user:
- I am able to login into XProtect Management Client;
- Basic user works fine for this sample CameraStreamResolution: https://github.com/milestonesys/mipsdk-samples-component/tree/main/CameraStreamResolution
My code works fine if I use default or window auth mode.
I tried to validate with version of MilestoneSystems.VideoOS.Platform. I am using 22.2.0. I ran the sample app in the same version and it is working fine there.
switch (_auth)
{
case Authorizationmodes.DefaultWindows:
cc = Util.BuildCredentialCache(uri, "", "", "Negotiate");
break;
case Authorizationmodes.Windows:
cc = Util.BuildCredentialCache(uri, _user, _securePwd, "Negotiate");
break;
case Authorizationmodes.Basic:
cc = Util.BuildCredentialCache(uri, _user, _securePwd, "Basic");
break;
}
VideoOS.Platform.SDK.Environment.AddServer(_secureOnly, uri, cc);
try
{
VideoOS.Platform.SDK.Environment.Login(uri, IntegrationId, IntegrationName, Version, ManufacturerName);
}
catch (ServerNotFoundMIPException snfe)
{
Log.Error("Login Server not found: {exception_msg}: {exception}",
snfe.Message, snfe);
VideoOS.Platform.SDK.Environment.RemoveServer(uri);
throw snfe;
}
Please suggest how can I resolve this?
