1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

12018 Commits

Author SHA1 Message Date
Jelmer Vernooij
c1c34c4179 r21828: Hardcode prototypes, as they're a public API.
(This used to be commit 02ae0b9cde)
2007-10-10 14:49:33 -05:00
Stefan Metzmacher
37f2d53528 r21827: move comments to the place where the functionality is implemented
metze
(This used to be commit 5d49d8b9e1)
2007-10-10 14:49:33 -05:00
Stefan Metzmacher
63fd883e54 r21826: reorder functions
metze
(This used to be commit 3d0a810ccd)
2007-10-10 14:49:32 -05:00
Stefan Metzmacher
31c674bffc r21821: move comment about the becoming a dc to the code which implements it
and extent the comments a bit

metze
(This used to be commit 16c958600e)
2007-10-10 14:49:32 -05:00
Stefan Metzmacher
952a90814f r21820: move function, so that all are in top-down order as they get called
metze
(This used to be commit 38bb7f5445)
2007-10-10 14:49:32 -05:00
Stefan Metzmacher
d0f989628a r21817: give fields a meaning
metze
(This used to be commit 521355b57b)
2007-10-10 14:49:31 -05:00
Andrew Tridgell
c8cfbfdc8b r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
(This used to be commit 37aa32e2fe)
2007-10-10 14:49:31 -05:00
Andrew Tridgell
dd0b2572eb r21812: fixed an integer overflow error in the ndr push code.
This needs to be fixed in Samba3 as well. It might be exploitable (I
haven't confirmed one way or the other), so I think this should be
fixed for 3.0.25
(This used to be commit 4766175ff2)
2007-10-10 14:49:31 -05:00
Andrew Tridgell
f85bb4c1c3 r21811: fixed a queueing error in the dcerpc client code. WHen the
dcerpc_ship_next_request() logic was added the penidng queue was split
in two, but we also needed to update the code which removes requests
from the queue to know about the two queues. Following the pattern
used in other client libs, I based which queue to remove from on
req->state, and added a new state RPC_REQUEST_QUEUED. This fixes a
crash that happens when rpc requests time out.

This patch also fixes the handling of timed out bind requests, and the
talloc_reference handling in dcerpc_ndr_request_recv().
(This used to be commit f51a129b52)
2007-10-10 14:49:31 -05:00
Andrew Tridgell
676a04a056 r21807: modularise the opendb code, so different backends can be
implemented. This will allow for a ctdb opendb backend.
(This used to be commit 6b91ca0968)
2007-10-10 14:49:29 -05:00
Andrew Bartlett
9b03286b32 r21806: I've been working over the last week to fix up the LDAP backend for
Samba4.  This only broke on global catalog queries, which turned out to
be due to changes in the partitions module that metze needed for his
DRSUAPI work.

I've reworked partitions.c to always include the 'problematic' control,
and therefore demonstrated that this is the issue.  This ensures
consistency, and should help with finding issues like this in future.

As this control (DSDB_CONTROL_CURRENT_PARTITION_OID) is not intended to
be linearised, I've added logic to allow it to be skipped when creating
network packets.

I've likewise make our LDAP server skip unknown controls, when marked
'not critical' on it's input, rather than just dropping the entire
request.  I need some help to generate a correct error packet when it is
marked critical.

Further work could perhaps be to have the ldap_encode routine return a
textual description of what failed to encode, as that would have saved
me a lot of time...

Andrew Bartlett
(This used to be commit eef710668f)
2007-10-10 14:49:29 -05:00
Andrew Bartlett
b6b98f6300 r21805: Add PAC_TYPE_CONSTRAINED_DELEGATION to the PAC_TYPE enum.
(This used to be commit 6fb3b4be10)
2007-10-10 14:49:29 -05:00
Stefan Metzmacher
252331a35d r21799: tell roken.h.in to not generate prototypes for setenv() and unsetenv()
metze
(This used to be commit 974eb5eb68)
2007-10-10 14:49:29 -05:00
Stefan Metzmacher
8988113a42 r21798: unsetenv() returns void on some platforms (BSD)
metze
(This used to be commit 9cdb9f1cee)
2007-10-10 14:49:28 -05:00
Stefan Metzmacher
d464f0e78b r21797: remove the key directly from the environ array
inspired by:
http://cvs.linux-ha.org/viewcvs/viewcvs.cgi/linux-ha/replace/unsetenv.c?rev=1.4&view=auto

metze
(This used to be commit 8787525e51)
2007-10-10 14:49:28 -05:00
Stefan Metzmacher
de75e93817 r21796: check if unsetenv() works on an non-existing key
metze
(This used to be commit c6b4f2d151)
2007-10-10 14:49:28 -05:00
Stefan Metzmacher
14233bb76f r21795: fix the prototype of unsetenv()...
metze
(This used to be commit 2952c20b77)
2007-10-10 14:49:28 -05:00
Stefan Metzmacher
d358087227 r21794: add setenv()/unsetenv() testsuite
metze
(This used to be commit 3df206ddfa)
2007-10-10 14:49:27 -05:00
Stefan Metzmacher
544a2d30e0 r21793: add replacement for unsetenv()
metze
(This used to be commit d6de7f2cda)
2007-10-10 14:49:27 -05:00
Andrew Bartlett
9b921af12e r21791: This test is still just as valid without as much CPU time wasted.
Andrew Bartlett
(This used to be commit 3549785700)
2007-10-10 14:49:27 -05:00
Andrew Bartlett
67e22aa6ff r21790: Setup the socket_wrapper_dir when we set the environment variable.
Andrew Bartlett
(This used to be commit 5c07dbd248)
2007-10-10 14:49:26 -05:00
Andrew Bartlett
7b706c7091 r21789: We do actually need this, to get a contextCSN attribute, which we need
for USN support.

Andrew Bartlett
(This used to be commit 5f36350243)
2007-10-10 14:49:26 -05:00
Stefan Metzmacher
3e697d5110 r21773: fix typo orginating -> originating
and use the struct member names in all cases

metze
(This used to be commit c543ee5745)
2007-10-10 14:49:24 -05:00
Stefan Metzmacher
4e7520f643 r21772: add DS_BEHAVIOR_WIN2003_INTERIM constant
metze
(This used to be commit 59fffa7ba1)
2007-10-10 14:49:24 -05:00
Andrew Bartlett
7a9f31a926 r21771: We just don't need to test this on more than one transport.
Andrew Bartlett
(This used to be commit c55edacba5)
2007-10-10 14:49:24 -05:00
Andrew Bartlett
3370f2f2d7 r21761: - Give more detail on LDAP client library failures (make it clear
where the error is from)

- Make default error string more consistant

Andrew Bartlett
(This used to be commit 7f115579d2)
2007-10-10 14:49:24 -05:00
Andrew Bartlett
f80d21069b r21760: Try to pin down were some errors are coming from. Ensure we at least
name the module.

Andrew Bartlett
(This used to be commit 2e85b1583b)
2007-10-10 14:49:23 -05:00
Andrew Bartlett
35a606378d r21751: These 2 tests pass for me, so add them to the standard test script.
Andrew Bartlett
(This used to be commit 8a5b3067e9)
2007-10-10 14:49:23 -05:00
Andrew Bartlett
548ffe7cf6 r21746: We don't link in this file any more.
(This used to be commit 123ae858c7)
2007-10-10 14:49:23 -05:00
Andrew Bartlett
5f2f653dcb r21745: indent
(This used to be commit 7841b29906)
2007-10-10 14:49:22 -05:00
Andrew Bartlett
85a11bc1bb r21744: Test more talloc failure cases.
Andrew Bartlett
(This used to be commit ddf7354986)
2007-10-10 14:49:22 -05:00
Andrew Bartlett
45be80844e r21743: Always use the 'escaped' LDAPI path.
Wait around for the server to start, so we don't try to contact it
during it's starup phase.

Andrew Bartlett
(This used to be commit f484b0a924)
2007-10-10 14:49:22 -05:00
Andrew Tridgell
0012f7509a r21742: reenable the smbclient test now that the d_printf bug is fixed
(This used to be commit f483f5b26a)
2007-10-10 14:49:22 -05:00
Andrew Bartlett
d500181515 r21741: Like starting smbd, ensure we have acutally started slapd, and it is
listening, before we continue.

Andrew Bartlett
(This used to be commit 171540e06a)
2007-10-10 14:49:21 -05:00
Andrew Tridgell
793db3bc50 r21740: this fixes the real cause of the large log files we had. The problem
was we were not checking the result of a convert_string() call, and it
was giving -1. We then passed -1 to fwrite() on stdout, which on aix
and macosx wrote all of available memory to stdout :)

To fix this, replace non-printing chars with ? in d_printf if the
string cannot be converted
(This used to be commit d20102d363)
2007-10-10 14:49:21 -05:00
Andrew Bartlett
41a72a506f r21739: Make it easy to change the log level for the slapd processes, and have
the logs go to a file.

Andrew Bartlett
(This used to be commit 9aaa193197)
2007-10-10 14:49:21 -05:00
Andrew Bartlett
847102c6ca r21736: Fix the smbclient test to do something more interesting with the last
few authentication tests.  Now that the tests correctly 'fail', I was
able to fix the credentials subsystem to honour USER and PASSWD.

To get --machine-pass working, I needed ldb to always load it's static
modules, so I put this in ldb_connect().

Andrew Bartlett
(This used to be commit 3430d8c072)
2007-10-10 14:49:20 -05:00
Andrew Tridgell
b0b31f52f7 r21735: skip the smbclient test until jelmer can take a look at it. The
current test makes no sense with the new test system. For example, it
does "mkdir bla" then "cd bla" then "cd ..", but it now does these as
separate smbclient commands, which makes no sense at all. It even
seems to try to run them in parallel???

The test fails (segfault, plus lots of errors), but gets reported as a
success
(This used to be commit 9e3bbdee50)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
eaa02e4b54 r21733: Merge testenv back into core selftest.pl
(This used to be commit 4b78ed3a60)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
8fdbf34ea7 r21732: Use smbtorture for enumerating tests.
(This used to be commit f6aa921521)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
f91f57b749 r21730: Reintroduce summary for testenv, remove old (no longer used) file.
(This used to be commit 0140aa5fd9)
2007-10-10 14:49:19 -05:00
Jelmer Vernooij
effbda4fd8 r21729: Some more tests
(This used to be commit d2baa8218c)
2007-10-10 14:49:19 -05:00
Andrew Bartlett
904c03abc4 r21728: Perhaps we don't need this on recent OpenLDAP servers. This overlay
is depricated.

