1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

244 Commits

Author SHA1 Message Date
Stefan Metzmacher
384b9f709a NBT-WINS: try to bind to port 137 in the NBT-WINS test
metze
(from samba4wins tree 5e101475d5ed62060c991ea71c943e76b862aeef)
2009-01-19 07:05:22 +01:00
Stefan Metzmacher
3b91640fbb NBT-WINS: initialize .dest_port explicit (we should fill the whole struct each time)
This makes the code more clear.

metze
2009-01-19 07:05:20 +01:00
Stefan Metzmacher
4f5b8b68d5 s4:libcli/wrepl: we don't need to resolve names
metze
2008-12-18 13:32:50 +01:00
Jelmer Vernooij
218f482fbf Use common strlist implementation in Samba 3 and Samba 4. 2008-10-12 00:56:56 +02:00
Volker Lendecke
af1c802791 The IRIX compiler does not like embedded unnamed unions 2008-10-02 08:09:25 +02:00
Günther Deschner
a1a92688ba s4-nbt: use ../libcli/nbt
Guenther
2008-09-23 09:37:24 +02:00
Günther Deschner
13a3971438 s4-nbt: use private_data instead of private.
Guenther
2008-09-23 09:37:24 +02:00
Andrew Bartlett
ac503b140d Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit b337369d5c)
2008-08-15 07:58:03 +10:00
Stefan Metzmacher
8b585deae4 NBT-WINSREPLICATION: be more robust to timing errors
Also reenable disabled tests.

metze
(This used to be commit 76878a9c79)
2008-08-14 13:13:48 +02:00
Andrew Bartlett
cb98944be3 Assert on failure to join domain in NBT-DGRAM
(This used to be commit 0a8080d0f2)
2008-08-14 11:54:19 +10:00
Simo Sorce
929adc9efa Make up the right dependencies now that ldb depends on libevents
(This used to be commit 3b8eec7ca3)
2008-06-14 11:59:19 -04:00
Jelmer Vernooij
d05ca8cbba Add convenience function for creating nbt sockets in torture.
(This used to be commit 1e6bfb1aa7)
2008-06-05 22:02:41 +02:00
Andrew Bartlett
59105620dc Correct an assertion in the testsuite.
Andrew Bartlett
(This used to be commit c3eeae2ea6)
2008-05-21 14:49:47 +10:00
Andrew Bartlett
52a3c96a89 Extend the NBT-DGRAM torture test again.
Andrew Bartlett
(This used to be commit f415484640)
2008-05-21 14:28:17 +10:00
Andrew Bartlett
f67156fc92 Extend the 'netlogon' CLDAP and NBT implementation.
This now handles checking if the user exists, including validating the
ACB mask on the user.

This would be a nasty security hole, if Kerberos did not already
expose this information anonymously...

Andrew Bartlett
(This used to be commit 441b286c00)
2008-05-21 12:37:36 +10:00
Andrew Bartlett
aa90730e0c Revert addition of 'mailslot' parameter.
It turns out that the mailslot name (and a useful private prointer) is
provided in the struct dgram_mailslot_handler.

Andrew Bartlett
(This used to be commit e17804b885)
2008-05-20 11:54:50 +10:00
Andrew Bartlett
4f557d7954 Show that the NTLOGON and NETLOGON mailslots are *very* similar.
Rework the mailslot infrustructure to cope, passing down the mailslot
name so that we can implement both in the same callback function.

Andrew Bartlett
(This used to be commit 89fdd77891)
2008-05-17 13:24:29 +10:00
Andrew Bartlett
ceb2e20f7d Test the use of the domain SID on the NETLOGON mailslot
Interestingly, despite these packets being very similar, this fails on
NTLOGON - no reply is received.

Andrew Bartlett
(This used to be commit 25ab0ad0a0)
2008-05-17 12:39:38 +10:00
Andrew Bartlett
58e7f253ea Rework the CLDAP and NBT netlogon requests and responses.
This now matches section 7.3.3 of the MS-ATDS specification, and all
our current tests pass against windows.  There is still more testing
to do, and the server implementation to complete.

