Authentication failure

Cristian POP cpop at compas.dntcj.ro
Tue Apr 4 06:19:55 GMT 2000


Hi all, 

Please help me with this problem :  

I'm using RH 6.0 and samba 2.0.3 ( it came with RH ) and 
for authentication ( default ) pam and shadow passwords.
The stations are DOS6.2(+MSClient), Win95 and Win98. 

For every connection that is made to the server ( for a samba service )
I get an error from the PAM_pwdb module, which is responsible for
authentication. In addition there is a __annoying__ waiting period after
that error occurs. 

I think the problem is between samba and pam : samba does not
transmit the right user&password combination at first time the connection
is made and that causes. 


The file /etc/pam.d/samba looks like (default, also I tried different
options ) : 
------------------------------------------------------------------
auth    required        /lib/security/pam_pwdb.so shadow
account required        /lib/security/pam_pwdb.so
------------------------------------------------------------------

I put a level 3 debug in samba and the log looks like this (see below..)
Also, at the same time I put strace to monitor the smbd process and
recorded a log file too ( it's quite big, but it is available).

samba log file : 
________________________________________________________________
[2000/03/20 11:19:08, 3] smbd/process.c:process_smb(565)
  Transaction 188 of length 66
[2000/03/20 11:19:08, 3] smbd/process.c:switch_message(402)
  switch message SMBtconX (pid 5310)
[2000/03/20 11:19:08, 2] lib/access.c:check_access(249)
  Allowed connection from ws006 (192.168.41.6)
[2000/03/20 11:19:08, 2] smbd/service.c:make_connection(268)
  Invalid username/password for cpop
[2000/03/20 11:19:08, 3] smbd/error.c:error_packet(138)
  error packet at line 162 cmd=117 (SMBtconX) eclass=2 ecode=2
[2000/03/20 11:19:08, 3] smbd/process.c:process_smb(565)
  Transaction 189 of length 73
[2000/03/20 11:19:08, 3] smbd/process.c:switch_message(402)
  switch message SMBtconX (pid 5310)
[2000/03/20 11:19:08, 2] lib/access.c:check_access(249)
  Allowed connection from ws006 (192.168.41.6)
[2000/03/20 11:19:09, 3] smbd/password.c:authorise_login(725)
  ACCEPTED: session list username and given password ok
[2000/03/20 11:19:09, 3] smbd/service.c:make_connection(386)
  Connect path is /home/file.server/users/cpop
[2000/03/20 11:19:09, 3] smbd/password.c:setup_groups(192)
  cpop is in 3 groups: 105, 106, 107
[2000/03/20 11:19:09, 3] lib/doscalls.c:dos_ChDir(327)
  dos_ChDir to /
[2000/03/20 11:19:09, 1] smbd/service.c:make_connection(488)
  ws006 (192.168.41.6) connect to service cpop as user cpop (uid=106, gid=105) (pid 5310)
[2000/03/20 11:19:09, 3] smbd/reply.c:reply_tcon_and_X(340)
  tconX service=cpop user=cpop
[2000/03/20 11:19:09, 3] smbd/process.c:process_smb(565)
  Transaction 190 of length 82
[2000/03/20 11:19:09, 3] smbd/process.c:switch_message(402)
  switch message SMBtrans2 (pid 5310)
[2000/03/20 11:19:09, 3] lib/doscalls.c:dos_ChDir(327)
  dos_ChDir to /home/file.server/users/cpop
[2000/03/20 11:19:09, 3] smbd/trans2.c:call_trans2qfsinfo(1088)
  call_trans2qfsinfo: level = 261
[2000/03/20 11:19:09, 3] smbd/process.c:process_smb(565)
  Transaction 191 of length 67
________________________________________________________________

Thanx,

C-ya,
Cristian POP
-----------------------------------------------

 "Only dead fish go with the flow." 
_______________________________________________




More information about the samba mailing list