Networking Forums

Networking Forums > Computer Networking > Windows Networking > 'dummy' file share?

Reply
Thread Tools Display Modes

'dummy' file share?

 
 
robert.waters
Guest
Posts: n/a

 
      08-09-2007, 04:30 AM
I am testing an application that uses hardcoded unc paths in it's
code; is there any way for me to fake these paths on my windows test
box (Windows XP)?
For example, when the application is running on it's production
server, it might have \\FILESERVER1\path\to\config_file.cfg in it's
source code. The dev machine is not located in the same network, nor
does it have access to any machine named FILESERVER1, but I would like
to mirror those files without having to use a vm having that name, or
running a separate machine just for the purpose of having that name on
the network.

Is there any hosts file/dns/whatever trickery that I might use to fake
that share?

Thanks!

 
Reply With Quote
 
 
 
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      08-09-2007, 06:04 AM
You may add a dns alias to your real server,
and set strictnamechecking to 0
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Servic es\LanmanServer\ParametersValue name: DisableStrictNameCheckingData type: REG_DWORDRadix: DecimalValue: 1--Cordialement,Mathieu CHATEAUhttp://lordoftheping.blogspot.com"robert.waters" <(E-Mail Removed)> wrote in messagenews:(E-Mail Removed) legroups.com...>I am testing an application that uses hardcoded unc paths in it's> code; is there any way for me to fake these paths on my windows test> box (Windows XP)?> For example, when the application is running on it's production> server, it might have \\FILESERVER1\path\to\config_file.cfg in it's> source code. The dev machine is not located in the same network, nor> does it have access to any machine named FILESERVER1, but I would like> to mirror those files without having to use a vm having that name, or> running a separate machine just for the purpose of having that name on> the network.>> Is there any hosts file/dns/whatever trickery that I might use to fake> that share?>> Thanks!>
 
Reply With Quote
 
Mike Lowery
Guest
Posts: n/a

 
      08-09-2007, 02:23 PM
Set FILESERVER1 to whatever IP address you desire in your local hosts file.

"robert.waters" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) s.com...
>I am testing an application that uses hardcoded unc paths in it's
> code; is there any way for me to fake these paths on my windows test
> box (Windows XP)?
> For example, when the application is running on it's production
> server, it might have \\FILESERVER1\path\to\config_file.cfg in it's
> source code. The dev machine is not located in the same network, nor
> does it have access to any machine named FILESERVER1, but I would like
> to mirror those files without having to use a vm having that name, or
> running a separate machine just for the purpose of having that name on
> the network.
>
> Is there any hosts file/dns/whatever trickery that I might use to fake
> that share?
>
> Thanks!
>



 
Reply With Quote
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      08-09-2007, 03:20 PM
that's a poor way to handle this, and hard to find out after.
You should never do this on production, only for debug.

Or it's ok if you are the only user and administrator

--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"Mike Lowery" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Set FILESERVER1 to whatever IP address you desire in your local hosts
> file.
>
> "robert.waters" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) s.com...
>>I am testing an application that uses hardcoded unc paths in it's
>> code; is there any way for me to fake these paths on my windows test
>> box (Windows XP)?
>> For example, when the application is running on it's production
>> server, it might have \\FILESERVER1\path\to\config_file.cfg in it's
>> source code. The dev machine is not located in the same network, nor
>> does it have access to any machine named FILESERVER1, but I would like
>> to mirror those files without having to use a vm having that name, or
>> running a separate machine just for the purpose of having that name on
>> the network.
>>
>> Is there any hosts file/dns/whatever trickery that I might use to fake
>> that share?
>>
>> Thanks!
>>

>
>


 
Reply With Quote
 
robert.waters
Guest
Posts: n/a

 
      08-09-2007, 07:03 PM
On Aug 9, 2:04 am, "Mathieu CHATEAU" <gollum...@free.fr> wrote:
> You may add a dns alias to your real server,
> and set strictnamechecking to 0
> HKEY_LOCAL_MACHINE\System\CurrentControlSet\Servic es\LanmanServer\ParametersValue name: DisableStrictNameCheckingData type: REG_DWORDRadix: DecimalValue: 1--Cordialement,Mathieu CHATEAUhttp://lordoftheping.blogspot.com"robert.waters" <robert.wat...@gmail.com> wrote in messagenews:(E-Mail Removed) legroups.com...>Iam testing an application that uses hardcoded unc paths in it's> code; is there any way for me to fake these paths on my windows test> box (Windows XP)?> For example, when the application is running on it's production> server, it might have \\FILESERVER1\path\to\config_file.cfg in it's> source code. The dev machine is not located in the same network, nor> does it have access to any machine named FILESERVER1, but I would like> to mirror those files without having to use a vm having that name, or> running a separate machine just for the purpose of having that name on> the network.>> Is there any hosts file/dns/whatever trickery that I might use to fake> that share?>> Thanks!>


Thanks.
What I am attempting to do is take the application out of it's network
(into a test network that is dissimilar) and still have it work.
Unfortunately I do not have access to a local dns server; it's just my
home network. I have tried the above recommendation with an entry in
lmhosts instead of a dns alias (lmhosts 127.0.0.1 -> Fileserver1).
This almost works; I can attempt to 'net use \\filesvr1\sharename' but
no matter what I do it says 'bad username/password' (even if i've set
the share to not require a password).

 
Reply With Quote
 
