FW: Samba intermittently rejecting connection requests ( PR#25232 )

Ladner, Eric (Eric.Ladner) Eric.Ladner at ChevronTexaco.com
Tue Aug 13 08:51:03 GMT 2002


SAMBA:  3.0 alpha18
OS:     HP-UX 11.0
Client: XP Professional

I have a problem with a user mapping a network drive.  Sometimes
he can map it, sometimes he can't.

rsc is a valid account on the machine he's trying to connect to
(entry in /etc/passwd, decent permissions on home directory and
all parent directories, etc.)

The strange thing is sometimes it works, and sometimes it 
doesn't.  If it doesn't connect, if he reboots enough times, 
eventually it will connect.

Here's some more I dug up (snippets from the logs -- I highlited
the differences with ** at the beginning of the line):

If he does connect, the log looks like this:

[2002/08/05 06:08:35, 3] smbd/password.c:register_vuid(300)
  uid 234 registered to name rsc
[2002/08/05 06:08:35, 7] smbd/password.c:register_vuid(313)
  User [rsc],  unix_homedir [/home/www/rsc]
[2002/08/05 06:08:35, 7] smbd/password.c:register_vuid(314)
  vuser->guest is false
[2002/08/05 06:08:35, 7] smbd/password.c:register_vuid(315)
[2002/08/05 06:08:35, 7] param/loadparm.c:lp_servicenumber(3666)
**  lp_servicenumber: couldn't find rsc
**  lp_servicenumber('rsc') is -1
[2002/08/05 06:08:35, 7] param/loadparm.c:lp_servicenumber(3666)
**  lp_servicenumber: couldn't find rsc
[2002/08/05 06:08:35, 3] param/loadparm.c:lp_add_home(1929)
**  adding home's share [rsc] for user rsc at /home/www/rsc
. . . Stuff omittied
[2002/08/05 06:08:35, 5] smbd/uid.c:change_to_root_user(210)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2002/08/05 06:08:35, 4] smbd/reply.c:reply_tcon_and_X(255)
  Got device type ?????
[2002/08/05 06:08:35, 5] smbd/service.c:make_connection(773)
** I added this debug line below **
**  Service in: [HOMES], HOMES_NAME: [homes], vuser->homes_snum [5]  
[2002/08/05 06:08:35, 5] smbd/service.c:make_connection(778)
**  making a connection to [homes] service created at session setup time
[2002/08/05 06:08:35, 5] lib/username.c:Get_Pwnam_internals(223)
  Trying _Get_Pwnam(), username as lowercase is rsc
[2002/08/05 06:08:35, 5] lib/username.c:Get_Pwnam_internals(251)
  Get_Pwnam_internals did find user [rsc]!
[2002/08/05 06:08:35, 3] smbd/service.c:make_connection_snum(524)
**  Connect path is /home/www/rsc


If he doesn't connect, it looks like this:

[2002/08/05 06:08:35, 3] smbd/password.c:register_vuid(300)
  uid 234 registered to name rsc
[2002/08/05 06:08:35, 7] smbd/password.c:register_vuid(313)
  User [rsc],  unix_homedir [/home/www/rsc]
[2002/08/05 06:08:35, 7] smbd/password.c:register_vuid(314)
  vuser->guest is false
[2002/08/05 06:08:35, 7] smbd/password.c:register_vuid(315)
**  lp_servicenumber('rsc') is 5
. . . Stuff omitted 
[2002/08/05 06:08:35, 5] smbd/uid.c:change_to_root_user(210)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2002/08/05 06:08:35, 4] smbd/reply.c:reply_tcon_and_X(255)
  Got device type ?????
[2002/08/05 06:08:35, 5] smbd/service.c:make_connection(773)
** I added this debug line below **
**  Service in: [HOMES], HOMES_NAME: [homes], vuser->homes_snum [-1]
[2002/08/05 06:08:35, 5] smbd/service.c:make_connection(828)
**  making a connection to 'normal' service homes
[2002/08/05 06:08:35, 5] lib/username.c:Get_Pwnam_internals(223)
  Trying _Get_Pwnam(), username as lowercase is rsc
[2002/08/05 06:08:35, 5] lib/username.c:Get_Pwnam_internals(251)
  Get_Pwnam_internals did find user [rsc]!
[2002/08/05 06:08:35, 3] smbd/service.c:make_connection_snum(524)
**  Connect path is 


(I monkied with the times to do a diff between the two connects, so ignore
the timestamps).




More information about the samba-technical mailing list