share inaccessible when joined through ADS with samba 3.0.28

Sagar Borikar sagar_borikar at rediffmail.com
Fri Sep 12 17:39:54 GMT 2008


  
  
Hi Jerry,

Don't know whether this was already asked on the mailing list but I couldn't find it so putting it down again. 

We have recently upgraded samba 3.0.14 to 3.0.28 and everything looked fine except the accessing share when joined ADS. 
I observe following log when tried to access the share using \\ip. I am able to join ADS successfully but I am not getting the login window when checked using \\ip. On contrary, if I specify \\ip\share, I am able to get the login prompt and everything works fine. Following is the log we get when tried to join using \\ip


Sep 11 21:57:58 forbear smbd[30908]: [2008/09/11 21:57:58, 0] auth/auth_util.c:create_builtin_administrators(792)
Sep 11 21:57:58 forbear smbd[30908]:   create_builtin_administrators: Failed to create Administrators
Sep 11 21:57:58 forbear smbd[30905]: [2008/09/11 21:57:58, 0] auth/auth_util.c:create_builtin_administrators(792)
Sep 11 21:57:58 forbear smbd[30905]:   create_builtin_administrators: Failed to create Administrators
Sep 11 21:57:58 forbear smbd[30905]: [2008/09/11 21:57:58, 0] auth/auth_util.c:create_builtin_users(758)
Sep 11 21:57:58 forbear smbd[30905]:   create_builtin_users: Failed to create Users
Sep 11 21:57:58 forbear smbd[30905]: [2008/09/11 21:57:58, 0] lib/util_sock.c:get_peer_addr(1232)
Sep 11 21:57:58 forbear smbd[30905]:   getpeername failed. Error was Transport endpoint is not connected
Sep 11 21:57:58 forbear smbd[30905]: [2008/09/11 21:57:58, 0] lib/util_sock.c:write_data(562)
Sep 11 21:57:58 forbear smbd[30905]:   write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
Sep 11 21:57:58 forbear smbd[30905]: [2008/09/11 21:57:58, 0] lib/util_sock.c:send_smb(769)
Sep 11 21:57:58 forbear smbd[30905]:   Error writing 4 bytes to client. -1. (Connection reset by peer)
Sep 11 21:57:58 forbear smbd[30908]: [2008/09/11 21:57:58, 0] auth/auth_util.c:create_builtin_users(758)
Sep 11 21:57:58 forbear smbd[30908]:   create_builtin_users: Failed to create Users
Sep 11 21:57:58 forbear smbd[30908]: [2008/09/11 21:57:58, 0] lib/util_sock.c:get_peer_addr(1232)
Sep 11 21:57:58 forbear smbd[30908]:   getpeername failed. Error was Transport endpoint is not connected
Sep 11 21:57:58 forbear smbd[30908]: [2008/09/11 21:57:58, 0] lib/util_sock.c:write_data(562)
Sep 11 21:57:58 forbear smbd[30908]:   write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
Sep 11 21:57:58 forbear smbd[30908]: [2008/09/11 21:57:58, 0] lib/util_sock.c:send_smb(769)
Sep 11 21:57:58 forbear smbd[30908]:   Error writing 4 bytes to client. -1. (Connection reset by peer)
Sep 11 21:58:08 forbear smbd[30909]: [2008/09/11 21:58:08, 0] auth/auth_util.c:create_builtin_administrators(792)
Sep 11 21:58:08 forbear smbd[30909]:   create_builtin_administrators: Failed to create Administrators
Sep 11 21:58:08 forbear smbd[30909]: [2008/09/11 21:58:08, 0] auth/auth_util.c:create_builtin_users(758)
Sep 11 21:58:08 forbear smbd[30909]:   create_builtin_users: Failed to create Users
Sep 11 21:58:08 forbear smbd[30909]: [2008/09/11 21:58:08, 0] lib/util_sock.c:get_peer_addr(1232)
Sep 11 21:58:08 forbear smbd[30909]:   getpeername failed. Error was Transport endpoint is not connected
Sep 11 21:58:08 forbear smbd[30909]: [2008/09/11 21:58:08, 0] lib/util_sock.c:write_data(562)
Sep 11 21:58:08 forbear smbd[30909]:   write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
Sep 11 21:58:08 forbear smbd[30909]: [2008/09/11 21:58:08, 0] lib/util_sock.c:send_smb(769)
Sep 11 21:58:08 forbear smbd[30909]:   Error writing 4 bytes to client. -1. (Connection reset by peer)

When decoded through ethereal, it seems that NBNS which is netbios service name query is not requested when asked with share but plain ip request does request it.

1. samba-3.0.14a recives packet NBSS, NetBIOS Session service. But in case samba-3.0.28a before receiveing NBSS packets, it receives NBNS packets (NetBIOS Name Service) and server is able to respond to this request. 

2. In samba-3.0.28a, access to share using \\ip doen`t send any response to NBSS request, but access to share using \\ip\share is sending positive response to NBSS request. 

After googling, I found several posts for blocking port 445 but that doesn't resolve the issue. 
Even in the client we enabled explicitly netbios over TCP/IP but doesn't help.

Any pointers are greatly appreciated

Thanks
Sagar




More information about the samba-technical mailing list