1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/torture
Stefan Metzmacher c30dcaee4c s4:torture/ndr: add validation checks for strange supplementalCredentials blobs
From the mail to dochelp:

  I've also got cases (where I created an account with
  UF_NORMAL_ACCOUNT|UF_ACCOUNTDISABLE|UF_SMARTCARD_REQUIRED
  in the LDAP add) with the following strange blobs:

  One time:
  [0000] 00 00 00 00 00 00 00 00 00 00 00 00 00

  and once:
  [0000] 00 00 00 00 00 00 00 00 00 00 00 00 53

  The original issue I reported was the following, a user was created
  with a password and then userAccountControl was changed to
  UF_NORMAL_ACCOUNT|UF_SMARTCARD_REQUIRED. In that case I'm getting:

  [0000] 00 00 00 00 62 00 00 00   00 00 00 00 20 00 20 00
  [0010] 20 00 20 00 20 00 20 00   20 00 20 00 20 00 20 00
  [0020] 20 00 20 00 20 00 20 00   20 00 20 00 20 00 20 00
  [0030] 20 00 20 00 20 00 20 00   20 00 20 00 20 00 20 00
  [0040] 20 00 20 00 20 00 20 00   20 00 20 00 20 00 20 00
  [0050] 20 00 20 00 20 00 20 00   20 00 20 00 20 00 20 00
  [0060] 20 00 20 00 20 00 20 00   20 00 20 00 50 00 30

As you see the last byte (unknown3) is always different on Windows,
but always 0x00 from Samba, so I used 0x00 in order to allow the
test to pass.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
2016-07-20 21:27:18 +02:00
..
auth kerberos: Remove un-used event context argument from smb_krb5_init_context() 2014-04-28 02:24:57 +02:00
basic s4:torture:basic:delete: fix O3 error unused result of asprintf 2016-05-13 00:16:16 +02:00
dfs
dns s4-dns: dlz-bind: Add trailing '.' to all fqdn strings 2014-11-21 06:14:55 +01:00
drs selftest: Disable all replication during most replication tests 2016-07-19 13:41:11 +02:00
krb5 s4-torture: Add AES and RC4 enctype checks 2016-07-06 19:06:18 +02:00
ldap torture_ldap_sort: avoid segfault 2016-03-09 10:32:17 +01:00
ldb s3-torture: Do some code hygiene in the ldb test 2016-06-22 19:25:20 +02:00
libnet s4:torture:libnet: fix 'Syscall param writev(vector[...])' valgrind error 2016-04-25 10:35:16 +02:00
libnetapi s4/torture/libnetapi/libnetapi_user.c: fix typo 2016-03-04 18:08:21 +01:00
libsmbclient
local torture: Add tests for trim_string() 2016-06-20 00:47:30 +02:00
man docs: remove duplicate mention of "smbtorture" in smbtorture manpage. 2013-11-19 09:52:39 +01:00
nbench s4:torture:nbench: fix O3 error unused result of asprintf 2016-05-13 00:16:16 +02:00
nbt s4-torture: fix gcc6 build warnings. 2016-02-06 21:48:18 +01:00
ndr s4:torture/ndr: add validation checks for strange supplementalCredentials blobs 2016-07-20 21:27:18 +02:00
ntp s4:torture/ntp: add missing #include "torture/ntp/proto.h" 2014-04-02 09:03:45 +02:00
rap
raw s4: torture: Added raw readX test to ensure 'reserved' fields are zero. 2016-06-18 19:32:22 +02:00
rpc tests: Allow alternative error code for backupkey test 2016-07-12 23:24:13 +02:00
smb2 smbtorture: Correctly initialize notify request in smb2.notify.tree 2016-07-18 15:14:11 +02:00
tests
unix lib: Convert callers of sid_blob_parse to sid_parse 2015-08-26 21:41:12 +02:00
vfs s4:torture:vfs: fix Invalid read of size 8 valgrind valgrind error (and segv) 2016-04-25 10:35:16 +02:00
winbind s4:torture/winbind: add more debug output to samba4.winbind.struct.domain_info 2015-12-14 23:26:40 +01:00
gentest.c torture/gentest time_skew(): don't use labs() on unsigned NTTIME 2015-12-24 04:09:28 +01:00
locktest.c s4:torture/locktest: comment out unused code and avoid smbcli_nt_error() 2014-11-25 07:25:46 +01:00
masktest.c s4:torture: avoid argv related const warnings 2014-04-02 09:03:45 +02:00
shell.c s4:torture/shell: simplify cli_credentials_set_password() call 2013-08-05 17:48:03 +12:00
smbtorture.c s4:torture: avoid const warnings in smbtorture.c 2014-04-02 09:03:45 +02:00
smbtorture.h
torture.c
util_smb.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
util.h torture: Add a new w2k12 target 2013-09-05 13:46:10 -07:00
wscript_build drsuapi tests for DsBind with w2k8 2016-05-26 02:44:31 +02:00