Andrew Bartlett
(This used to be commit 32e39b377a)
2007-10-10 14:49:19 -05:00
Andrew Bartlett
aeaa440932 r21727: Walk some more of the error branches in the ChangePasswordUser server.
Andrew
(This used to be commit c1ee06703a)
2007-10-10 14:49:18 -05:00
Volker Lendecke
0aebd296cd r21722: Add the dead record functionality presented on samba-technical@samba.org. If
you do a tdb_set_max_dead(tdb, n), then for this tdb a delete operation will
only mark a record as dead and re-use it if a new record is created. The
parameter n allows for at most n dead records per hash chain. If this number
is exceeded, all dead records are put on the central freelist.

Volker
(This used to be commit 98a27ab28a)
2007-10-10 14:49:18 -05:00
Andrew Bartlett
0fa6e86b57 r21721: Push the 'Success! Your new directory server instance was created'
message to stderr.

Andrew Bartlett
(This used to be commit 0b8b3f6671)
2007-10-10 14:49:18 -05:00
Andrew Bartlett
6376a474c7 r21720: Try to make 'TEST_LDAP=yes make test' work again. These recent
changes seem to have been lost in the merge, and some variables were
not yet exported.

Andrew Bartlett
(This used to be commit ee9d9fb6c0)
2007-10-10 14:49:18 -05:00
Andrew Bartlett
3e1dd63927 r21719: Try to cover more of the server-side password processing.
Don't just exit the test with 'return True', actually process the result.

Turn off password complexity checking for the password length test.

Andrew Bartlett
(This used to be commit 1a7635baa7)
2007-10-10 14:49:17 -05:00
Jelmer Vernooij
ac9bb2e4fb r21716: Report status in a way the build farm recognizes.
(This used to be commit 8d775e87b5)
2007-10-10 14:49:17 -05:00
Jelmer Vernooij
70e6a8bfec r21713: Redirect stderr output to stdout.
(This used to be commit a5000b286d)
2007-10-10 14:49:17 -05:00
Jelmer Vernooij
15d4047d06 r21712: Run tdb stress test.
(This used to be commit e480beb956)
2007-10-10 14:49:16 -05:00
James Peach
754d416ea5 r21710: Add client support for the UNIX_INFO2 info level in the QueryFile,
QueryPath and FindFirst calls. Add a new torture test to verify the
server side.
(This used to be commit 7f56da2d1f)
2007-10-10 14:49:16 -05:00
Jelmer Vernooij
804ac30704 r21709: Add a list of tests that should be skipped rather than ad-hoc test skipping in various places.
(This used to be commit 01befd5211)
2007-10-10 14:49:16 -05:00
Jelmer Vernooij
72d88d158a r21707: Finally merge my (long-living) perlselftest branch.
This changes the main selftest code to be in perl rather than in shell script.

The selftest script is now no longer a black box but a regular executable that takes
--help.

