-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Authentication Issue with SessionManager.Instance.Connect #1
Comments
hi Guillaume : |
The Initialize() function should be changed to include an additional parameter which specify the sdk dll folder path .
Then in the SessionManager's Connect() function, do this: hpmSession = HPMSdkSession.SessionOpen(server, port, database, sdkUser, sdkUserPwd, callbackHandler, callbackSemaphore, true, EHPMSdkDebugMode.Off, (IntPtr)null, 0, "", sdkLocation, null); Also add a private string sdkLocation member to SessionManager , and initialize it in the constructor . |
Hansoft have been setup in my company to use windows credentials. Therefore, since ObjectWrapper seems to support regular authentication only, no matter how hard I try I cannot get my program to connect to Hansoft.
I'm using this functions "combo" in my program
SessionManager.Initialize(sdkUser, sdkUserPwd, server, portNumber, databaseName);
SessionManager.Instance.Connect();
Where sdkUser, sdkUserPwd, server, portNumber, databaseName are obviously the variables containing the correct information. Since we have Windows logon sdkUser is formatted as so : "domain.com\username"
Do you have a quick fix for this and/or do you plan to release a new version of ObjectWrapper to allow Windows authentication ?
PS : Sorry for my weird username I had to Sign-up quickly - So, no I'm not a bot, and yes I'm a human.
The text was updated successfully, but these errors were encountered: