Re: [Samba] Share working with IP not with hostname

2012-09-12 Thread Gaiseric Vandal

On 09/10/12 13:52, Nitin Thakur wrote:

hi guys

I managed to setup the share. I am able to access the share with IP address, 
but as soon as I try to do it via hostname, I get a user name and password pop 
up, which always fail to authenticate. Any setting I am missing?

Thanks

nitin



What version of Samba?

My guess is there is some sort of name lookup mismatch.Are you using 
a domain or workgroup?  Are you using WINS?  Are you using DNS?If 
the samba server is the WINS server you should be able to cat wins.dat 
and tdbdump wins.tbd to verify that the names are the same.   In 
smb.conf, does the samba server netbios name match the DNS name?



What is the client OS?

The only other thing that might be happening is that the client and 
server are mismatching on using NTLM vs NTLM v2.  The samba logs should 
show that.   I could NOT get NTLMv2 to work on my samba servers I had to 
explicitly disable it in smb.conf.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Share working with IP not with hostname

2012-09-12 Thread Gary Dale

On 10/09/12 01:52 PM, Nitin Thakur wrote:

hi guys

I managed to setup the share. I am able to access the share with IP address, 
but as soon as I try to do it via hostname, I get a user name and password pop 
up, which always fail to authenticate. Any setting I am missing?

Thanks

nitin


I'm guessing you have a recent Windows client. Try the settings at 
http://technet.microsoft.com/en-us/library/ee681622%28v=ws.10%29.aspx 
(there's also a similar thing on the Samba.org site but I can't find it 
right now). However, I do remember that there are two registry keys that 
need to be set/changed with Windows 7. After that, everything works.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Share working with IP not with hostname

2012-09-12 Thread Carlos R. Pena Evertsz

This is the trick for successfully access the share with the hostname..

Be sure you have the following lines in the smb.conf:

netbios name = yourhostname
wins support = yes

The following line in this order.

name resolve order = wins lmhosts hosts bcast


Add the following line:

hosts allow = the host ip / mask

Where the host ip is your server ip.
 the mask is the mask you are using in all your windows 
clients.


This is the most important thing. For example If you have in your server 
the mask 255.255.0.0 then all your clients must have the same network 
mask. Windows clients with the same mask of the server will see the 
server on the network with it hostname otherwise you need to access the 
server by its ip number.


I hope this can help you.

Carlos
Santo Domingo, Dominican Republic


On 9/12/2012 10:37 AM, Gaiseric Vandal wrote:

On 09/10/12 13:52, Nitin Thakur wrote:

hi guys

I managed to setup the share. I am able to access the share with IP 
address, but as soon as I try to do it via hostname, I get a user 
name and password pop up, which always fail to authenticate. Any 
setting I am missing?


Thanks

nitin



What version of Samba?

My guess is there is some sort of name lookup mismatch.Are you 
using a domain or workgroup?  Are you using WINS?  Are you using 
DNS?If the samba server is the WINS server you should be able to 
cat wins.dat and tdbdump wins.tbd to verify that the names are the 
same.   In smb.conf, does the samba server netbios name match the DNS 
name?



What is the client OS?

The only other thing that might be happening is that the client and 
server are mismatching on using NTLM vs NTLM v2.  The samba logs 
should show that.   I could NOT get NTLMv2 to work on my samba servers 
I had to explicitly disable it in smb.conf.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Share working with IP not with hostname

2012-09-10 Thread Nitin Thakur

hi guys

I managed to setup the share. I am able to access the share with IP address, 
but as soon as I try to do it via hostname, I get a user name and password pop 
up, which always fail to authenticate. Any setting I am missing?

Thanks

nitin
  
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba