Skip to content

Instantly share code, notes, and snippets.

@jirib
Created January 5, 2022 07:04
Show Gist options
  • Save jirib/c5170a0ce75f28faef0943d481111375 to your computer and use it in GitHub Desktop.
Save jirib/c5170a0ce75f28faef0943d481111375 to your computer and use it in GitHub Desktop.
an example of failing idmap
[2021/12/31 07:49:25.049908, 5, pid=14551, effective(0, 0), real(0, 0)] ../../source3/lib/username.c:181(Get_Pwnam_alloc)
Finding user EXAMPLENET\foo
[2021/12/31 07:49:25.049929, 5, pid=14551, effective(0, 0), real(0, 0)] ../../source3/lib/username.c:120(Get_Pwnam_internals)
Trying _Get_Pwnam(), username as lowercase is examplenet\foo
[2021/12/31 07:49:25.050300, 5, pid=14551, effective(0, 0), real(0, 0)] ../../source3/lib/username.c:128(Get_Pwnam_internals)
Trying _Get_Pwnam(), username as given is EXAMPLENET\foo
[2021/12/31 07:49:25.050538, 5, pid=14551, effective(0, 0), real(0, 0)] ../../source3/lib/username.c:141(Get_Pwnam_internals)
Trying _Get_Pwnam(), username as uppercase is EXAMPLENET\FOO
[2021/12/31 07:49:25.050818, 5, pid=14551, effective(0, 0), real(0, 0)] ../../source3/lib/username.c:153(Get_Pwnam_internals)
Checking combinations of 0 uppercase letters in examplenet\foo
[2021/12/31 07:49:25.050881, 5, pid=14551, effective(0, 0), real(0, 0)] ../../source3/lib/username.c:159(Get_Pwnam_internals)
Get_Pwnam_internals didn't find user [EXAMPLENET\foo]!
[2021/12/31 07:49:25.050907, 3, pid=14551, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth_util.c:1902(check_account)
Failed to find authenticated user EXAMPLENET\foo via getpwnam(), denying access.
[2021/12/31 07:49:25.050939, 10, pid=14551, effective(0, 0), real(0, 0)] ../../source3/auth/auth_generic.c:147(auth3_generate_session_info_pac)
make_server_info_wbcAuthUserInfo failed: NT_STATUS_NO_SUCH_USER
[2021/12/31 07:49:25.051004, 3, pid=14551, effective(0, 0), real(0, 0), class=smb2] ../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_LOGON_FAILURE] || at ../../source3/smbd/smb2_sesssetup.c:146
[2021/12/31 07:49:25.051038, 10, pid=14551, effective(0, 0), real(0, 0), class=smb2] ../../source3/smbd/smb2_server.c:3755(smbd_smb2_request_done_ex)
smbd_smb2_request_done_ex: mid [1] idx[1] status[NT_STATUS_LOGON_FAILURE] body[8] dyn[yes:1] at ../../source3/smbd/smb2_server.c:3911
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment