Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Emulating Network Shares on local server

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Learn about cloud computing and its benefits for small business owners.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

618 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