1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

11879 Commits

Author SHA1 Message Date
Stefan Metzmacher
78eb31a8f0 r21292: add become_dc:print = yes option to dump out the drsuapi traffic
metze
(This used to be commit 5065a9b5ffe4dc9a77f4e5955dc0d8d86feb8c5e)
2007-10-10 14:48:02 -05:00
Stefan Metzmacher
10c928a94f r21291: add two more error codes
metze
(This used to be commit dd04c5dec58b18048ca5029f7bfe513242cbe4e9)
2007-10-10 14:48:02 -05:00
Stefan Metzmacher
9bdb49455a r21282: we only need one for loop...
metze
(This used to be commit 181b3a031f9683ea5e9aa2c96f121639561c6830)
2007-10-10 14:44:59 -05:00
Stefan Metzmacher
e38fad186f r21281: move constinancy checks to the beginning of the function
metze
(This used to be commit f2af44d20484e57495ab0ebd5aab993e4af43fd4)
2007-10-10 14:44:58 -05:00
Volker Lendecke
f089de886f r21276: Actually fire off multiple parallel read/write requests.
Volker
(This used to be commit 1d7bcdb33ef19be7bf64356b9cb8eee9658afe09)
2007-10-10 14:44:58 -05:00
Volker Lendecke
22d39d1bee r21275: Reformat the bench-readwrite test a bit
(This used to be commit d2d44bf6779c6ac46b011d7e3b372c28c6f8a4f9)
2007-10-10 14:44:58 -05:00
Stefan Metzmacher
9e2b78b96a r21272: in the history fields each hash is rid crypted on its own
metze
(This used to be commit 922cfacde4dcf27829040e12c7fae083bd5b44c2)
2007-10-10 14:44:57 -05:00
Volker Lendecke
f6558c04fe r21270: Fix a memleak
(This used to be commit 918031a99c583b45c854c6d066f56ca6887011dd)
2007-10-10 14:44:57 -05:00
Stefan Metzmacher
e2821c4238 r21267: the first 4 bytes in each encrypted attribute is the crc32
checksum over the remaining bytes

metze
(This used to be commit c9fe6a867c7e23a60e0f9200b04c31e48ccc11a2)
2007-10-10 14:44:56 -05:00
Stefan Metzmacher
714052a68c r21261: add support for getting to the plain nthash (and I assume others too)
I wonder what the first 4 bytes are, but the last 16 bytes of the 20 bytes
are the rid crypted hash. The lmhash and the history fields are not verified
yet. But I get the administrators nthash in plain.

metze
(This used to be commit 7726d4a0272b29a4eade26c9ae3d929df50897da)
2007-10-10 14:44:56 -05:00
Jelmer Vernooij
b619e959c9 r21260: Fix regex.
(This used to be commit 025597a3593d9dede93180d284beda256caf9483)
2007-10-10 14:44:55 -05:00
Andrew Tridgell
8de4c33d8f r21256: - msg_type is not needed in the cluster messaging API
- merge ctdb_get_num_nodes() from bzr tree
(This used to be commit 3df7527aedeba7ce2f4a6ca2d3b7167f58c6b68a)
2007-10-10 14:44:55 -05:00
Andrew Bartlett
728ff99fe3 r21255: Add a debugging option to avoid rid decryption in the samsync output.
Andrew Bartlett
(This used to be commit 9e15a51579157405b2013b9b948d279fefd0eda6)
2007-10-10 14:44:55 -05:00
Jelmer Vernooij
9ca02af510 r21254: Fix running the testsuite outside pidl/
(This used to be commit 84c15158b986ef9e82f46d6c01d5cbf04300cda5)
2007-10-10 14:44:54 -05:00
Jelmer Vernooij
45db103065 r21253: Merge some pidl fixes:
* Add tests for wireshark dissector generator
 * Add tests for the header code
 * Some cleanups
 * Fix handling of elements without [in] or [out]
(This used to be commit 1aecba7100685ed291ea13b0ae47fb0cf9e6a6c8)
2007-10-10 14:44:54 -05:00
Stefan Metzmacher
2d3eea4531 r21245: combination "c[3] s[1] e[1] d[0]..." was successful!!!!!!!!!!!!!!!!!!!!!!!!!!
we now support the session depended password attribute encryption
used in DsGetNCChanges()

the static encryption (something like sam_rid_crypt() is assumed for some attributes
and the format of the attribute values isn't known yet, but some contain
some unicode strings...

metze
(This used to be commit daee739ebba38e54fbdbd7e53d16fd30bc0dd54e)
2007-10-10 14:44:52 -05:00
Stefan Metzmacher
f7959890d4 r21244: fix typo...
I was wondering why I got allways 4 times the same decrypted buffer...

metze
(This used to be commit ba168479d5c5710de4252d9b8970ab41b7979411)
2007-10-10 14:44:52 -05:00
Stefan Metzmacher
2bf68b4964 r21243: create the infrastructure to test a lot of crypto combinations
to solve the drsuapi password encryption automaticly.

metze
(This used to be commit 7b331b95bf43384e571ecc88ac827f46acd8c20c)
2007-10-10 14:44:52 -05:00
Stefan Metzmacher
cf123e67d5 r21242: prepare trying to decrypt the encrypted attributes
metze
(This used to be commit 65a55c8fdecbc212ba2fc2a01c580f30dcc7b54a)
2007-10-10 14:44:51 -05:00
Stefan Metzmacher
08de2da4ea r21236: store and orint the dcerpc session key, gensec session key and user nthash
values for each drsuapi connection in RPC-DSSYNC

metze
(This used to be commit df74c4a88108bd4387d9be4f64619c46c23493e6)
2007-10-10 14:44:51 -05:00
Stefan Metzmacher
03640456e6 r21235: fix crash bug
metze
(This used to be commit 29c44957a0ea16af3e5e3717d2cb0c9180d394c2)
2007-10-10 14:44:50 -05:00
Andrew Tridgell
1cd412aa19 r21234: fixed a subtle bug with talloc reference counting and async ntvfs
requests.
(This used to be commit 6a2ba01f155266add71319c1dbc3442eb0c2c751)
2007-10-10 14:44:50 -05:00
Andrew Tridgell
a2eff69b4b r21233: first version of samba4 messaging using ctdb is working. This means we
should now work on a real cluster, and not just a localhost simulator
(This used to be commit f05072ad74fb08fd906bc500c5e89930bcc3387f)
2007-10-10 14:44:50 -05:00
Andrew Tridgell
aa40cc408b r21232: added a raw ctdb messaging api - allowing ctdb applications to take
advantage of the ctdb messaging layer for their own data
(This used to be commit b288ba05e5dc2aa5c8cd26eaee1c41b12e4996da)
2007-10-10 14:44:49 -05:00
Andrew Tridgell
07478016d7 r21230: added the hooks needed in the cluster layer and the messaging code for
handling messages to remote nodes. Implemented dummy functions in the
'local' cluster backend for the messaging hooks, and modified the
messaging layer to check if the destination is remote and redirect
messages via the cluster layer
(This used to be commit 4474552e8fb73efebef32ad8480d7fe9a1e379ef)
2007-10-10 14:44:49 -05:00
Jelmer Vernooij
ecf2c1effb r21222: Merge a couple of pidl fixes:
* Pidl will now warn when trying to use pointers as integers in expressions.
* "subcontext()" is now marked as deprecated. The alternatives,
  transmit_as() / represent_as() should be available soon.
* More tests.
* Remove some unused code in smbtorture.
(This used to be commit 37c0da541e3962164d5af3e3c9560803a733f3b7)
2007-10-10 14:44:48 -05:00
Andrew Tridgell
0d60b9af90 r21216: fail the RAW-BENCH-LOCK test if the locking doesn't happen evenly
across the connections
(This used to be commit 01ef699981f3bcbbbdd4a47d9b85324aec783451)
2007-10-10 14:44:47 -05:00
Andrew Tridgell
d9bd4dad50 r21215: extend the RAW-MUX test to test cancelling a async lock request using
a SMBexit
(This used to be commit 753a85eff6a19af2c7b0884f705e9f66b5f605fe)
2007-10-10 14:44:47 -05:00
Andrew Tridgell
667cff3699 r21214: fixed a valgrind error that can be caused by a semi-async call inside
a nested ntvfs call. The req structure can go away while processing a
ntvfs request
(This used to be commit f62b3c505f71f37a86a76d152d643926e19eb148)
2007-10-10 14:44:47 -05:00
Andrew Tridgell
80445f7596 r21213: the build farm seems to show that FreeBSD 6.2 has two different error
codes for "Invalid argument". This change should help track that down
(This used to be commit 608aac7804754fed1c68b847676d7a71a586e4bb)
2007-10-10 14:44:46 -05:00
Andrew Tridgell
f0fcc332f5 r21212: detect if the kernel does not support integrated epoll/aio when the
event context is created. This allows the LOCAL-EVENT test to pass on
systems with have libaio but not the necessary kernel patches
(This used to be commit 2ff8abf0022824e6ae93019ee1b3391e651a8ee7)
2007-10-10 14:44:46 -05:00
Andrew Tridgell
e5b00e3637 r21211: fixed 3 places that assumed that torture_fail() didn't call
return. Having a lowercase macro that returns from a function is
probably a bad idea - it looks too much like a C function but doesn't
behave like one.
(This used to be commit e680656419f00fd8b4ddb996fd247bada0f0a51d)
2007-10-10 14:44:45 -05:00
Andrew Tridgell
b115da2230 r21208: fix a crash bug caused by r21205
please test patches, even if they look trivial!
(This used to be commit 8134a628f06f0df2ee94612854e0fb3e2efc2eb8)
2007-10-10 14:44:45 -05:00
Andrew Tridgell
21650cf377 r21206: - a couple more nttrans places were a memcpy() should be used
- changed the setup array in nttrans to be a uint8 array, instead of a
  uint16 array. This makes it clearer that it is the job of the caller
  to do any byte swapping within that data
(This used to be commit fa3c9b29ae1c7c6a9bc97484cc386aeec9b5d266)
2007-10-10 14:44:45 -05:00
Jelmer Vernooij
6d7039026c r21205: Fix warning.
Trivial patch from "Lunar Child <luch@etersoft.ru>"
(This used to be commit 1b75a9ff2d7f91f13fbdfd136b40eca14867bf6f)
2007-10-10 14:44:44 -05:00
Volker Lendecke
2342219d69 r21183: Commit the big/little endian fix for nttrans setup[] handling.
Please check!

For code symmetry reasons, trans2 might also see this fix, but this is left to
the interested reader :-)

Volker
(This used to be commit f2d364ebe69fc5d624e456cc7d941071811a5567)
2007-10-10 14:44:43 -05:00
Andrew Bartlett
4aa1f83ca5 r21179: Anything more complex than this causes the keytab never to be updated...
Andrew Bartlett
(This used to be commit c3977b4bae1e1b5e4ff4a64c7146534536685e91)
2007-10-10 14:44:43 -05:00
Volker Lendecke
6e25473ad8 r21178: Adapt RPC-SAMBA3-SHARESEC to new smbd behavior
(This used to be commit 38b688fd15a9103e5ef5c86e01b594169d6b6b9c)
2007-10-10 14:44:42 -05:00
Andrew Bartlett
e473050052 r21175: Fix the kerberos keytab update code to handle deletes.
Fix the join code to know that the ldb layer handles the keytab update.

Andrew Bartlett
(This used to be commit d3fbc089f4161ae71b21077d50130fdabd8b2d77)
2007-10-10 14:44:42 -05:00
Andrew Tridgell
8538af1107 r21174: many thanks to Paul Wayper for pointing out that C99 requires a
matching va_end() for each va_copy(). This doesn't matter for most
architectures, but there could be some obscure ones where it does
matter.

some of this should be ported to Samba3
(This used to be commit 21eb316473486cb6b73bb3ff9c5f3a44ecd57e4a)
2007-10-10 14:44:42 -05:00
Andrew Tridgell
80d3b780e5 r21173: - keep the ctdb queue when reconnecting (this will need to be more
complex once we have code for changing the number of nodes)

