Bug 14545 - 4.13.0 - smbd exists on user not found
Summary: 4.13.0 - smbd exists on user not found
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.13.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-21 13:59 UTC by Raul
Modified: 2020-10-22 02:11 UTC (History)
0 users

See Also:


Attachments
config file (805 bytes, text/plain)
2020-10-21 13:59 UTC, Raul
no flags Details
smbd -b (19.22 KB, text/plain)
2020-10-21 13:59 UTC, Raul
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raul 2020-10-21 13:59:17 UTC
Created attachment 16294 [details]
config file

smbd is exiting when connecting from an OS X client and the guest user is not found.

Here is the tail end of the log:

Mapping user []\[GUEST] from workstation [MACBOOKPRO-DA64]
attempting to make a user_info for GUEST (GUEST)
making strings for GUEST's user_info struct
making blobs for GUEST's user_info struct
made a user_info for GUEST (GUEST)
check_ntlm_password:  Checking password for unmapped user []\[GUEST]@[MACBOOKPRO-DA64] with the new password interface
check_ntlm_password:  mapped user is: []\[GUEST]@[MACBOOKPRO-DA64]
check_ntlm_password: auth_context challenge created by random
challenge is:
[0000] EB 7E 49 9E 85 C0 C1 D2                             .~I.....
Check auth for: [GUEST]
auth_check_ntlm_password: anonymous had nothing to say
auth_sam_ignoredomain_auth: Check auth for: []\[GUEST]
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
push_conn_ctx(0) : conn_ctx_stack_ndx = 1
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
Security token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
pdb_getsampwnam (TDB): error fetching database.
 Key: USER_guest
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
check_sam_security: Couldn't find user 'GUEST' in passdb.
auth_check_ntlm_password: sam_ignoredomain authentication for user [GUEST] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
check_ntlm_password:  Authentication for user [GUEST] -> [GUEST] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user []\[GUEST] at [Wed, 21 Oct 2020 13:54:05.648711 -00] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [MACBOOKPRO-DA64] remote host [ipv4:10.0.0.103:59263] mapped to []\[GUEST]. local host [ipv4:10.0.0.32:445]
log_no_json: JSON auth logs not available unless compiled with jansson
auth3_check_password_send: Checking NTLMSSP password for \GUEST failed: NT_STATUS_NO_SUCH_USER, authoritative=1
gensec_update_send: ntlmssp[0x558313a92600]: subreq: 0x558313a1ea10
gensec_update_send: spnego[0x558313a5e330]: subreq: 0x558313a92200
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
ntlmssp_server_auth_done: Checking NTLMSSP password for \GUEST failed: NT_STATUS_NO_SUCH_USER
gensec_update_done: ntlmssp[0x558313a92600]: NT_STATUS_NO_SUCH_USER tevent_req[0x558313a1ea10/../../auth/ntlmssp/ntlmssp.c:180]: state[3] error[-7963671676338569116 (0x917B5ACDC0000064)]  state[struct gensec_ntlmssp_update_state (0x558313a1ebc0)] timer[(nil)] finish[../../auth/ntlmssp/ntlmssp.c:239]
gensec_spnego_server_negTokenTarg_step: SPNEGO(ntlmssp) login failed: NT_STATUS_NO_SUCH_USER
gensec_update_done: spnego[0x558313a5e330]: NT_STATUS_NO_SUCH_USER tevent_req[0x558313a92200/../../auth/gensec/spnego.c:1631]: state[3] error[-7963671676338569116 (0x917B5ACDC0000064)]  state[struct gensec_spnego_update_state (0x558313a923b0)] timer[(nil)] finish[../../auth/gensec/spnego.c:2039]
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
Security token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_LOGON_FAILURE] || at ../../source3/smbd/smb2_sesssetup.c:146
smbd_smb2_request_done_ex: mid [3] idx[1] status[NT_STATUS_LOGON_FAILURE] body[8] dyn[yes:1] at ../../source3/smbd/smb2_server.c:3911
smb2_set_operation_credit: smb2_set_operation_credit: requested 256, charge 1, granted 1, current possible/max 8192/8192, total granted/max/low/range 1/8192/4/1
dbwrap_lock_order_lock: check lock order 1 for /var/lock/samba/smbXsrv_session_global.tdb
lock order:  1:/var/lock/samba/smbXsrv_session_global.tdb 2:<none> 3:<none> 4:<none>
db_tdb_log_key: Locking key B4120463
db_tdb_fetch_locked_internal: Allocated locked data 0x558313a14aa0
dbwrap_watched_subrec_wakeup_fn: No watchers
dbwrap_lock_order_unlock: release lock order 1 for /var/lock/samba/smbXsrv_session_global.tdb
db_tdb_log_key: Unlocking key B4120463
smbd_server_connection_terminate_ex: conn[ipv4:10.0.0.103:59263] num_ok[0] reason[NT_STATUS_END_OF_FILE] at ../../source3/smbd/smb2_server.c:4942
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
Security token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
change_to_root_user: now uid=(0,0) gid=(0,0)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
Security token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
change_to_root_user: now uid=(0,0) gid=(0,0)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
Security token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
change_to_root_user: now uid=(0,0) gid=(0,0)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
Security token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
change_to_root_user: now uid=(0,0) gid=(0,0)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
Security token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
change_to_root_user: now uid=(0,0) gid=(0,0)
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'winreg'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'srvsvc'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'lsarpc'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'samr'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'netdfs'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'dssetup'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'wkssvc'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'spoolss'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'svcctl'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'ntsvcs'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'eventlog'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'initshutdown'
dcesrv_shutdown_ep_server: Shutting down DCE/RPC endpoint server 'mdssvc'
msg_dgm_ref_destructor: refs=(nil)
Server exit (NT_STATUS_END_OF_FILE)
dbus-protocol.c: client :1.2 vanished.

I ran samba with:  /usr/sbin/smbd -i --configfile=/config/samba/smb.conf --log-basename=/config/samba/logs '--option=private dir=/config/samba/private' '--option=state directory=/config/samba/state'
Comment 1 Raul 2020-10-21 13:59:38 UTC
Created attachment 16295 [details]
smbd -b
Comment 2 Raul 2020-10-22 02:11:57 UTC
Turns out I need to read the documentation. -i will close after a single connection.