PDA

View Full Version : nas box and win7 -> user/pw wrong



RaZz!
10-28-2009, 03:08 PM
hi there,

i'm having a bit of a headache about my nas box in win7.

first of all win7 doesn't show the nas box in the network discovery. that's not that important, but when i try to access the shares on the nas box from the explorer with e.g. \\nasbox\backup win7 keeps asking me for a user/pw even if a enter the correct credentials (the shares are pw protected).
what i found strange is that win7 seems to automatically add a domain to the credentials, why i also tried the user with a leading "\", without success.

so i started to search the web and found that i should change the lan manager authentication level to NTLMv1 AND NTLMv2 instead of just v2 only, like the following screen shows:
http://www.sevenforums.com/attachments/network-sharing/28878d1253543608-samba-network-share-issue-windows-7-ntlmvx.png

unfortunately, the notebook i want to set this policy on only runs win7 home, which means i don't have access to the local policies through the mmc.

is there a way to change this setting in win7 home? if it isn't possible i'm not able to use the nas box with that notebook at all. this sux :(

RaZz!
10-31-2009, 11:35 AM
problem solved.

for everyone with the same problem, create a reg-file with the following content:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Lsa]
"lmcompatibilitylevel"=dword:00000001


...or add the value yourself with regedit.

description:

10 Network security: Lan Manager authentication level

a Background

LAN Manager (LM) authentication is the protocol that is used to authenticate Windows clients for network operations, including domain joins, accessing network resources, and user or computer authentication. The LM authentication level determines which challenge/response authentication protocol is negotiated between the client and the server computers. Specifically, the LM authentication level determines which authentication protocols that the client will try to negotiate or that the server will accept. The value that is set for LmCompatibilityLevel determines which challenge/response authentication protocol is used for network logons. This value affects the level of authentication protocol that clients use, the level of session security negotiated, and the level of authentication accepted by servers, according to the following table.

[...]


Value Setting Description
1 Send LM & NTLM - use NTLMv2 session security if negotiated Clients use LM and NTLM authentication, and use NTLMv2 session security if the server supports it; domain controllers accept LM, NTLM, and NTLMv2 authentication.


[...]


source: http://support.microsoft.com/?scid=kb%3Ben-us%3B823659

sanhacker
10-31-2009, 01:30 PM
Sounds like a "Home" version limitation.
I access my NAS without a hitch from machines running Win7 Pro and Ultimate.

I seem to remember XP having networking limitations on the "Home" version as well.

RaZz!
10-31-2009, 03:13 PM
after doing my research, which lead me to the solution of my initial issue, i know for use it's not a limitation relating to a specific version of windows 7. the issue only occurs if you're using a nas-box that uses the LM/NTLMv1 authentication protocol. windows 7 (as well as vista) only allows the usage of NTLMv2 by default (dunno why, maybe a "security feature"), so if you don't encounter any issues i'd say your nas-box communicates over the NTLMv2 protocol. my nas-box obviously uses the LM/NTLMv1 protocol so i had to manually set windows 7 to not only allow NTLMv2, but LM/NTLMv1 as well.

even though i've fixed my problem with the workaround posted in my last post i experience very poor transfer rates and a high access time on my nas-box within win7. it still works flawlessly in winxp. in win7 opening a ~10mb file takes about 30-40 secs, whereas in winxp it only takes 2-3 secs. i have no idea what's wrong though. even if i just select a folder and right click it, win7 needs 10-20 secs to show the context menu - winxp shows it instantly :(

rogard
11-01-2009, 09:23 AM
what version of samba is your nas using?

sanhacker
11-01-2009, 10:47 AM
Not really sure if my NAS box uses NTLMv1 or NTLMv2.
It is a Netgear ReadyNAS Pro and all I know is it works flawlessly with Professional and Ultimate.
No requests for domain names or userids and passwords. (Once they are entered the first time)
I think I am using RAIDiator 4.1.4 at the moment.
Just double checked and all my shares appear instantaneously from this machine running Win7 x64 Ultimate.
Matter of fact, they appear much faster than I experienced with Vista x64 Ultimate or XP x86 Professional.

Are you sure you are not fighting gremlins in the Home edition ???
I just can't imagine trying to do any networking with the Home edition since it has been crippled since XP days.