1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-19 21:57:57 +03:00

2020 Commits

Author SHA1 Message Date
Stefan Metzmacher
dd0f692d19 r17787: ifdef out unused macros and generate a smb_panic()
when the wrong macro is used on a field.

metze
2007-10-10 14:16:42 -05:00
Stefan Metzmacher
7670e224d4 r17786: remove unused macros, fix compiler warnings
metze
2007-10-10 14:16:42 -05:00
Stefan Metzmacher
256fc452a4 r17785: fix compiler warnings
metze
2007-10-10 14:16:42 -05:00
Stefan Metzmacher
b2cc485058 r17742: make the casts explicit and remove compiler warnings
metze
2007-10-10 14:16:35 -05:00
Stefan Metzmacher
45061b1b7e r17717: this cried for bugs...and they happened...
we were passing a struct timeval reference as string,
and gcc gives a warning...use C99 style initialisation.

is there a special reason why the ACB_NORMAL is passed
when the force_password_change is selected?

metze
2007-10-10 14:16:31 -05:00
Rafal Szczesniak
9e7709de62 r17671: Update the tests according to changes in libnet context.
rafal
2007-10-10 14:16:22 -05:00
Volker Lendecke
9455b0340f r17624: Samba3 does not yet do getprinterinfo level 6 2007-10-10 14:16:17 -05:00
Stefan Metzmacher
f20e251bfd r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
configure check for the interfaces.

should fix the build on some old sun boxes

metze
2007-10-10 14:15:39 -05:00
Stefan Metzmacher
200b1a5c81 r17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202
metze
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
c4387dd3f6 r17538: this function should be static...
metze
2007-10-10 14:15:35 -05:00
Andrew Bartlett
a30d312b50 r17522: Fix another declaration after statement.
Andrew Bartlett
2007-10-10 14:15:32 -05:00
Andrew Bartlett
55bac30e1f r17517: Fix declaration after statement, which breaks the build on older GCC.
Andrew Bartlett
2007-10-10 14:15:32 -05:00
Simo Sorce
ad75cf8695 r17516: Change helper function names to make more clear what they are meant to do 2007-10-10 14:15:31 -05:00
Stefan Metzmacher
5609ab2116 r17494: add tests for the example values from rfc 1320 (MD4)
metze
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
bb1e4954f9 r17492: add a test with the example values from rfc1321 (MD5)
metze
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
408e507f0f r17491: I forgot to commit this...fix make test...sorry:-)
metze
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
d48930a02f r17488: - add SHA1 and HMACSHA1 functions, based on rfc 2104,2202,3174
- and add torture tests also based on the rfc's

metze
2007-10-10 14:15:28 -05:00
Rafal Szczesniak
809c9cca96 r17484: Make last version of the function generating random set of changes
more fair to each of the fields (ie. don't create new code at midnight
after a long day...).

This will be useful for testing multiple changes at once and verifying
correctness. A few testing runs already demostrated some missing pieces.

rafal
2007-10-10 14:15:28 -05:00
Alexander Bokovoy
7e6253a5f9 r17478: Add BENCH-READWRITE test to simulate read/write workload from simultaneous async clients. This code is based on concept from Mathias Dietz <mdietz@de.ibm.com> 2007-10-10 14:15:27 -05:00
Rafal Szczesniak
dbd34fe082 r17471: Add a function generating pseudorandom set of changes to test
user modify routines.

rafal
2007-10-10 14:15:27 -05:00
Rafal Szczesniak
e68e296cbe r17449: Add another field to the test before expanding the whole test
to more complex form.

rafal
2007-10-10 14:15:26 -05:00
Stefan Metzmacher
af1efa0c79 r17442: print out credentials on the "secret" objectClass and "trustedDomain"
objectclass

metze
2007-10-10 14:15:26 -05:00
Volker Lendecke
5cffd35fec r17417: Try to fix random failures in the build farm for 3_0.
Volker
2007-10-10 14:15:23 -05:00
Stefan Metzmacher
d8952f00c7 r17256: fix 2 crash bugs, which are introduced by making parameters
ref pointers!

I'm sure there're more places and more care is needed when idl files
are changed. Hopefully testing against windows in the build farm
find such bugs in future...

Why is in the client library this no more possible:

NTSTATUS foo([in,out,ref] uint8 *foo);

and then just

r.in.foo = &foo;
status = dcerpc_foo(p, mem_ctx, &r);

and r.out.foo will set to r.in.foo via pidl magic,
that worked some time ago...

