[Samba] Connection gets closed after just a few seconds "smbd/service.c:close_cnum(1150)"

Lund, Claus Claus.Lund at state.vt.us
Fri May 11 19:09:51 GMT 2007


I'm testing the AIX binaries for 3.0.24 and have run into a problem.
Depending on how I map the share (using: \\[IP, hostname or
FQDN]\[sharename]) then the connection to the server is closed after
just a few seconds of inactivity.

The server runs on AIX5.3 with the latest fixpack. The client is Win XP
SP2.
I'm currently using 3.0.22 on our production server and don't have this
problem there (it's however a compiled from source and not the "pre-made
binaries" from samba.org).

If I use the IP address to map the share then everything works just like
normal (the connection stays open for an hr). But if I use the hostname
or FQDN to map the share then the connection is closed after just a few
seconds of idle time.

So if I map the share like this:
C:\Documents and Settings\clund>net use Z: \\10.0.88.187\refprod
The command completed successfully.

Then everything works fine.


But if I map the share like this:
C:\Documents and Settings\clund>net use Z: \\tax187a\refprod
The command completed successfully.


Then the connection is closed within seconds. Here're the level 2 logs
using the hostname to map the share. The log is identical to using the
IP except for the last two entries:
tax187a	smbd	notice	daemon	2007-05-11 14:38:07	smbd[892938]:
[2007/05/11 14:38:07, 2] lib/access.c:check_access(323)
tax187a	smbd	notice	daemon	2007-05-11 14:38:07	smbd[892938]:
Allowed connection from (10.0.89.165)
tax187a	smbd	notice	daemon	2007-05-11 14:38:07	smbd[892938]:
[2007/05/11 14:38:07, 2] smbd/sesssetup.c:setup_new_vc_session(799)
tax187a	smbd	notice	daemon	2007-05-11 14:38:07	smbd[892938]:
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close
all old resources.
tax187a	smbd	notice	daemon	2007-05-11 14:38:07	smbd[892938]:
[2007/05/11 14:38:07, 2] smbd/sesssetup.c:setup_new_vc_session(799)
tax187a	smbd	notice	daemon	2007-05-11 14:38:07	smbd[892938]:
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close
all old resources.
tax187a	smbd	notice	daemon	2007-05-11 14:38:11	smbd[892938]:
[2007/05/11 14:38:11, 2] auth/auth.c:check_ntlm_password(309)
tax187a	smbd	notice	daemon	2007-05-11 14:38:11	smbd[892938]:
check_ntlm_password: authentication for user [clund] -> [clund] ->
[clund] succeeded
tax187a	smbd	notice	daemon	2007-05-11 14:38:11	smbd[892938]:
[2007/05/11 14:38:11, 2] lib/access.c:check_access(323)
tax187a	smbd	notice	daemon	2007-05-11 14:38:11	smbd[892938]:
Allowed connection from (10.0.89.165)
tax187a	smbd	warning	daemon	2007-05-11 14:38:12	smbd[892938]:
[2007/05/11 14:38:12, 1] smbd/service.c:make_connection_snum(950)
tax187a	smbd	warning	daemon	2007-05-11 14:38:12	smbd[892938]:
tax165 (10.0.89.165) connect to service refprod initially as user
refprod (uid=450, gid=202) (pid 892938)
tax187a	smbd	notice	daemon	2007-05-11 14:38:12	smbd[892938]:
[2007/05/11 14:38:12, 2] smbd/reply.c:reply_tcon_and_X(711)
tax187a	smbd	notice	daemon	2007-05-11 14:38:12	smbd[892938]:
Serving refprod as a Dfs root
tax187a	smbd	warning	daemon	2007-05-11 14:38:14	smbd[892938]:
[2007/05/11 14:38:14, 1] smbd/service.c:close_cnum(1150)
tax187a	smbd	warning	daemon	2007-05-11 14:38:14	smbd[892938]:
tax165 (10.0.89.165) closed connection to service refprod


I have level 10 log files available too if anybody needs to get a look
at things in that kind of detail.

Thank you in advance,
Claus


____________________________________________
Claus Lund
Systems Developer

Vermont Department of Taxes
Information Systems
133 State Street
Montpelier, Vermont 05633-1401
(802) 828-3735


More information about the samba mailing list