Bug 12980 - Failed to generate session_info (user and group token) for session setup: NT_STATUS_UNSUCCESSFUL
Summary: Failed to generate session_info (user and group token) for session setup: NT_...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.3.11
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-21 14:33 UTC by alberto fiaschi
Modified: 2017-08-21 14:57 UTC (History)
1 user (show)

See Also:


Attachments
Log on server and client . General config + include config (21.41 KB, application/x-bzip)
2017-08-21 14:33 UTC, alberto fiaschi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description alberto fiaschi 2017-08-21 14:33:18 UTC
Created attachment 13485 [details]
Log on server and client . General config + include config

Failed to create session for some users. backend openldap 
Error on server :

143(db_tdb_fetch_locked_internal)
  Allocated locked data 0x0x5649cd712d60
[2017/08/21 16:04:36.191354, 10, pid=81431, effective(0, 0), real(0, 0)] ../lib/dbwrap/dbwrap_tdb.c:59(db_tdb_log_key)
  Unlocking key BDC2B8A1
[2017/08/21 16:04:36.191368,  5, pid=81431, effective(0, 0), real(0, 0)] ../lib/dbwrap/dbwrap.c:146(dbwrap_lock_order_state_destructor)
  release lock order 1 for /var/run/samba/smbXsrv_session_global.tdb
[2017/08/21 16:04:36.191380, 10, pid=81431, effective(0, 0), real(0, 0)] ../lib/dbwrap/dbwrap.c:133(debug_lock_order)
  lock order:  1:<none> 2:<none> 3:<none>
[2017/08/21 16:04:36.191409,  3, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/error.c:82(error_packet_set)
  NT error packet at ../source3/smbd/sesssetup.c(285) cmd=115 (SMBsesssetupX) NT_STATUS_UNSUCCESSFUL
[2017/08/21 16:04:36.191423,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/lib/util.c:169(show_msg)
[2017/08/21 16:04:36.191447,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/lib/util.c:179(show_msg)
  size=35
  smb_com=0x73
  smb_rcls=1
  smb_reh=0
  smb_err=49152
  smb_flg=136
  smb_flg2=51203
  smb_tid=65535
  smb_pid=29954
  smb_uid=2954
  smb_mid=2
  smt_wct=0
  smb_bcc=0
[2017/08/21 16:04:36.191499, 10, pid=81431, effective(0, 0), real(0, 0)] ../lib/util/util.c:559(dump_data)
[2017/08/21 16:04:36.191507, 10, pid=81431, effective(0, 0), real(0, 0)] ../libcli/smb/smb_signing.c:271(smb_signing_sign_pdu)
  smb_signing_sign_pdu: sent SMB signature of
[2017/08/21 16:04:36.191518, 10, pid=81431, effective(0, 0), real(0, 0)] ../lib/util/util.c:559(dump_data)
  [0000] 42 53 52 53 50 59 4C 20                             BSRSPYL  
[2017/08/21 16:04:36.192179,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/lib/util_sock.c:134(read_fd_with_timeout)
  read_fd_with_timeout: blocking read. EOF from client.
[2017/08/21 16:04:36.192212,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/process.c:554(receive_smb_talloc)
  receive_smb_raw_talloc failed for client ipv4:172.30.10.176:43400 read error = NT_STATUS_END_OF_FILE.
[2017/08/21 16:04:36.192234,  4, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/sec_ctx.c:321(set_sec_ctx_internal)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2017/08/21 16:04:36.192247,  5, pid=81431, effective(0, 0), real(0, 0)] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2017/08/21 16:04:36.192258,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/auth/token_util.c:639(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2017/08/21 16:04:36.192280,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/uid.c:425(smbd_change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2017/08/21 16:04:36.192293,  4, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/sec_ctx.c:321(set_sec_ctx_internal)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2017/08/21 16:04:36.192304,  5, pid=81431, effective(0, 0), real(0, 0)] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2017/08/21 16:04:36.192315,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/auth/token_util.c:639(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2017/08/21 16:04:36.192332,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/uid.c:425(smbd_change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2017/08/21 16:04:36.192343,  4, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/sec_ctx.c:321(set_sec_ctx_internal)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2017/08/21 16:04:36.192354,  5, pid=81431, effective(0, 0), real(0, 0)] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2017/08/21 16:04:36.192365,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/auth/token_util.c:639(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2017/08/21 16:04:36.192381,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/uid.c:425(smbd_change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2017/08/21 16:04:36.192394,  4, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/sec_ctx.c:321(set_sec_ctx_internal)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2017/08/21 16:04:36.192405,  5, pid=81431, effective(0, 0), real(0, 0)] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2017/08/21 16:04:36.192415,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/auth/token_util.c:639(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2017/08/21 16:04:36.192432,  5, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/uid.c:425(smbd_change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2017/08/21 16:04:36.192582,  3, pid=81431, effective(0, 0), real(0, 0)] ../source3/smbd/server_exit.c:252(exit_server_common)
  Server exit (failed to receive smb request)




********************************************************************************
client side cmd=  smbclient  -d 255  -U sil.martinelli -L neuch2srv


ot NTLMSSP neg_flags=0x62088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
ntlmssp_make_packet_signature: SEND seq = 0, len = 14, pdu_len = 14
samba_tevent: Added timed event "tevent_req_timedout": 0x46aa68
smb_signing_sign_pdu: sent SMB signature of
[0000] 42 53 52 53 50 59 4C 20                             BSRSPYL  
samba_tevent: Schedule immediate event "tevent_queue_immediate_trigger": 0x466b70
samba_tevent: Run immediate event "tevent_queue_immediate_trigger": 0x466b70
samba_tevent: Destroying timer event 0x46aa68 "tevent_req_timedout"
SPNEGO login failed: Undetermined error
session setup failed: NT_STATUS_UNSUCCESSFUL