metze
2007-10-10 14:10:24 -05:00
Andrew Tridgell
7b05c007ea r17255: fixed BENCH-NBENCH for new smb_raw_find_first() syntax 2007-10-10 14:10:24 -05:00
Volker Lendecke
0c05f571a0 r17205: Even if this makes me look foolish, at least start to scratch on the surface
of spoolss. If snum is to be removed, then we should make at least the attempt
to walk parts of the code before and after the changes.

This walks GetPrinterInfo level 0-7.

Volker
2007-10-10 14:10:18 -05:00
Volker Lendecke
0236f3b41a r17187: Beginnings of a little lsa walker for Samba3, if only to prevent the
regression we had in 3.0.23...

Volker
2007-10-10 14:10:17 -05:00
Simo Sorce
c6aa60c7e6 r17186: "async" word abuse clean-up part 2 2007-10-10 14:10:17 -05:00
Simo Sorce
25fc735404 r17185: Oh, I wanted to do this for sooo long time.
Finally acknowledge that ldb is inherently async and does not have a dual personality anymore
Rename all ldb_async_XXX functions to ldb_XXX except for ldb_async_result, it is now ldb_reply
to reflect the real function of this structure.

Simo.
2007-10-10 14:10:16 -05:00
Jeremy Allison
94886f8c40 r17141: Prove that create dispositions with truncate and
overwrite break oplocks.
Jeremy.
2007-10-10 14:10:14 -05:00
Jeremy Allison
720c425af1 r17139: Checking in Volker's extended oplock test.
Jeremy
2007-10-10 14:10:14 -05:00
Andrew Bartlett
15dd43b773 r17104: Rename function parameters and variables to avoid shadowing global
declarations.

Andrew Bartlett
2007-10-10 14:10:13 -05:00
Jeremy Allison
382c37e3d7 r17099: Samba3 now passes RAW-LOCK completely, no need for
parameters to protect it.
Jeremy.
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
22463cbcdd r17085: reuse the existing sec_desc_buf struct
metze
2007-10-10 14:10:12 -05:00
Volker Lendecke
6718550822 r17082: Add a test that walks and tests denying tconX access via the share security
descriptor. This is something that W2k3 does _not_ pass and probably is not
expected to, it seems the don't check access at tconX time.

Thanks to metze for the hint how in the srvsvc_NetShareInfo1501 struct the
length of the sd can be encoded in idl.

As metze says, there's probably more to the share secdesc, this needs more
testing. This one is here to walk the samba3 code.

Volker
2007-10-10 14:10:11 -05:00
Volker Lendecke
92afe11569 r17074: Extend the rpc-samba3-getusername test: This creates a normal user and we
check if we can actually see the user SID on a fresh sessionsetup.

This also gives us the simple create_user, which can lead to more fun tests
:-)

Volker
2007-10-10 14:10:11 -05:00
Volker Lendecke
963878a5f3 r17069: Make us pass RPC-NETLOGSAMBA3 against w2k3 again 2007-10-10 14:10:10 -05:00
Volker Lendecke
4f13b7d53c r17065: NT4 does not like "0" here, W2k3 does not care... 2007-10-10 14:10:10 -05:00
Volker Lendecke
5603db30e7 r17064: lsa_GetUserName needs to return the name for S-1-5-7 on an anonymous login.
Found that because I want to play around with setsharesecurity, for this I
need the "whoami" call figuring out the SID of the currently connected user.

Not activating this test yet until the build farm has picked up the new samba4
revision.

Volker
2007-10-10 14:10:10 -05:00
Stefan Metzmacher
49b96ac44a r17020: pass the real error to the failing requests
metze
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
d90313f715 r17015: add a test that closes the tcp connection with an outstanding
notify request

metze
2007-10-10 14:10:08 -05:00
Volker Lendecke
b370c9c8dd r16988: Extend locktest to enable cluster testing byte range locks. -l <unclist> will
redirect the first server/share via the unclist file.

Volker
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
db5a94ce0a r16982: fix compiler warning, gentest will not use any SMB2 levels...
metze
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
687776a436 r16981: check the returned values
metze
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
de50e0ccdd r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
- parse SMB2 Notify reponse

metze
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
07b27333d5 r16977: do a few more notify tests
metze
2007-10-10 14:10:05 -05:00
Stefan Metzmacher
9dfbb0d15e r16976: add a very simple SMB2-NOTIFY test
metze
2007-10-10 14:10:05 -05:00
Andrew Bartlett
7b8240e8fd r16966: Fix compile warnings.
Andrew Bartlett
2007-10-10 14:10:04 -05:00
Volker Lendecke
656d8337c4 r16958: We also do level 1501 on NetShareGetInfo 2007-10-10 14:10:03 -05:00
Volker Lendecke
bd84fde777 r16956: Walk some of the samba3 srvsvc code 2007-10-10 14:10:03 -05:00