Andrew Bartlett
(This used to be commit 431d0c0396)
2008-05-16 13:03:01 +10:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121d)
2008-04-27 14:02:46 +01:00
Simo Sorce
4e83011f72 Remove more event_context_init() uses from function calls within deep down the code.
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d39162)
2008-04-21 18:12:33 -04:00
Jelmer Vernooij
a145d21de6 Avoid using event_context_find where possible.
(This used to be commit 04420b4689)
2008-04-17 01:37:02 +02:00
Jelmer Vernooij
06d06c6c94 Use provided event context rather than looking for it.
(This used to be commit fd0bb96ace)
2008-04-17 01:19:20 +02:00
Jelmer Vernooij
4590432d62 Remove another global_loadparm instance.
(This used to be commit ccb29c0b46)
2008-02-21 18:43:02 +01:00
Jelmer Vernooij
c38c2765d1 Remove yet more uses of global_loadparm.
(This used to be commit e01c1e87c0)
2008-02-21 17:17:37 +01:00
Jelmer Vernooij
5f9abf527a Remove more global_loadparm uses.
(This used to be commit 4d6fd9381f)
2008-02-21 16:18:23 +01:00
Jelmer Vernooij
0500b87092 r26540: Revert my previous commit after concerns raised by Andrew.
(This used to be commit 6ac86f8be7)
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
3e75f222bc r26539: Remove unnecessary statics.
(This used to be commit e53e79eebe)
2007-12-21 05:52:05 +01:00
Jelmer Vernooij
aa32619c5c r26426: Remove uses of global_loadparm.
(This used to be commit e1d177c8c1)
2007-12-21 05:49:52 +01:00
Jelmer Vernooij
4b0199a549 r26409: Pass smb ports along.
(This used to be commit 2833f320de)
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
33582dffcc r26408: Remove use of global_loadparm.
(This used to be commit f933b43621)
2007-12-21 05:49:39 +01:00
Jelmer Vernooij
70f1f33af8 r26402: Require a talloc context in libnetif.
(This used to be commit a35e51871b)
2007-12-21 05:49:33 +01:00
Jelmer Vernooij
6f2252dace r26401: Don't cache interfaces context in libnetif.
(This used to be commit 9f975417cc)
2007-12-21 05:49:32 +01:00
Jelmer Vernooij
f055893ca5 r26382: Remove more uses of global_loadparm.
(This used to be commit 6d4c598534)
2007-12-21 05:49:17 +01:00
Jelmer Vernooij
274d07ddff r26381: Move global_loadparm higher up the call stack.
(This used to be commit 9922967674)
2007-12-21 05:49:16 +01:00
Jelmer Vernooij
237059838c r26380: Specify port number higher up the call stack.
(This used to be commit 77273e250c)
2007-12-21 05:49:13 +01:00
Jelmer Vernooij
5f4842cf65 r26376: Add context for libcli_resolve.
(This used to be commit 459e1466a4)
2007-12-21 05:49:12 +01:00
Jelmer Vernooij
bca631be1f r26329: Fix more loadparm_context references. Only about a 100 left now.
(This used to be commit ddf233346d)
2007-12-21 05:48:42 +01:00
Jelmer Vernooij
c5bf20c5fe r26325: Remove use of global_loadparm in netif.
(This used to be commit e452cb2859)
2007-12-21 05:48:37 +01:00
Jelmer Vernooij
0f21c092d6 r26311: Move port number specification higher up the call stack.
(This used to be commit ef946ff093)
2007-12-21 05:48:23 +01:00
Jelmer Vernooij
d378cf4c15 r26310: Remove more uses of global_loadparm.
(This used to be commit 9d806da113)
2007-12-21 05:48:22 +01:00
Jelmer Vernooij
b84be078c1 r26309: Move specification of port higher up the all stack.
(This used to be commit 7de55cde7c)
2007-12-21 05:48:21 +01:00
Jelmer Vernooij
b83a7a135f r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and wbsrv_connection.
(This used to be commit 7c00866423)
2007-12-21 05:47:47 +01:00
Jelmer Vernooij
1fbdd6ef1d r26264: pass name resolve order explicitly, use torture context for settings in dssync tests.
(This used to be commit c7eae1c784)
2007-12-21 05:47:39 +01:00
Jelmer Vernooij
43696d2752 r26252: Specify loadparm_context explicitly when creating sessions.
(This used to be commit 7280c1e941)
2007-12-21 05:47:29 +01:00
Jelmer Vernooij
bbdfbf8d9d r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
(This used to be commit a33a553054)
2007-12-21 05:47:20 +01:00
Stefan Metzmacher
dae6a24532 r25579: BOOL -> bool
metze
(This used to be commit 058a0619e9)
2007-10-10 15:07:59 -05:00
Jelmer Vernooij
2151cde580 r25554: Convert last instances of BOOL, True and False to the standard types.
(This used to be commit 566aa14139)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
37d53832a4 r25398: Parse loadparm context to all lp_*() functions.
(This used to be commit 3fcc960839)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
ffeee68e4b r25026: Move param/param.h out of includes.h
(This used to be commit abe8349f9b)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
3b6186a676 r25008: Remove use of pstring.
(This used to be commit c57869e262)
2007-10-10 15:05:33 -05:00
Jelmer Vernooij
ff83c689cb r25004: Avoid talloc_autofree_context() when possible.
(This used to be commit 79669d28a3)
2007-10-10 15:05:30 -05:00
Jelmer Vernooij
cd962355ab r25000: Fix some more C++ compatibility warnings.
(This used to be commit 08bb1ef643)
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
d05d5da1e8 r24846: Use metadata about dangerous tests.
(This used to be commit f914b828ff)
2007-10-10 15:03:18 -05:00
Jelmer Vernooij
2fefa818a9 r24728: Use more stock torture functions.
(This used to be commit da3a7ee407)
2007-10-10 15:02:58 -05:00
Jelmer Vernooij
d981c69a18 r24670: Use torture functions for settings.
(This used to be commit a690667630)
2007-10-10 15:02:36 -05:00
Andrew Bartlett
d57cb82663 r23811: Try to ensure struct nbt_name is always pre-declared. Might fix the
build on aico.

