[Samba] Samba - Winbind problem : session setup failed : System error

Bart Boelaert bart.boelaert at pandora.be
Mon May 26 20:58:18 GMT 2003


I'm using Samba 2.2.7a on RedHat 9.0. I'm trying to set-up universal logons
between a Samba Server and a W2K SP3 DC, which has restrictanonymous=1.
I followed the procedure as described at
- I managed to join the Samba server (MYSAMBASRV) to the domain (MYDOMAIN)
- I used wbinfo with the -A switch to store the credentials of a Domain
Admin user account, so that a list of all shares could be retrieved from the
domain controller (MYDC)
- I successfully retrieved a list of all W2K users and groups (using getent
passwd / getent group)
- I configured the necessary Winbind options in smb.conf + the PAM config
- I started Winbind after smbd & nmbd

When I try to access the Samba server from a W2K client (MYW2KCLIENT) using
\\MYSAMBASRV, a login screen pops up. When this happens, I get the following
log entries in myw2kclient.log (I started smbd & nmbd using -d 9 for
detailed logs):

[2003/05/26 19:58:37, 4] passdb/pampass.c:smb_pam_start(455)
  smb_pam_start: PAM: Init user: mydomain+domainusr
[2003/05/26 19:58:37, 4] passdb/pampass.c:smb_pam_start(472)
  smb_pam_start: PAM: setting rhost to:
[2003/05/26 19:58:37, 4] passdb/pampass.c:smb_pam_start(481)
  smb_pam_start: PAM: setting tty
[2003/05/26 19:58:37, 4] passdb/pampass.c:smb_pam_start(489)
  smb_pam_start: PAM: Init passed for user: mydomain+domainusr
[2003/05/26 19:58:37, 4] passdb/pampass.c:smb_internal_pam_session(647)
  smb_internal_pam_session: PAM: tty set to: smb/1
[2003/05/26 19:58:37, 0] passdb/pampass.c:smb_pam_error_handler(71)
  smb_pam_error_handler: PAM: session setup failed : System error
[2003/05/26 19:58:37, 4] passdb/pampass.c:smb_pam_end(436)
  smb_pam_end: PAM: PAM_END OK.
[2003/05/26 19:58:37, 1] smbd/session.c:session_claim(107)
  pam_session rejected the session for mydomain+domainusr [smb/1]
[2003/05/26 19:58:37, 1] smbd/password.c:register_vuid(345)
  Failed to claim session for vuid=100
[2003/05/26 19:58:37, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2003/05/26 19:58:37, 3] smbd/error.c:error_packet(113)
  error packet at smbd/reply.c(1102) cmd=115 (SMBsesssetupX)

Apparently, there's something wrong with the PAM session, but I really don't
know where to look.

Any help will be appreciated.


More information about the samba mailing list