This adds the following features:

 * "make test TESTS=foo" will run only the tests that match the regex "foo"
 * ability to deal with expected failures. the suite will not warn about tests
   that fail and are known to fail, but will warn about other failing tests and
   tests that are succeeding tests but incorrectly marked as failing.
 * ability to print a summary with all failures at the end of the run

It also opens up the way to the following features, which I hope to implement later:
 * "environments", for example having a complete domains with DCs and domain members
 in a testenvironment
 * only set up smbd if necessary (not when running LOCAL tests, for example)
 * different mktestsetup scripts per target. except for the mktestsetup script, we can
   use the same infrastructure for samba 3 or windows.
(This used to be commit 38f867880b)
2007-10-10 14:49:15 -05:00
Jelmer Vernooij
d18afd6aee r21701: Fix ejs tests.
(This used to be commit e4cf8f1dea)
2007-10-10 14:49:15 -05:00
Jelmer Vernooij
000a094318 r21700: Run mktestsetup as an external program. This guarantees that it can be used for other selftest implementations (in particular the perl one I've been working on).
(This used to be commit aa29907327)
2007-10-10 14:49:15 -05:00
Andrew Bartlett
0a1fefe539 r21699: Because TALLOC_CTX is a void*, I didn't get a compiler warning about
this incorrect argument.

This also fixes the server-side valgrind issue, but we need to chase
down the real issue.

Andrew Bartlett
(This used to be commit a0c78a75ac)
2007-10-10 14:49:15 -05:00
Andrew Bartlett
c069ead0bb r21698: Check for talloc failures.
Andrew Bartlett
(This used to be commit c9eb5bf19a)
2007-10-10 14:49:14 -05:00
Andrew Bartlett
099a3a7f52 r21697: Try to cover the 'bad session key' codepaths too.
Andrew Bartlett
(This used to be commit 33cfe1ca22)
2007-10-10 14:49:14 -05:00
Andrew Bartlett
6bca66d7d1 r21696: Run the RPC-COUNTCALLS test to try and walk some of the NDR layer for
routines for which we don't have any tests.

Andrew Bartlett
(This used to be commit e5b9bdf037)
2007-10-10 14:49:14 -05:00
Jelmer Vernooij
ae49e533ab r21695: Fix on bigendian systems.
(This used to be commit 98f92dd6a1)
2007-10-10 14:49:14 -05:00
Jelmer Vernooij
1d75e907e2 r21694: Some more testing updates.
(This used to be commit 9247626b1c)
2007-10-10 14:49:13 -05:00
Andrew Bartlett
0a28fbae1b r21693: Fix the RPC-SCANNER test. Share some code with the RPC-MGMT test to
make things easier to keep working.

Andrew Bartlett
(This used to be commit 16db4c1436)
2007-10-10 14:49:13 -05:00
Andrew Bartlett
32cdb5aa31 r21692: Test with LDAP, but without the non-block testing. This is not
compatible with the TLS layer at the moment.

https://bugzilla.samba.org/show_bug.cgi?id=4431

Andrew Bartlett
(This used to be commit 1e401286f9)
2007-10-10 14:49:13 -05:00
Jelmer Vernooij
0474005d07 r21691: Add testsuite for lib/charset
(This used to be commit a418489395)
2007-10-10 14:49:13 -05:00
Jelmer Vernooij
faaac73ff6 r21690: Test use of typedef /and/ struct name
(This used to be commit f6d9cdb8a8)
2007-10-10 14:49:12 -05:00
Andrew Bartlett
eb3d3fb27a r21689: Try to walk a bit more of the param/loadparm.c functions, as well as
validating that we have a correct configuration before we even start
testing.

Andrew Bartlett
(This used to be commit c399b20b44)
2007-10-10 14:49:12 -05:00
Jelmer Vernooij
bf08493a78 r21688: Add simple tests for genrand
(This used to be commit 90f23f0de8)
2007-10-10 14:49:12 -05:00
Andrew Bartlett
112e520073 r21687: Always test LDAP and LDAPS
(This used to be commit e830b81596)
2007-10-10 14:49:11 -05:00
Andrew Bartlett
737d24c9fc r21686: Do enable TLS, as we have solved the key setup problems, and we need
to get the TLS code covered.

Andrew Bartlett
(This used to be commit 4aa928dac3)
2007-10-10 14:49:11 -05:00
Jelmer Vernooij
d693c2707b r21685: Add some unit tests for the registry utility functions.
(This used to be commit 0ae6d18ebe)
2007-10-10 14:49:11 -05:00
Jelmer Vernooij
6cec40529d r21684: remove summary line for gtk code, as it's now maintained out-of-tree
(This used to be commit 0200971142)
2007-10-10 14:49:11 -05:00
Jelmer Vernooij
e465953662 r21683: Remove the gconf registry backend.
It's already been disabled for a while, as it required some compile flags that broke other things.

While this backend was an interesting proof-of-concept, this module doesn't really add any value.
It's not possible to map between windows registry and gconf semantics and I can't think of
any reason why you would want to do so.
(This used to be commit 02481df3e8)
2007-10-10 14:49:10 -05:00
Jelmer Vernooij
f29b5e90b1 r21682: Remove accidently committed debug command.
(This used to be commit 74a3681d65)
2007-10-10 14:49:10 -05:00
Jelmer Vernooij
035adfb943 r21681: Fix bug in the parsing code that parsed "struct foo;" the same as
"struct foo {};".

Reported by one of the OpenChange folks, thanks!
(This used to be commit d65b520f08)
2007-10-10 14:49:10 -05:00
Jelmer Vernooij
1ec8f79bae r21680: Reenable CLDAP test
(This used to be commit c6dfc90daf)
2007-10-10 14:49:09 -05:00
Jelmer Vernooij
e8fe61e7ae r21679: Disable upgrade test for now, I can't get it to work.
(This used to be commit 4929c07261)
2007-10-10 14:49:09 -05:00
Jelmer Vernooij
df1033b17e r21678: Don't generate Requires.private lines for install .pc files. Static library use by external programs is still broken, but this should at least fix shared libs.
(This used to be commit 06659bce1b)
2007-10-10 14:49:09 -05:00
Jelmer Vernooij
a4a9772e2c r21677: Run some of the other ldap tests, too
(This used to be commit b8f43e1eb1)
2007-10-10 14:49:09 -05:00
Jelmer Vernooij
2de3bbbdb0 r21676: Run more NET tests
(This used to be commit 06eb2faebb)
2007-10-10 14:49:08 -05:00
Jelmer Vernooij
a42b35a4c5 r21675: Run some more of the NET tests.
(This used to be commit 778a150f35)
2007-10-10 14:49:08 -05:00
Jelmer Vernooij
068cc7d4d5 r21674: Fix argument
(This used to be commit 43e1cccf11)
2007-10-10 14:49:08 -05:00
Jelmer Vernooij
99fb785ea1 r21673: Fix Samba 3 data read tests. I can't figure out why the upgrade one is broken, so that one is still disabled.
(This used to be commit ef794f03d5)
2007-10-10 14:49:08 -05:00
Jelmer Vernooij
1cc7b6e739 r21671: Add initial simple tests for socket wrapper
(This used to be commit 872e2ad541)
2007-10-10 14:49:07 -05:00
Jelmer Vernooij
0d0e4c99ca r21670: More tests
(This used to be commit eeb3b2ff68)
2007-10-10 14:49:07 -05:00
Jelmer Vernooij
bedf53f9e0 r21669: Fix --enable-dso build
(This used to be commit 7cf9d07c88)
2007-10-10 14:49:07 -05:00
James Peach
fcaeedeff3 r21668: Add SMB_QFS_POSIX_WHOAMI to trans2.h so it's easy to find. Add
convenience API to create an anonymous credential. Don't clobber
cmdline_credentials in the UNIX-WHOAMI test.
(This used to be commit 73cea4e0c6)
2007-10-10 14:49:07 -05:00
Jelmer Vernooij
9ca1a3c186 r21662: More samr tests
(This used to be commit 2eae55819e)
2007-10-10 14:49:06 -05:00
Jelmer Vernooij
acdfe6dcd8 r21661: Put direction in test name
(This used to be commit bb0ebdab63)
2007-10-10 14:49:06 -05:00
Jelmer Vernooij
648fe6610e r21660: Add another test
(This used to be commit 0b1e793ed5)
2007-10-10 14:49:06 -05:00
James Peach
737454d6a0 r21659: Rename functions.
(This used to be commit 6e645577a6)
2007-10-10 14:49:05 -05:00
Jelmer Vernooij
83d88d1521 r21658: Add some tests for SAMR NDR
(This used to be commit a36912721a)
2007-10-10 14:49:05 -05:00
Jelmer Vernooij
1afda7bdde r21656: Move tests a bit closer to the things they test, should make syncing with samba3 easier.
(This used to be commit 4d755fb5d7)
2007-10-10 14:49:05 -05:00
Jelmer Vernooij
f653871d77 r21654: Add simple test for print functions.
(This used to be commit 3c9df011a8)
2007-10-10 14:49:05 -05:00
Jelmer Vernooij
04fed31e1a r21653: Add two more tdr tests.
(This used to be commit cc40e3acd9)
2007-10-10 14:49:04 -05:00
Jelmer Vernooij
678c401d3e r21650: Update ndrdump to work in samba3
(This used to be commit 10295d9bdd)
2007-10-10 14:49:04 -05:00
Andrew Bartlett
b9df742fb4 r21649: Update self test scripts to start Fedora DS. This requires current
Fedora DS CVS, plus changes to split up 00core.ldif.

Now we 'just' need to work to make the tests pass...

Andrew Bartlett
(This used to be commit d214cb1ccf)
2007-10-10 14:49:04 -05:00
James Peach
0fff7ba143 r21648: Start a UNIX extensions test set. Add a test for the SMBWhoami query.
(This used to be commit ca89683dc2)
2007-10-10 14:49:04 -05:00
Andrew Tridgell
3bdf3aa144 r21620: commit updated versions (with correct paths)
(This used to be commit 2694bfb143)
2007-10-10 14:49:03 -05:00
Andrew Tridgell
084978b6b4 r21618: an attempt to fix the problem with lcov and yacc generated C code
(This used to be commit e9d17b5ba0)
2007-10-10 14:49:03 -05:00
Stefan Metzmacher
9c9ec64518 r21595: add a constant and some comments
metze
(This used to be commit b8af925da9)
2007-10-10 14:49:03 -05:00
Stefan Metzmacher
c6b66db2b2 r21594: give the same error in all resolve backends
metze
(This used to be commit 5534ba591d)
2007-10-10 14:49:03 -05:00
Stefan Metzmacher
e31d922592 r21593: give a more useful error, when we can't resolve a long name
via broadcast of wins

metze
(This used to be commit 49591d6996)
2007-10-10 14:49:02 -05:00
Stefan Metzmacher
7f13043d7e r21592: compress_name() returns NULL for names longer than 15 chars
giving NO_MEMORY back is ugly, so give a useful error

metze
(This used to be commit fbc1e16331)
2007-10-10 14:49:02 -05:00
Stefan Metzmacher
505fd4eb99 r21591: add new error code
metze
(This used to be commit 04da3db29d)
2007-10-10 14:49:02 -05:00
Stefan Metzmacher
b1a80dcec0 r21590: add RPC-HANDLES-MIXED-SHARED test, which shows that
assoc_groups are shared between idl-interfaces and connections.

But you can't close a samr policy handle on a lsa pipe.

add RPC-HANDLES-RANDOM-ASSOC test, which shows that
you can't bind with an invalid assoc_group_id

metze
(This used to be commit 26b0e03a77)
2007-10-10 14:49:01 -05:00
Stefan Metzmacher
ca14957d50 r21589: give an error when the assoc_group_id isn't 0
TODO: we need to correctly implement assoc groups!

metze
(This used to be commit df7c6c6e0b)
2007-10-10 14:49:01 -05:00
Stefan Metzmacher
9545dc2835 r21588: add a RPC-HANDLES-LSARPC-SHARED test, which demonstrates
policy handles can be shared between connections

metze
(This used to be commit 874cb39366)
2007-10-10 14:49:01 -05:00
Jelmer Vernooij
6394f3ec4b r21586: update manifest
(This used to be commit 6ec3c5430d)
2007-10-10 14:49:01 -05:00
Jelmer Vernooij
5ba8169109 r21584: Support for tagged types has landed!
It's now possible to use "struct foo" without a typedef in IDL files.

echo_info4 is the first type that's been converted.
(This used to be commit 3ac68e858d)
2007-10-10 14:49:00 -05:00
Stefan Metzmacher
c200374325 r21583: add missing CN=
metze
(This used to be commit 199416a4d3)
2007-10-10 14:49:00 -05:00
Jelmer Vernooij
82266dc22f r21582: Allow modification of LDFLAGS
(This used to be commit 1726bd3378)
2007-10-10 14:49:00 -05:00
Jelmer Vernooij
179a9c7210 r21580: Add generic target for test coverage data.
(This used to be commit a41b72458d)
2007-10-10 14:48:59 -05:00
Jelmer Vernooij
3bc13d6eed r21579: Use utility function to determine function names in ejs code.
(This used to be commit 1736de4c73)
2007-10-10 14:48:59 -05:00
Jelmer Vernooij
4c99e87f9b r21578: Use utility function for naming pull/push/print functions.
(This used to be commit e0f626b79c)
2007-10-10 14:48:59 -05:00
Jelmer Vernooij
240b470f44 r21575: Fix handling of is_scalar() for declares.
(This used to be commit f0bc29df72)
2007-10-10 14:48:59 -05:00
Jelmer Vernooij
a635df47da r21574: Fix handling of DECLARE.
(This used to be commit 6a4033464b)
2007-10-10 14:48:58 -05:00
Jelmer Vernooij
c1aef15fe7 r21573: Remove more code that assumed all types are typedefs.
(This used to be commit bbbfbfa870)
2007-10-10 14:48:58 -05:00
Jelmer Vernooij
d7a7b7fb0c r21572: More work towards supporting tagged types.
(This used to be commit 4d28396f09)
2007-10-10 14:48:58 -05:00
Andrew Tridgell
3d61a1bbdd r21571: added RPC-HANDLES test to make test
(This used to be commit 73da5e368b)
2007-10-10 14:48:58 -05:00
Andrew Tridgell
bedc59ca5c r21570: added a RPC-HANDLES test that tries to show that rpc policy handles
are not shared between connections. It tests three types of policy
handles, on lsa, samr and drsuapi. You need to run on ncacn_ip_tcp
with seal for drsuapi.

Metze, can you have a look and see how this tallies with what you've
seen?
(This used to be commit c1f41ac045)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
f5f0e502b3 r21568: More tests.
(This used to be commit c7bde9c1f5)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
6f3c968e64 r21567: Add some more wireshark tests.
(This used to be commit 40e2956058)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
7870652898 r21564: Move ndrdump to librpc/tools.
(This used to be commit e3cc94e7d1)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
cdb18fd22d r21559: More tests.
(This used to be commit c68573392b)
2007-10-10 14:48:56 -05:00
Jelmer Vernooij
2916cc628a r21555: Some tests for TYPE in wireshark conformance files.
(This used to be commit 2a44c8c9c2)
2007-10-10 14:48:56 -05:00
Andrew Bartlett
ad3b40d258 r21554: Use a snippet from tridge's junkcode to cause us to wait for smbd to
exit.

If we kill smbd right away, we can interrupt the gcov data file
writeout.  Instead, we now wait up to 20 seconds for the process to
exit, before sending it a kill -9.

Andrew Bartlett
(This used to be commit c547bce3d3)
2007-10-10 14:48:56 -05:00
Andrew Bartlett
e2aa39b024 r21553: Remove bogus comment.
(This used to be commit 7c5529729b)
2007-10-10 14:48:55 -05:00
Jelmer Vernooij
43679c82f4 r21545: Fix pidl test.
(This used to be commit ed0a7f5091)
2007-10-10 14:48:55 -05:00
Jelmer Vernooij
e31197308c r21544: Fix duplicate names. The build system should be warning about this....
(This used to be commit 623026f67a)
2007-10-10 14:48:55 -05:00
Jelmer Vernooij
fd2d095048 r21541: Export mgmt, samr and atsvc for use in samba-gtk.
(This used to be commit 7f451cbb8d)
2007-10-10 14:48:55 -05:00
Stefan Metzmacher
8c62b4c951 r21539: try to get rid of all valgrind warnings...
metze
(This used to be commit 21f0e8e163)
2007-10-10 14:48:54 -05:00
Stefan Metzmacher
815d3f2e68 r21538: this looks better...
metze
(This used to be commit 8ddfbbcb93)
2007-10-10 14:48:54 -05:00
Andrew Tridgell
60fd088c48 r21535: - fixed a crash in the RAW-ACLS test. When a dcerpc_pipe is created
using the pattern in the clilsa code, it didn't fill in the p->binding
structure. This affects nearly all users of dcerpc_pipe_open_smb(), so
the simplest fix is to ensure that dcerpc_pipe_open_smb() initialises
the binding if its not already there.

- re-enable the RAW-ACLS test
(This used to be commit d8875c286d)
2007-10-10 14:48:54 -05:00
Jelmer Vernooij
b8c219a270 r21534: Add some more tests for wireshark.
(This used to be commit b104320961)
2007-10-10 14:48:54 -05:00
Stefan Metzmacher
0e617102ef r21533: try to get rid of the valgrind warnings of uninitialized memory
passed to a socket

metze
(This used to be commit 18ce338447)
2007-10-10 14:48:53 -05:00
Jelmer Vernooij
cb8fceab28 r21532: Add tests for StripPrefixes utility function.
(This used to be commit 365052555e)
2007-10-10 14:48:53 -05:00
Jelmer Vernooij
882c5a8b43 r21531: Use pidl-specific utility functions. Patch from Ronnie Sahlberg
(This used to be commit e6fdcdf95e)
2007-10-10 14:48:53 -05:00
Brad Henry
c7e06e88ae r21528: This file gets called by testit(), so it shouldn't call testit().
NET tests against Windows weren't getting run, testit() here just created a recipe.
(This used to be commit c71dee3402)
2007-10-10 14:48:52 -05:00
Stefan Metzmacher
8d569e174f r21524: don't send unitialized data to the socket
metze
(This used to be commit 50955aa669)
2007-10-10 14:48:51 -05:00
Stefan Metzmacher
3260b55188 r21523: fix a valgrind warning, we write the struct content to the file and should not leave
t2.out uninialized

metze
(This used to be commit 4723374d14)
2007-10-10 14:48:50 -05:00
Brad Henry
59d5e6a1b0 r21522: Stop passing the VM config file path to wintest_2k3_dc.sh on the command line.
Forgot this one in the last commit.
(This used to be commit 2982d9e90c)
2007-10-10 14:48:50 -05:00
Brad Henry
74e23c7e7a r21521: Add missing quotes around shell variables which could have spaces.
Stop passing the VM config file path to wintest_2k3_dc.sh on the command line as it is now properly passed through the environment.

Windows tests, including the DC tests found in test_w2k3.sh should work properly with 'make wintest' and a configured VMware environment.
These tests are executed on build-farm host bnhtest.
(This used to be commit 7496a28b43)
2007-10-10 14:48:50 -05:00
Stefan Metzmacher
067d8fd44c r21520: fix the altercontext test... sorry
I'm only fixing the bug I introduced here,
not the rest of the mess in the pipe handling,
as we don't fill in pipe->binding and pipe->conn->binding_str
consistant...

metze
(This used to be commit cec74f3528)
2007-10-10 14:48:49 -05:00
Stefan Metzmacher
a626e5a274 r21519: when we want to send non initialized data, then
generate a random buffer explicit to make valgrind happy

found by valgrind in the build-farm on fort, there are some more places
like this...

metze
(This used to be commit 2654f595ca)
2007-10-10 14:48:49 -05:00
Stefan Metzmacher
041b0cfa97 r21518: fix panic, sorry...
metze
(This used to be commit 3c786eb6bd)
2007-10-10 14:48:49 -05:00
Stefan Metzmacher
d92bc6db36 r21516: - use the same assoc_group_id, for all 3 drsuapi connection
- use the PFC_CONC_MPX flag for the 3rd connection
- to DsGetNCChanges requests on the 3rd connection with the bind handle
  from the 2nd connection to match w2k3

metze
(This used to be commit 5071af332c)
2007-10-10 14:48:48 -05:00
Stefan Metzmacher
1b17d9a587 r21515: add some more PFC_FLAGS from the DCERPC spec, and fix some names
also make it possible to pass and get the assoc_group_id for
a pipe.

also make it possible to pass the DCERPC_PFC_FLAG_CONC_MPX flag
in bind requests. From the spec it triggers support for
concurrent multiplexing on a single connection.

w2k3 uses the assoc_group_id feature when it becomes a domain controller
of an existing domain. Know the ugly part, with this it's possible to
use a policy handle from one connection on a different one...

typically the DsBind() call is on the 1st connection while DsGetNCChanges()
call using the first connections bind handle are on the 2nd connection.

The second connection also has the DCERPC_PFC_FLAG_CONC_MPX flag attached,
but that doesn't seem to be related to the cross connection handle usage

Can anyone think of a nice way to implement the assoc_group_id stuff in our server?

metze
(This used to be commit 2d8c85397d)
2007-10-10 14:48:48 -05:00
Stefan Metzmacher
deea925853 r21514: move away from a hardcoded "smbtorturedc"
--option="become dc:smbtorture dc=mydcname"
--option="become dc:do not unjoin=yes"

joins as mydcname and creates mydcname_*.ldb files under lp_private_dir()

metze
(This used to be commit 22bc6d541e)
2007-10-10 14:48:48 -05:00
Andrew Bartlett
28884a1cab r21513: I don't know how long this has been wrong, but fix this up so we can
re-provision (as is required for the TEST_LDAP=yes version of make
test).

Andrew Bartlett
(This used to be commit ea4c2ea22f)
2007-10-10 14:48:48 -05:00