Solved

Emulating Network Shares on local server

Posted on 2010-08-27
4
329 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 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