Solved

Emulating Network Shares on local server

Posted on 2010-08-27
4
327 Views
Last Modified: 2012-08-14
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.
0
Comment
Question by:TyTechMilwaukee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 42

Expert Comment

by:kevinhsieh
ID: 33544841
If you want to hit your server using different NetBIOS names, add the names to the registry. See below.

from http://support.microsoft.com/kb/829885,

On the DFS root server, follow these steps to configure the OptionalNames registry value:
Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters
On the Edit menu, point to New, and then click Multi-String Value.
Type OptionalNames, and then press ENTER.
On the Edit menu, click Modify.
In the Value data box, type the NetBIOS names of the old servers (oldserver1, oldserver2, and oldserver3) each on their own line, and then click OK. This action registers the names in Windows Internet Name Service (WINS) for the DFS root server.
Restart the Server service on the DFS root server.
0
 
LVL 1

Author Comment

by:TyTechMilwaukee
ID: 33545377
kevinsieh,

Is DFS required for this option to work? As I mentioned, I am using a single 2003 (x64) R2 server and currently I do not have DFS enabled.
0
 
LVL 42

Accepted Solution

by:
kevinhsieh earned 250 total points
ID: 33545669
Ignore the part about DFS. The situation is common when using DFS to consolidate several file servers.  Just make the registry change and restart the server service.
0
 
LVL 1

Author Closing Comment

by:TyTechMilwaukee
ID: 33545887
Kudos to this expert. He came back with the perfect resolution to my problem.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question