?
Solved

Emulating Network Shares on local server

Posted on 2010-08-27
4
Medium Priority
?
331 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 1000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

752 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