Alright Experts, here's an interesting one.
I'm trying to setup an isolated server for testing scripts. These scripts FTP (all protocols) between various FTP hosts from various network shares. I do not wish to affect any production system so I've loaded FileZilla server on this as well as OpenSSH in order to accomodate the FTP, FTPS and SFTP connections these scripts make. I've made DNS entries for all of the FTP servers and pointed them to localhost (127.0.0.1) and everything seems to run very smoothly.
Now, the hard part. The various scripts also connect to servers on the network on various shares. Now I've created these shares on my test server and can connect to them, with various forms of authentication with no problem as long as I use the test server name or the numerical IP address. The minute I try and connect to the shares with the redirected hostname, I get a "Logon failure: unknown user name or bad password". The security Event Log shows corresponding "ANONYMOUS LOGON" events with IDs of 538 and 540.
So, my dilemma, how to emulate the network shares, with the original hostnames redirected via local HOSTS and LMHOSTS files and have it actually authenticate with the local user IDs I've setup on the test server?
BTW, it's a standalone Server 2003 (x64) R2.