How to use nAnt to copy files to a non-domain machine

nant

I have a nAnt script that works perfectly to build and copy a website to another domain machine. However, when I try to copy the website to a machine not on the domain I get security errors.

I know it's because the user that I have set to run nAnt doesn't have permissions on the remote computer.

Is it possible to specify a remote user to authenticate against when trying to copy files to a non-domain computer? There doesn't seem to be any options for this in the official nAnt documentation.

What other options are available?

Best Answer

We've got round this by having a account with the same username and password on all servers that are involved in the copy. However, we do it the other way round. We copy from a machine in a workgroup to a maching in a domain and it works fine.

e.g. useraccount on workgroup computer: .\CruiseControl password1

useraccount on domain: domain\CruiseControl password1