Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LoginAs for other user than NT-user

Status
Not open for further replies.

Trekveer

Programmer
Aug 20, 2003
3
NL
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
 
You should contact support. I believe they have created a method to match what you had before with the DLL.

Steve Krandel
VERITAS Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top