Andrew Bartlett
(This used to be commit 5609bd9d21)
2007-10-10 14:59:21 -05:00
Andrew Bartlett
a87dea2a08 r23810: Make things static, and remove unsued code.
This includes some of the original ildap ldap client API.  ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.

Andrew Bartlett
(This used to be commit dc27a7e41c)
2007-10-10 14:59:21 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
628ff1bea3 r22579: disable progress printing in the build-farm
metze
(This used to be commit 93089ad5e8)
2007-10-10 14:51:47 -05:00
Andrew Bartlett
e18eed167a r22322: Cut timelimits for BENCH tests run in quicktest.
Andrew Bartlett
(This used to be commit 63b89ccbeb)
2007-10-10 14:51:02 -05:00
Stefan Metzmacher
02097b0955 r20736: skip the NBT-WINSREPLICATION-OWNED test in make quicktest
metze
(This used to be commit b3ff3f8c36)
2007-10-10 14:40:35 -05:00
Stefan Metzmacher
31f9ec1233 r19698: fix whitespaces...
metze
(This used to be commit fa439f5655)
2007-10-10 14:28:12 -05:00
Andrew Tridgell
ab037664d8 r19439: revert my change to a torture assert - expected is a bool
(This used to be commit 1d231e45bd)
2007-10-10 14:21:32 -05:00
Andrew Tridgell
49371f496d r19433: Metze, please take a look at this one!
Failures on some platforms of the WINSREPLICATION test have been
bugging us for months. I finally traced it down to this one record, at
least on the SerNet-solaris8 machine. Disabling this one record allows
the test to pass. I have no idea why, but I'll leave that to Metze :)
(This used to be commit 94cdfd5458)
2007-10-10 14:21:30 -05:00
Jelmer Vernooij
8773e743c5 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305)
2007-10-10 14:21:12 -05:00
Stefan Metzmacher
a2eca9174c 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
(This used to be commit f20e251bfd)
2007-10-10 14:15:39 -05:00
Jelmer Vernooij
845df42a19 r16333: Move more code out of the core smbtorture. It now no longer
contains protocol-specific code.
(This used to be commit 819d3b4576)
2007-10-10 14:09:11 -05:00
Stefan Metzmacher
7a9076cba2 r15259: try to find the place that causes trouble on some build farm host
on the NBT-WINSREPLICATION-OWNED test

metze
(This used to be commit 72ae0dbaab)
2007-10-10 14:04:27 -05:00
Jelmer Vernooij
909b111f58 r14720: Add torture_context argument to all torture tests
(This used to be commit 3c7a5ce291)
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51)
2007-10-10 13:57:27 -05:00
Stefan Metzmacher
22244f0e9b r14441: try to get more hosts on the build farm pass the NBT-WINSREPLICATION-OWNED test
metze
(This used to be commit 7fa5ae8cce)
2007-10-10 13:57:25 -05:00
Jelmer Vernooij
eefe30b7d8 r14379: Build torture/rpc/ as a seperate smbtorture module. Move helper
functions for rpc out of torture/torture.c
(This used to be commit 1d2d970f3b)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
3f16241a1d r14363: Remove credentials.h from the global includes.
(This used to be commit 98c4c30513)
2007-10-10 13:57:14 -05:00
Stefan Metzmacher
d2d9c0f25b r14319: this is a test to see if this help to run NBT-WINSREPLICATION-OWNED on more systems
on the buildfarm successful...