robert.waters
Guest
Posts: n/a

 
      08-09-2007, 09:20 PM
I've figured it out; here is the solution for posterity:

Problem:
Creating an alias to the local computer's netbios name (windows xp
sp2)

Solution:
1) Add the alias in the registry, using HKEY_LOCAL_MACHINE\SYSTEM
\CurrentControlSet\Services\lanmanserver\parameter s\OptionalNames
Ref: http://www.jsifaq.com/SF/Tips/Tip.aspx?id=0062
2) Disable the Windows XP SP2 'loopback check' ("authentication fails
if the FQDN ... that you use does not match the local computer name"
Ref: http://support.microsoft.com/default...b;en-us;896861

Tips:
Enabling account logon events in local security policy showed login
failure events 537 having a status code 0xC000006D
(STATUS_LOGON_FAILURE); checking eventid.net (http://www.eventid.net/
display.asp?eventid=537&eventno=194&source=Securit y&phase=1) led to
the solution.

Mathieu: Setting DisableStrictNameChecking was not necessary because
XPSP2 by default uses only NTLMv1 (non-kerberos) authentication; if I
had been using a server OS, NTLMv2 would have been enabled and
DisableStrictNameChecking would have been required. But if you hadn't
replied, and I hadn't started my google search using that term, I
never would have gotten anywhere Thanks!



 
Reply With Quote
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      08-09-2007, 09:26 PM
sorry i tought this was a server you were trying to alias !
good job for doing it on computer !
now we can do on both ! (but this is a bit bad needing this anyway!


--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"robert.waters" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> I've figured it out; here is the solution for posterity:
>
> Problem:
> Creating an alias to the local computer's netbios name (windows xp
> sp2)
>
> Solution:
> 1) Add the alias in the registry, using HKEY_LOCAL_MACHINE\SYSTEM
> \CurrentControlSet\Services\lanmanserver\parameter s\OptionalNames
> Ref: http://www.jsifaq.com/SF/Tips/Tip.aspx?id=0062
> 2) Disable the Windows XP SP2 'loopback check' ("authentication fails
> if the FQDN ... that you use does not match the local computer name"
> Ref: http://support.microsoft.com/default...b;en-us;896861
>
> Tips:
> Enabling account logon events in local security policy showed login
> failure events 537 having a status code 0xC000006D
> (STATUS_LOGON_FAILURE); checking eventid.net (http://www.eventid.net/
> display.asp?eventid=537&eventno=194&source=Securit y&phase=1) led to
> the solution.
>
> Mathieu: Setting DisableStrictNameChecking was not necessary because
> XPSP2 by default uses only NTLMv1 (non-kerberos) authentication; if I
> had been using a server OS, NTLMv2 would have been enabled and
> DisableStrictNameChecking would have been required. But if you hadn't
> replied, and I hadn't started my google search using that term, I
> never would have gotten anywhere Thanks!
>
>
>


 
Reply With Quote
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      08-09-2007, 09:27 PM
what about if you enforce ntlmv2 trough gpo ?

--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"robert.waters" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> I've figured it out; here is the solution for posterity:
>
> Problem:
> Creating an alias to the local computer's netbios name (windows xp
> sp2)
>
> Solution:
> 1) Add the alias in the registry, using HKEY_LOCAL_MACHINE\SYSTEM
> \CurrentControlSet\Services\lanmanserver\parameter s\OptionalNames
> Ref: http://www.jsifaq.com/SF/Tips/Tip.aspx?id=0062
> 2) Disable the Windows XP SP2 'loopback check' ("authentication fails
> if the FQDN ... that you use does not match the local computer name"
> Ref: http://support.microsoft.com/default...b;en-us;896861
>
> Tips:
> Enabling account logon events in local security policy showed login
> failure events 537 having a status code 0xC000006D
> (STATUS_LOGON_FAILURE); checking eventid.net (http://www.eventid.net/
> display.asp?eventid=537&eventno=194&source=Securit y&phase=1) led to
> the solution.
>
> Mathieu: Setting DisableStrictNameChecking was not necessary because
> XPSP2 by default uses only NTLMv1 (non-kerberos) authentication; if I
> had been using a server OS, NTLMv2 would have been enabled and
> DisableStrictNameChecking would have been required. But if you hadn't
> replied, and I hadn't started my google search using that term, I
> never would have gotten anywhere Thanks!
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS goes to a dummy DNS server travais Windows Networking 0 09-26-2008 11:08 PM
Saving text file on SMB share - file has changed James Telford Linux Networking 3 09-18-2007 10:12 AM
Damn, I feel like a dummy. Betsy Ross Wireless Internet 2 08-12-2005 05:14 PM
Roaming Profiles for (a) dummy =?Utf-8?B?RGFuaWVsIE9sbXN0ZWFk?= Windows Networking 3 01-28-2004 04:11 PM
dummy antenna load?? j carter Wireless Internet 7 01-12-2004 01:26 PM



1 2 3 4 5 6 7 8 9 10 11