1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/torture/ndr
Gary Lockyer 96e6adedcd librpc idl: netlogon netr_identity_info logon_id to 64 bit
Fold the two 32 bit values logon_id_high and logon_id_low into a single
64 bit logon_id in netr_identity_info.  This will be used to tie
together winbind and SamLogon requests in audit logging.

Summary of the of the Query and Response from Microsoft on it's usage.

[REG:119013019612095] [MS-NRPC]: NETLOGON_LOGON_IDENTITY_INFO: Does
the Reserved field have LogonId meaning?

Questions:
  In NetrLogonSamLogonEx does the Reserved field
  (of NETLOGON_LOGON_IDENTITY_INFO) have LogonId meaning?

  What is a valid LogonID, and does have any audit usage?

  Samba is sending a constant "deadbeef" in hex and would like to
  understand any usage of this field.

Response:
  The NRPC spec is accurate in defining the field as Reserved, and without
  protocol significance. In the header file in our source code, it is
  defined as LogonId and commented as such, but it’s effectively not used.
  This is probably why the API structure has that field name. It may have
  been intended as such but it’s not used.

Samba will send a random value in this field.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-02-20 06:03:09 +01:00
..
atsvc.c
backupkey.c s4-torture: cleanup torture_suite_add_ndr_pull_validate_test API. 2016-09-07 09:28:13 +02:00
cabinet.c s4-torture: point out why we cannot validate MSZIP compressed files 2017-07-20 01:38:02 +02:00
charset.c s4-torture: add some NDR tests for validating ndr_push_charset behavior. 2017-01-24 10:53:17 +01:00
clusapi.c s4-torture: cleanup torture_suite_add_ndr_pull_validate_test API. 2016-09-07 09:28:13 +02:00
dfs.c
dfsblob.c
drsblobs.c s4-torture: cleanup torture_suite_add_ndr_pull_validate_test API. 2016-09-07 09:28:13 +02:00
drsuapi.c s4-torture: fix gcc6 build warning. 2016-02-06 21:48:18 +01:00
epmap.c
krb5pac.c s4-torture: cleanup torture_suite_add_ndr_pull_validate_test API. 2016-09-07 09:28:13 +02:00
lsa.c
nbt.c s4-torture: cleanup torture_suite_add_ndr_pull_validate_test API. 2016-09-07 09:28:13 +02:00
ndr.c s4-torture: add some NDR tests for validating ndr_push_charset behavior. 2017-01-24 10:53:17 +01:00
ndr.h s4-torture: cleanup torture_suite_add_ndr_pull_validate_test API. 2016-09-07 09:28:13 +02:00
negoex.c s4-torture: cleanup torture_suite_add_ndr_pull_validate_test API. 2016-09-07 09:28:13 +02:00
netlogon.c librpc idl: netlogon netr_identity_info logon_id to 64 bit 2019-02-20 06:03:09 +01:00
ntlmssp.c s4-torture: cleanup torture_suite_add_ndr_pull_validate_test API. 2016-09-07 09:28:13 +02:00
ntprinting.c s4-torture: rename torture_suite_add_ndr_pullpush_test to torture_suite_add_ndr_pull_validate_test. 2016-07-20 21:27:17 +02:00
README
samr.c s4-torture: fix gcc6 build warning. 2016-02-06 21:48:18 +01:00
spoolss.c s4-torture: add more NDR tests for GetCorePrinterDrivers 2017-01-24 14:42:34 +01:00
string.c ndr tests: silence a harmless warning 2017-03-02 04:35:14 +01:00
winreg.c werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source4/torture/ 2016-09-28 00:04:23 +02:00
winspool.c s4-torture: add IRemoteWinspool ndr testsuite. 2016-09-22 12:29:28 +02:00
witness.c s4-torture: add test to verify WITNESS_NOTIFY_CLIENT_MOVE message marshalling. 2015-09-24 19:32:22 +02:00

use
	hexdump -v -e '12/1 "0x%02x, " "\n"' infile|outfile

to import ndr dumps


Or use gdb:

(gdb) b dump_printer
Breakpoint 1 at 0x49c92f: file ../source3/utils/net_printing.c, line 158.
(gdb) cond 1 strcmp(key_name, "s0bc") == 0
(gdb) run
Breakpoint 1, dump_printer (mem_ctx=0x700a20, key_name=0x11fb8f9 "s0bc", data=0x18f93d0 "H\032", length=1284, do_string_conversion=true) at ../source3/utils/net_printing.c:158
158             printf("found printer: %s\n", key_name);

-> Now use x/<length in byte>bx

(gdb) x/1284bx data

This prints data as hex values. 1284 is the length in byte (see the length
argument of the function). The b indicates byte.