- fixed a ctdb/tcp bug in the handling of multiple packets waiting on
  a socket
(This used to be commit faf9a1146cb5f33228a11e01b66cb3cbe18bd05d)
2007-10-10 14:44:41 -05:00
Andrew Tridgell
ef80bc34c1 r21172: fixed a comment
(This used to be commit 2d6e082e813e18dcd43bc8d9a8f445f77e0a8452)
2007-10-10 14:44:41 -05:00
Andrew Tridgell
b9f10ebb99 r21171: fixed a bug related to recursive event handling.
If this happens:

  - two sockets are readable, and select/epoll/aio returns both of
    them
  - read event on socket1 is called
  - inside that read event an event_loop_once is called, this returns that
    socket2 is readable
  - read event on socket2 is called
  - event_loop_once returns
  - top level event handler then calls read event on socket2 (as it
    still has that listed as readable)
  - read handler for socket2 returns zero byte read, which is
    interpreted as end of file
  - socket is incorrectly closed

this happened with ctdb, but it could happen anywhere (just
rarely). The fix is trivial - ensure we break out of the event loop
when we have been called recursively.
(This used to be commit e042002bb5ee8974220e1ade56b64389571f75a6)
2007-10-10 14:44:41 -05:00
Stefan Metzmacher
a8d0f5df62 r21142: fix compiler warnings
metze
(This used to be commit 1f8a037ac4f592d29f7d66e1f924efe1c5d8c2b0)
2007-10-10 14:44:33 -05:00
Volker Lendecke
c2c8650825 r21141: Attempt to fix the build
(This used to be commit 3f41a4b014a47b3c751066f5d1bef7f76f4be831)
2007-10-10 14:44:33 -05:00
Andrew Tridgell
f9e222b5e3 r21140: enable the pending lock notify code in the ctdb backend so that timed
locks retry immediately when another blocking lock is removed.
(This used to be commit 169920a5341392e84d5b5fb5f39c2b9d5243bb3b)
2007-10-10 14:44:33 -05:00
Andrew Tridgell
16d887b3c4 r21139: make the RAW-MUX test fail if the locking subsystem doesn't trigger
early byte range lock retries (ie. PENDING locks in brlock)
(This used to be commit 09237e3acf524f7e772acce2e652ef30b8ba4d65)
2007-10-10 14:44:32 -05:00
Andrew Bartlett
744dddd75b r21135: Instead of having hooks to update keytabs as an explicit thing, update
them as a hook on ldb modify, via a module.

This should allow the secrets.ldb to be edited by the admin, and to
have things update in the on-disk keytab just as an in-memory keytab
would.

This isn't really a dsdb plugin, but I don't have any other good ideas
about where to put it.

Andrew Bartlett
(This used to be commit 6ce557a1aff4754d2622be8f1c6695d9ee788d54)
2007-10-10 14:44:31 -05:00
Volker Lendecke
627595b7a3 r21134: Attempt to quieten the build farm for Samba3
(This used to be commit 966c30ca591c410a4a229396c7919fe8f98bd066)
2007-10-10 14:44:31 -05:00
Volker Lendecke
fe5aad78b0 r21125: Tridge, please check this closely if this relaxed notify test is
acceptable.

In Samba3 with inotify we have the problem that the MODIFIED action is sent
second. I think this could also happen in Samba4, depending on the order when
the different sockets (unix domain dgram / inotify) are looked at by the
events system.

This patch accepts the NEW/OLD/MODIFIED entries in any order.

Comments welcome!

Volker
(This used to be commit 72a7771b757c3aca637eb632abebab60bdd2da9f)
2007-10-10 14:44:31 -05:00