metze
(This used to be commit 0507203c35)
2007-10-10 13:57:12 -05:00
Stefan Metzmacher
0b18c8f863 r14318: fix warnings
metze
(This used to be commit c99c057354)
2007-10-10 13:57:11 -05:00
Jelmer Vernooij
4ac2be9958 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
(This used to be commit 1228358767)
2007-10-10 13:52:24 -05:00
Stefan Metzmacher
f2f3e1801b r13627: split the NBT-WINSREPLICATION tests into multiple tests
metze
(This used to be commit ae559920e1)
2007-10-10 13:52:02 -05:00
Andrew Bartlett
358122c688 r13479: Return the joined domain SID and user SID as structures, not strings.
Andrew Bartlett
(This used to be commit e1de45bce4)
2007-10-10 13:51:55 -05:00
Stefan Metzmacher
1a53c1dc92 r13346: use private proto header files for the torture tests
metze
(This used to be commit 67837dbd2b)
2007-10-10 13:51:47 -05:00
Jelmer Vernooij
e53f420552 r13182: Add first bits of browsing testsuite.
(This used to be commit 841fb3d4e7)
2007-10-10 13:51:32 -05:00
Stefan Metzmacher
63bbc2aea6 r13035: active,special group replicas are overwritten by tombstone,special group replicas
metze
(This used to be commit cf669e4b2a)
2007-10-10 13:51:18 -05:00
Stefan Metzmacher
e1622519d3 r12907: skip some tests for make quicktest in NBT-WINSREPLICATION
metze
(This used to be commit b206c5e87c)
2007-10-10 13:51:01 -05:00
Andrew Bartlett
f55ea8bb3d r12804: This patch reworks the Samba4 sockets layer to use a socket_address
structure that is more generic than just 'IP/port'.

It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).

This passes 'make test' as well as kerberos use (not currently in the
testsuite).

The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again.   It also removes nbt_peer_addr, which was being used
for a similar purpose.

It is a large change, but worthwhile I feel.

Andrew Bartlett
(This used to be commit 88198c4881)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
76480dba70 r12639: - do some tests with 0x20 0x1B names
- do some tests with 0xBF and 0xBE, this shows that the '+' padding
  should be done by the client

metze
(This used to be commit 5a257ba981)
2007-10-10 13:49:11 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318)
2007-10-10 13:49:03 -05:00
Stefan Metzmacher
e161613cbd r12413: do some testing with 0x1E names
metze
(This used to be commit b96eadb890)
2007-10-10 13:47:35 -05:00
Stefan Metzmacher
d8c4862d8c r12211: remove unused element
metze
(This used to be commit 1c05868680)
2007-10-10 13:47:19 -05:00
Stefan Metzmacher
36acd6e79c r12200: - move the the winsreplication client and server code to the packet_context
system
- this needs to be in one big patch, because of the merging code,
  that changes client in server connections and the other way around
- use socket_connect_send/_recv() in the client code

metze
(This used to be commit f0105b7fcd)
2007-10-10 13:47:17 -05:00
Stefan Metzmacher
37cc5873e0 r12075: remove NBT-WINSREPLICATION-QUICK test, as we now pass the NBT-WINSREPLICATION
test

metze
(This used to be commit 224dab45ab)
2007-10-10 13:47:06 -05:00
Stefan Metzmacher
9286235cf8 r12069: fix typo
metze
(This used to be commit 3c442ccb59)
2007-10-10 13:47:04 -05:00
Stefan Metzmacher
bf6ac47848 r12068: a better fix to prevent crashing, on errors
metze
(This used to be commit 7b20f8e66d)
2007-10-10 13:47:04 -05:00
Stefan Metzmacher
7ab5c74a98 r12067: print out some more details
metze
(This used to be commit 8207969a57)
2007-10-10 13:47:04 -05:00
Stefan Metzmacher
dbeb44eeda r12066: - add a unique,active,owner vs. unique,active,replica tests where
we respond with the replicas address to the challenge
- fix some skip checks

metze
(This used to be commit a37aaa93cb)
2007-10-10 13:47:04 -05:00
Stefan Metzmacher
84033c20f0 r12024: do some extra sleeping to give the server the chance to handle our reply
metze
(This used to be commit 144bde91b3)
2007-10-10 13:47:01 -05:00
Tim Potter
03d301ead5 r11967: Fix more 64-bit warnings.
(This used to be commit 9c4436a124)
2007-10-10 13:46:52 -05:00
Stefan Metzmacher
97e19e9716 r11911: as we pass the owned_released vs. replica test now, run it with make test
metze
(This used to be commit d34580ec70)
2007-10-10 13:46:48 -05:00
Stefan Metzmacher
7746a144cd r11899: add some usefull debug messages
metze
(This used to be commit 8b9447e8c1)
2007-10-10 13:46:44 -05:00
Stefan Metzmacher
6aff2946e1 r11897: add 2 more sgroup vs. sgroup tests with the replica having no addresses
metze
(This used to be commit 22b8d5014a)
2007-10-10 13:46:43 -05:00
Stefan Metzmacher
4d4afa8d6d r11887: reorder some tests
metze
(This used to be commit a4277c6b26)
2007-10-10 13:46:41 -05:00