up vote 1 down vote favorite
share [g+] share [fb]

I'm using Vista, and need to temporarily (1 day a week at a client) logon to another windows domain (my laptop is on the work domain, and I don't want to have to put the machine permanently on the client's domain).

I need to actually logon to the domain, because I need to use windows authentication for things like SQL Server, I know that you can put in the username/pass for file shares.

I have a login for the domain, and admin rights on my machine.

Is this possible?

link|improve this question
feedback

3 Answers

If you have a domain account, you should be able to authenticate to the target machine with your domain credentials and have those credentials passed for other operations (such as your SQL login). Try authenticating to the IPC Share on the target machine as follows. Run a command prompt as administrator and do ...

net use \\10.1.1.1\IPC$ /u:DOMAIN\UserName password

Substitute 10.1.1.1 with the IP Address of the computer you want to connect to and put your credentials in properly for the /u switch.

link|improve this answer
hmm, running that command gives me "The command completed successfully." in the command line, but when connecting to sql, I get an error message "Cannot generate SSPI context". – Gareth Aug 27 '09 at 7:31
Apparently this solution stopped working with SQL Server 2005 – Col Aug 27 '09 at 8:14
feedback

This solution is supposed to work with 2005

http://www.eggheadcafe.com/conversation.aspx?messageid=32222857&threadid=31792004

The solution given is for the management studio.

link|improve this answer
feedback
up vote 0 down vote accepted

This blog entry seems to help with a lot of cross-domain issues: http://www.olegsych.com/2009/05/crossing-domain-boundaries-windows-authentication/

I've successfully used the runas /user:domain\account /netonly <program> command to start up sqlwb.exe and therefore connect to sql server. It also seems to work with other network applications.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.