Hi to all,
We have build a small application that makes use off the BusObj. The program runs in the background. NT-authentication is activated.
In some cases we have to logon to the BusObj several times with different accounts. In earlier versions of BO <6.5 we did the copy trick with de BO libraries but this trick does not seems to work for BO 6.5.1
This results in a successful login but not for the useraccount that was passed in the BusObj.LoginAs. After the login the NT-account is the logged in user.
So:
Switch to NT authentication.
Add an extra (not NT) useraccount with Supervisor (dummy for example) as well as your NT account.
Create the BusObj (Set BoApp = CreateObject("busobj.application")
Try to logon BoApp.LogonAs "dummy", "passw", False, "SecDomain"
After the logon was succesfull, get the busobj.variables("bouser").value and it will not return the dummy account but the logged in NT useraccount.
When BusObj.LoginAs("not_active_nt_user","password",,"secdomain") is used, the login dialog will appear and after pressing OK the "not_active_nt_user" is the loggedin user.
We would like to login without showing the login dialog because it is in a thread that is not visisble for the user.
Unfortunately we did not manage to logon with a user account other than the active NT account.
Who can help.
Regards,
Ivar
We have build a small application that makes use off the BusObj. The program runs in the background. NT-authentication is activated.
In some cases we have to logon to the BusObj several times with different accounts. In earlier versions of BO <6.5 we did the copy trick with de BO libraries but this trick does not seems to work for BO 6.5.1
This results in a successful login but not for the useraccount that was passed in the BusObj.LoginAs. After the login the NT-account is the logged in user.
So:
Switch to NT authentication.
Add an extra (not NT) useraccount with Supervisor (dummy for example) as well as your NT account.
Create the BusObj (Set BoApp = CreateObject("busobj.application")
Try to logon BoApp.LogonAs "dummy", "passw", False, "SecDomain"
After the logon was succesfull, get the busobj.variables("bouser").value and it will not return the dummy account but the logged in NT useraccount.
When BusObj.LoginAs("not_active_nt_user","password",,"secdomain") is used, the login dialog will appear and after pressing OK the "not_active_nt_user" is the loggedin user.
We would like to login without showing the login dialog because it is in a thread that is not visisble for the user.
Unfortunately we did not manage to logon with a user account other than the active NT account.
Who can help.
Regards,
Ivar