ira/wip.git
16 years agor24106: Pass fnum instead of buf/offset into get_rpc_pipe_p
Volker Lendecke [Tue, 31 Jul 2007 13:14:07 +0000 (13:14 +0000)]
r24106: Pass fnum instead of buf/offset into get_rpc_pipe_p
(This used to be commit eb353412c60fc21a31530d9678505470ffbf11ce)

16 years agor24104: fix the build, sorry...
Stefan Metzmacher [Tue, 31 Jul 2007 12:30:37 +0000 (12:30 +0000)]
r24104: fix the build, sorry...

metze
(This used to be commit a5e1f9fd293fab26d664a72ee652eb8ca72128b7)

16 years agor24103: add some useful debug messages, as not all LDAP
Stefan Metzmacher [Tue, 31 Jul 2007 12:27:25 +0000 (12:27 +0000)]
r24103: add some useful debug messages, as not all LDAP
libraries support wrapping hooks...

metze
(This used to be commit 581a1d3a20ffed42ccc7f35f163fd343ed12ccd3)

16 years agor24102: Pass the fid instead of inbuf and an offset to file_fsp.
Volker Lendecke [Tue, 31 Jul 2007 12:05:40 +0000 (12:05 +0000)]
r24102: Pass the fid instead of inbuf and an offset to file_fsp.

This removes the buf==NULL condition in file_fsp(), but wherever it is called
we do have a buffer anyway.

Volker
(This used to be commit d70a1f82fed64fa332f16407bea7c6671f48c59a)

16 years agor24101: Move prohibited_ea_names[] into samba_private_attr_name()
Volker Lendecke [Tue, 31 Jul 2007 11:26:24 +0000 (11:26 +0000)]
r24101: Move prohibited_ea_names[] into samba_private_attr_name()

Minor cleanup
(This used to be commit 04879717229d5b74b94b79a962cca5e9624648bc)

16 years agor24100: Convert reply_ntcancel to the new API
Volker Lendecke [Tue, 31 Jul 2007 10:04:54 +0000 (10:04 +0000)]
r24100: Convert reply_ntcancel to the new API
(This used to be commit 6e5f39379f60e30cd0445a049df619ec8f65fc01)

16 years agor24098: - make use of the ads_service_principal abstraction
Stefan Metzmacher [Tue, 31 Jul 2007 09:49:14 +0000 (09:49 +0000)]
r24098: - make use of the ads_service_principal abstraction
  also for the "GSSAPI" sasl mech.
- also use the ads_kinit_password() fallback logic
  from the "GSS-SPNEGO" sasl mech.

metze
(This used to be commit cbaf44de1e1f8007dc4ca249791ea30d2902c7c4)

16 years agor24097: Convert reply_ntcreate_and_X_quota to the new API
Volker Lendecke [Tue, 31 Jul 2007 09:41:21 +0000 (09:41 +0000)]
r24097: Convert reply_ntcreate_and_X_quota to the new API
(This used to be commit 08acadae56e0b603ccac7dc21f89d5071a33b255)

16 years agor24095: add one more fallback alternative to
Stefan Metzmacher [Tue, 31 Jul 2007 09:37:25 +0000 (09:37 +0000)]
r24095: add one more fallback alternative to
construct the principal

metze
(This used to be commit b545667d2a45a79bba05c9fe9e93a19951d60af7)

16 years agor24093: move gssapi/krb5 principal handling into a function
Stefan Metzmacher [Tue, 31 Jul 2007 09:31:47 +0000 (09:31 +0000)]
r24093: move gssapi/krb5 principal handling into a function

metze
(This used to be commit 83de27968d434d67d23851b0c285221c870ff75e)

16 years agor24092: Convert do_ntcreate_pipe_open to the new API
Volker Lendecke [Tue, 31 Jul 2007 09:22:16 +0000 (09:22 +0000)]
r24092: Convert do_ntcreate_pipe_open to the new API

nt_open_pipe_new() is a copy of nt_open_pipe(). It will stick for a bit
until do_nt_transact_create_pipe is converted as well.
(This used to be commit 247d6baaed6f017328de6688e6daa15aa6aaa18e)

16 years agor24091: Convert reply_ntcreate_and_X to the new API
Volker Lendecke [Tue, 31 Jul 2007 08:56:08 +0000 (08:56 +0000)]
r24091: Convert reply_ntcreate_and_X to the new API

The routines called will follow
(This used to be commit 28025fc17efa033515cef94789e518a6615e141f)

16 years agor24090: Separate parsing in reply_ntcreate_and_X
Volker Lendecke [Tue, 31 Jul 2007 08:37:54 +0000 (08:37 +0000)]
r24090: Separate parsing in reply_ntcreate_and_X

In particular, check if we have enough parameters
(This used to be commit 7a19b3071e1d5d5002013a67794261bf6be0c81d)

16 years agor24089: Add reply_prep/post_legacy
Volker Lendecke [Tue, 31 Jul 2007 08:06:56 +0000 (08:06 +0000)]
r24089: Add reply_prep/post_legacy

Routines to ease the transition to the new API
(This used to be commit 1bb2b341e2cb6c0175376dc8bd2d1ce6d9c6c00e)

16 years agor24088: Convert reply_unlink to the new API
Volker Lendecke [Tue, 31 Jul 2007 07:57:33 +0000 (07:57 +0000)]
r24088: Convert reply_unlink to the new API
(This used to be commit fb0a1b7bd0a195dbedb3b0c02d8a4ec25c21b9bf)

16 years agor24087: Fix bug 4836, patch by Matthijs Kooijman <matthijs@stdin.nl>. Thanks!
Volker Lendecke [Tue, 31 Jul 2007 05:11:40 +0000 (05:11 +0000)]
r24087: Fix bug 4836, patch by Matthijs Kooijman <matthijs@stdin.nl>. Thanks!

Volker
(This used to be commit 6c3813cf65ff099a071ad8221402fbb3f877c665)

16 years agor24086: Convert reply_ulogoffX to the new API
Volker Lendecke [Mon, 30 Jul 2007 19:53:57 +0000 (19:53 +0000)]
r24086: Convert reply_ulogoffX to the new API
(This used to be commit bbc99e1c3b764bc2adf620553b7fa85efdf8ac53)

16 years agor24085: Convert reply_rmdir to the new API
Volker Lendecke [Mon, 30 Jul 2007 14:07:29 +0000 (14:07 +0000)]
r24085: Convert reply_rmdir to the new API
(This used to be commit 7689048d71cc4adbdaee5521cc57890518e7090a)

16 years agor24084: Convert reply_mkdir to the new API
Volker Lendecke [Mon, 30 Jul 2007 11:35:39 +0000 (11:35 +0000)]
r24084: Convert reply_mkdir to the new API
(This used to be commit e93f3996fcdde6f0fbba3fb9e1e97407e9ccdd62)

16 years agor24079: Convert reply_dskattr to the new API
Volker Lendecke [Mon, 30 Jul 2007 10:30:19 +0000 (10:30 +0000)]
r24079: Convert reply_dskattr to the new API
(This used to be commit c8e0aa5752fde34f7271a4fad758dfae0991722d)

16 years agor24078: Add reply_unixerror
Volker Lendecke [Mon, 30 Jul 2007 10:23:26 +0000 (10:23 +0000)]
r24078: Add reply_unixerror
(This used to be commit 10ac991750e9476299d39ac6f763d1638ff8c619)

16 years agor24077: Convert reply_tdis to the new API
Volker Lendecke [Mon, 30 Jul 2007 10:20:52 +0000 (10:20 +0000)]
r24077: Convert reply_tdis to the new API
(This used to be commit bd0cb48dde401f48dec98fa7ca794a912e0244f1)

16 years agor24072: Add "client ldap sasl wrapping" parameter.
Stefan Metzmacher [Mon, 30 Jul 2007 08:22:45 +0000 (08:22 +0000)]
r24072: Add "client ldap sasl wrapping" parameter.
Possible values are "plain" (default), "sign" or "seal".

metze
(This used to be commit 26ccbad7212e9acd480b98789f04b71c1e940ea8)

16 years agor24071: Fix a missing END_PROFILE call
Volker Lendecke [Mon, 30 Jul 2007 07:50:24 +0000 (07:50 +0000)]
r24071: Fix a missing END_PROFILE call
(This used to be commit c9f12326dd1c090bd0ef9bb97c82926c2efd6ae8)

16 years agor24070: Apply some const
Volker Lendecke [Sun, 29 Jul 2007 16:40:45 +0000 (16:40 +0000)]
r24070: Apply some const
(This used to be commit e6d592dcb8ff9f986b531435d0d03df20880880b)

16 years agor24069: Fix Coverity ID 368. We would segfault if 0 < data.dsize < 8
Volker Lendecke [Sun, 29 Jul 2007 09:51:06 +0000 (09:51 +0000)]
r24069: Fix Coverity ID 368. We would segfault if 0 < data.dsize < 8
(This used to be commit fa536325681971307661b5d4efde3e8e54f3eca5)

16 years agor24068: Fix Coverity id 366 (dead code). We have checked for argc >= 3 above.
Volker Lendecke [Sun, 29 Jul 2007 09:23:55 +0000 (09:23 +0000)]
r24068: Fix Coverity id 366 (dead code). We have checked for argc >= 3 above.
(This used to be commit b876bca6bcdb091c4f4f11af3bd758c8ce4db50a)

16 years agor24067: Fix a type mismatch found by the IBM checker
Volker Lendecke [Sat, 28 Jul 2007 18:52:28 +0000 (18:52 +0000)]
r24067: Fix a type mismatch found by the IBM checker
(This used to be commit 411a1a2037886f934c6522ddef7a04d5c4a1fa69)

16 years agor24066: Fix memleak found by Volker. We don't leak keys now with MIT and Heimdal.
Günther Deschner [Fri, 27 Jul 2007 09:22:43 +0000 (09:22 +0000)]
r24066: Fix memleak found by Volker. We don't leak keys now with MIT and Heimdal.

Guenther
(This used to be commit 7755ad750facc44b6a5df2136cb536547048cd48)

16 years agor24065: According to gd, this breaks heimdal. Thanks for checking!
Volker Lendecke [Fri, 27 Jul 2007 09:15:13 +0000 (09:15 +0000)]
r24065: According to gd, this breaks heimdal. Thanks for checking!
(This used to be commit ea5f53eac81e8a969587eb3996b16a1afd948877)

16 years agor24062: fix logic for broken krb5 libs which always force
Stefan Metzmacher [Fri, 27 Jul 2007 07:19:36 +0000 (07:19 +0000)]
r24062: fix logic for broken krb5 libs which always force
sign and seal...

metze
(This used to be commit 4a4fc8cccbcbe17eebcefcd0107f7de60d751f5c)

16 years agor24058: Fix some memory leaks in ads_secrets_verify_ticket.
Volker Lendecke [Thu, 26 Jul 2007 17:27:03 +0000 (17:27 +0000)]
r24058: Fix some memory leaks in ads_secrets_verify_ticket.

Jeremy, Günther, please review!

Thanks,

Volker
(This used to be commit 000e096c277a71ca30c1c109aae62241ad466bee)

16 years agor24057: Fix some uninitialized variables found by the IBM checker
Volker Lendecke [Thu, 26 Jul 2007 16:39:48 +0000 (16:39 +0000)]
r24057: Fix some uninitialized variables found by the IBM checker
(This used to be commit d74bbc53c2cf41e7e92309e81bb9c1b3f805cdd1)

16 years agor24056: Another big one: This converts reply_sesssetup_and_X to the new API. As usual,
Volker Lendecke [Thu, 26 Jul 2007 16:01:12 +0000 (16:01 +0000)]
r24056: Another big one: This converts reply_sesssetup_and_X to the new API. As usual,
its history can be found on http://samba.org/~vlendec/sesssetup/. This very
obviously needs close review.

Volker
(This used to be commit 35675a6a33d584e5c3c97d1cb5ca9b0315a5fa92)

16 years agor24055: Remove a reference to the outdated samba-docs mailing list. This entire
Gerald Carter [Thu, 26 Jul 2007 12:08:13 +0000 (12:08 +0000)]
r24055: Remove a reference to the outdated samba-docs mailing list.  This entire
README really needs to be overhauled at some point.
(This used to be commit c08d85a5f1a66e8fdd0b33a1d8d1a2c9ce9c1a35)

16 years agor24054: Fix some warnings
Volker Lendecke [Thu, 26 Jul 2007 07:48:14 +0000 (07:48 +0000)]
r24054: Fix some warnings
(This used to be commit ed84540bb2825dfaca25649a1cfb9342b68c3068)

16 years agor24050: Fix a typo
Volker Lendecke [Wed, 25 Jul 2007 20:01:03 +0000 (20:01 +0000)]
r24050: Fix a typo
(This used to be commit 53027d0ee2dbe15beb2fce5d11a26f4ac0b08b9c)

16 years agor24049: Some more 64-bit warnings
Volker Lendecke [Wed, 25 Jul 2007 18:53:16 +0000 (18:53 +0000)]
r24049: Some more 64-bit warnings
(This used to be commit eabe796e464e5fe10d0f4cca1362985c529f5a5b)

16 years agor24048: Fix the C++ warnings in our version of popt
Volker Lendecke [Wed, 25 Jul 2007 18:47:40 +0000 (18:47 +0000)]
r24048: Fix the C++ warnings in our version of popt
(This used to be commit fd3683c1b3d89a47d59643b0f5751726cb2c89f9)

16 years agor24047: With -Wmissing-prototypes these two always generate warnings. They
Volker Lendecke [Wed, 25 Jul 2007 18:45:57 +0000 (18:45 +0000)]
r24047: With -Wmissing-prototypes these two always generate warnings. They
should be properly prototyped. For now, gloss over the warning.
(This used to be commit 2137158260cc9677bf9652a3d85334b0d7512b7b)

16 years agor24046: Fix a 64-bit warning
Volker Lendecke [Wed, 25 Jul 2007 18:39:10 +0000 (18:39 +0000)]
r24046: Fix a 64-bit warning
(This used to be commit a2ecc34aa43f810e68815c25016da1d184a21a04)

16 years agor24044: Fix an uninitialized variable warning
Volker Lendecke [Wed, 25 Jul 2007 13:05:54 +0000 (13:05 +0000)]
r24044: Fix an uninitialized variable warning
(This used to be commit 69326a56e7fe2681eef3d58a9107765496756de4)

16 years agor24042: add support for krb5 sign and seal in LDAP via "GSS-SPNEGO"
Stefan Metzmacher [Wed, 25 Jul 2007 10:34:16 +0000 (10:34 +0000)]
r24042: add support for krb5 sign and seal in LDAP via "GSS-SPNEGO"

metze
(This used to be commit 34ab84aceb86195743abd26c46a631640409725e)

16 years agor24039: remove unused global variable...
Stefan Metzmacher [Wed, 25 Jul 2007 08:09:34 +0000 (08:09 +0000)]
r24039: remove unused global variable...

metze
(This used to be commit 05fce8815f2f08f71522ba326224185dcecd62ae)

16 years agor24037: only setup sasl wrapping after a successful bind
Stefan Metzmacher [Wed, 25 Jul 2007 07:23:20 +0000 (07:23 +0000)]
r24037: only setup sasl wrapping after a successful bind

metze
(This used to be commit 85d6cd3dfb5cbd9e899957265e352583ff608ed4)

16 years agor24036: Fix dfs rename bug in smbclient reported by Thomas Bork <tombork@web.de>.
Jeremy Allison [Tue, 24 Jul 2007 22:28:19 +0000 (22:28 +0000)]
r24036: Fix dfs rename bug in smbclient reported by Thomas Bork <tombork@web.de>.
Couldn't rename file as we weren't DFS enabling the target path.
Jeremy.
(This used to be commit cd66c133a1b010874ea9e7a500ea24c52011e523)

16 years agor24034: Print the full cluster pid in print_lock_struct
Volker Lendecke [Tue, 24 Jul 2007 11:50:54 +0000 (11:50 +0000)]
r24034: Print the full cluster pid in print_lock_struct
(This used to be commit ff1996ce4b0edfee90758c85ea0ac653877a1b9f)

16 years agor24033: We need to be able to cope with packet_handler calling itself
Volker Lendecke [Tue, 24 Jul 2007 11:48:35 +0000 (11:48 +0000)]
r24033: We need to be able to cope with packet_handler calling itself
recursively
(This used to be commit b74797a31eae1c59c1a23934a3302987de9ab87c)

16 years agor24032: It helps testing tremendously if the cluster messaging actually sends
Volker Lendecke [Tue, 24 Jul 2007 11:47:37 +0000 (11:47 +0000)]
r24032: It helps testing tremendously if the cluster messaging actually sends
and receives messages to other nodes... :-)
(This used to be commit 3e9e9a3f28763500a1c5e551a808a14661d7d9fa)

16 years agor24031: Fix some 64 bit warnings
Volker Lendecke [Tue, 24 Jul 2007 11:45:29 +0000 (11:45 +0000)]
r24031: Fix some 64 bit warnings
(This used to be commit c0fd9a14cf4f2a4334a8cae22248e7831ffa6bcf)

16 years agor24029: merge from http://samba.org/~tridge/samba_3_2_ctdb/:
Stefan Metzmacher [Tue, 24 Jul 2007 10:35:10 +0000 (10:35 +0000)]
r24029: merge from samba.org/~tridge/samba_3_2_ctdb/:

the claim_connection() must come after the sockets are open

metze
(This used to be commit 306846a14f554c55b57e9ce0ad324d5c81776330)

16 years agor24027: merge from http://people.samba.org/bzr/metze/samba/3_2-ctdb-metze/:
Stefan Metzmacher [Tue, 24 Jul 2007 10:24:27 +0000 (10:24 +0000)]
r24027: merge from people.samba.org/bzr/metze/samba/3_2-ctdb-metze/:

add in any cluster addresses. We need to response to these,
but not listen on them. This allows us to run nmbd on every
node in the cluster, and have all of them register with a
WINS server correctly

metze
(This used to be commit 98c57562c4dcf04b72a1e4ad5d9f5cf48e7d0b28)

16 years agor24025: packet_send() expects DATA_BLOB elements as vaargs
Stefan Metzmacher [Tue, 24 Jul 2007 09:47:26 +0000 (09:47 +0000)]
r24025: packet_send() expects DATA_BLOB elements as vaargs
and not TDB_DATA

metze
(This used to be commit 3e4f552dbdd065fd7934d646e34199b52f486d5d)

16 years agor24024: Minor cleanup in ads_parse_gp_ext().
Günther Deschner [Tue, 24 Jul 2007 09:46:21 +0000 (09:46 +0000)]
r24024: Minor cleanup in ads_parse_gp_ext().

Guenther
(This used to be commit 57aa0acb84a41a24ea89950bcb51b5ffc68b4564)

16 years agor24023: Correctly support REG_BINARY in registry_push_value() and
Günther Deschner [Tue, 24 Jul 2007 09:42:15 +0000 (09:42 +0000)]
r24023: Correctly support REG_BINARY in registry_push_value() and
registry_pull_value().

Guenther
(This used to be commit 6a3c44fd99c91beddd9d6a04a30c35d429d0b9a5)

16 years agor24021: use MSG_BROADCAST_PID_STR as value for broadcast messages
Stefan Metzmacher [Tue, 24 Jul 2007 09:32:05 +0000 (09:32 +0000)]
r24021: use MSG_BROADCAST_PID_STR as value for broadcast messages
to fix the cluster case

vl: please check, if this works with clustering = no

metze
(This used to be commit 9d4104b8d5773537f2271f7be1439f1da1e0bf42)

16 years agor24019: merge from http://people.samba.org/bzr/metze/samba/3_2-ctdb-metze/:
Stefan Metzmacher [Tue, 24 Jul 2007 09:20:23 +0000 (09:20 +0000)]
r24019: merge from people.samba.org/bzr/metze/samba/3_2-ctdb-metze/:

use a timed event to make sure the timelimit is correctly
handled in smbcontrol when waiting for messages

metze
(This used to be commit 68c786dafacb187dfea83c45b7fd84127dc02e43)

16 years agor24017: merge from http://samba.org/~tridge/samba_3_2_ctdb/:
Stefan Metzmacher [Tue, 24 Jul 2007 08:59:36 +0000 (08:59 +0000)]
r24017: merge from samba.org/~tridge/samba_3_2_ctdb/:
add add_trusted_domain() can return NULL

metze
(This used to be commit 12440efe0bab70a8a1b5100d77e387ce1c371a4e)

16 years agor24015: merge RHEL4-CTDB packaging stuff from
Stefan Metzmacher [Tue, 24 Jul 2007 08:42:21 +0000 (08:42 +0000)]
r24015: merge RHEL4-CTDB packaging stuff from
http://people.samba.org/bzr/metze/samba/3_2-ctdb-metze/

metze
(This used to be commit 51c90bfa6fdd1c151a27afefb43521540308f234)

16 years agor24013: merge from http://samba.org/~tridge/samba_3_2_ctdb/:
Stefan Metzmacher [Tue, 24 Jul 2007 08:04:42 +0000 (08:04 +0000)]
r24013: merge from samba.org/~tridge/samba_3_2_ctdb/:
fixed prototype

metze
(This used to be commit 0add4e9478afd9b20205f572a485b450a669c275)

16 years agor24009: Revert to the 3.0.25 logic for parsing the client's protocols. hpisgr8
Volker Lendecke [Mon, 23 Jul 2007 19:46:48 +0000 (19:46 +0000)]
r24009: Revert to the 3.0.25 logic for parsing the client's protocols. hpisgr8
with gcc still gives timeouts which worry me.

Volker
(This used to be commit c30835b4f0416b2b2b7d77d31b0fca0606f2387a)

16 years agor24008: Fix Bug 4792. Thanks to David Gajewski <dgajews@math.utoledo.edu> and to
Volker Lendecke [Mon, 23 Jul 2007 19:09:19 +0000 (19:09 +0000)]
r24008: Fix Bug 4792. Thanks to David Gajewski <dgajews@math.utoledo.edu> and to
Timur I. Bakeyev for bugging me :-)

Volker
(This used to be commit 59aef0451bed536d5cd72f2b26a0595947e94343)

16 years agor24007: Attempt to fix the build on host "gwen". The Makefile ended up with an
Volker Lendecke [Mon, 23 Jul 2007 15:29:56 +0000 (15:29 +0000)]
r24007: Attempt to fix the build on host "gwen". The Makefile ended up with an
empty line.
(This used to be commit d05f7aefdfb2177fff665fc5dc44794c33c92612)

16 years agor24006: Some more paranoia in reply_negprot
Volker Lendecke [Mon, 23 Jul 2007 14:36:54 +0000 (14:36 +0000)]
r24006: Some more paranoia in reply_negprot

Some hosts see the smb_bufrem(req->inbuf, p) as an unsigned int. And as
the p += strlen(p) + 2 went one beyond the buffer, this was a very
large positive. Also take the chance to add one more consistency check.
(This used to be commit 3673707f9f1a3ba29966ac7cf744e2b6462c8dde)

16 years agor24005: Attempt to fix the build on host deckchair
Volker Lendecke [Mon, 23 Jul 2007 13:47:17 +0000 (13:47 +0000)]
r24005: Attempt to fix the build on host deckchair
(This used to be commit cdc8ca57a7eb3e7e33a243e705be8a33c538253a)

16 years agor24004: Convert reply_checkpath to the new API
Volker Lendecke [Mon, 23 Jul 2007 12:03:58 +0000 (12:03 +0000)]
r24004: Convert reply_checkpath to the new API
(This used to be commit e5c7c6406af5552b3060f03a09b5e6c9a42e531c)

16 years agor24003: Convert reply_tcon_and_X to the new API
Volker Lendecke [Mon, 23 Jul 2007 11:38:29 +0000 (11:38 +0000)]
r24003: Convert reply_tcon_and_X to the new API
(This used to be commit 9422385d9c018a0b1f2a0b2edd82dc574a9fb403)

16 years agor24002: Convert reply_negprot to the new API
Volker Lendecke [Mon, 23 Jul 2007 11:18:20 +0000 (11:18 +0000)]
r24002: Convert reply_negprot to the new API
(This used to be commit bd981f53282573058bf4c2939e0e836499cf38be)

16 years agor24001: Separate out the parsing of the client's requested protocols
Volker Lendecke [Mon, 23 Jul 2007 11:08:43 +0000 (11:08 +0000)]
r24001: Separate out the parsing of the client's requested protocols

This way the range checking only needs to be done once
(This used to be commit befaa9713adec90088eedcf264f1e396ab150d25)

16 years agor24000: Add message_push_blob() and message_push_string().
Volker Lendecke [Mon, 23 Jul 2007 10:52:39 +0000 (10:52 +0000)]
r24000: Add message_push_blob() and message_push_string().

The proposed new API convention is to start with a 0 bcc length and then
push things step by step. These routines reallocate the outbuf and
adjust the length and bcc fields as necessary.
(This used to be commit 624f1fe4f6e022d73e78fa8c9646f6f64035f3ee)

16 years agor23999: Convert reply_open_and_X
Volker Lendecke [Mon, 23 Jul 2007 09:54:36 +0000 (09:54 +0000)]
r23999: Convert reply_open_and_X

This is an example of chained code that is executed in make test
(This used to be commit e3a10e9ffb06f429208f8b8e8482bbfd56dace91)

16 years agor23998: Convert reply_close to the new API
Volker Lendecke [Mon, 23 Jul 2007 09:53:06 +0000 (09:53 +0000)]
r23998: Convert reply_close to the new API
(This used to be commit dbf74cb747d34dac571d85d6bae9398558086456)

16 years agor23997: Check in the infrastructure for getting rid of the global InBuffer/OutBuffer
Volker Lendecke [Mon, 23 Jul 2007 09:36:09 +0000 (09:36 +0000)]
r23997: Check in the infrastructure for getting rid of the global InBuffer/OutBuffer

The complete history of this patch can be found under
http://www.samba.org/~vlendec/inbuf-checkin/.

Jeremy, Jerry: If possible I would like to see this in 3.2.0. I'm only
checking into 3_2 at the moment, as it currently will slow down operations for
all non-converted (i.e. all at this moment) operations, as it will copy the
talloc'ed inbuf over the global InBuffer. It will need quite a bit of effort
to convert everything necessary for the normal operations an XP box does.

I have patches for negprot, session setup, tcon_and_X, open_and_X, close. More
to come, but I would appreciate some help here.

Volker
(This used to be commit 5594af2b208c860d3f4b453af6a649d9e4295d1c)

16 years agor23996: One more const
Volker Lendecke [Mon, 23 Jul 2007 08:20:44 +0000 (08:20 +0000)]
r23996: One more const
(This used to be commit a54fa551a4b9ffe3f29b339a54e563cdfe924959)

16 years agor23992: Some const
Volker Lendecke [Sun, 22 Jul 2007 17:13:46 +0000 (17:13 +0000)]
r23992: Some const
(This used to be commit bc106cf50732ed6c169dcf593797501fcb3ae675)

16 years agor23991: Some const
Volker Lendecke [Sun, 22 Jul 2007 13:51:39 +0000 (13:51 +0000)]
r23991: Some const
(This used to be commit 804be77e4695eb923048948dbc6e223967fdef94)

16 years agor23990: Reformatting for 80 cols and trailing whitespace
Volker Lendecke [Sun, 22 Jul 2007 11:38:11 +0000 (11:38 +0000)]
r23990: Reformatting for 80 cols and trailing whitespace
(This used to be commit 0484de27d97306707ae0243443d18e9dec6d80f3)

16 years agor23989: For testing purposes, add "echo" to smbclient
Volker Lendecke [Sun, 22 Jul 2007 11:18:49 +0000 (11:18 +0000)]
r23989: For testing purposes, add "echo" to smbclient
(This used to be commit 4cdfc887545f7367239c73b0fecf173970bbc5d2)

16 years agor23988: Looks a lot more scary than it is: This just unwraps the else-branch of
Volker Lendecke [Sat, 21 Jul 2007 22:29:55 +0000 (22:29 +0000)]
r23988: Looks a lot more scary than it is: This just unwraps the else-branch of
if (smb_messages[type].fn == NULL) { into the function top-level. Makes
this function a bit easier to understand IMO.

Volker
(This used to be commit ada23b7f06acb00c36763a3e7a6f6e0caac86951)

16 years agor23987: Remove static pid in switch_message()
Volker Lendecke [Sat, 21 Jul 2007 22:00:09 +0000 (22:00 +0000)]
r23987: Remove static pid in switch_message()

There's no point in duplicating functionality that exists in
sys_getpid() that also only used in a debug statement
(This used to be commit ebf1b1e97c709f5ffe48c85b4227a0af1f88b0ab)

16 years agor23986: Some const
Volker Lendecke [Sat, 21 Jul 2007 21:56:33 +0000 (21:56 +0000)]
r23986: Some const
(This used to be commit dc6f4bdb7f5fc0fd4cd9f687c47af3719985da8b)

16 years agor23981: Make tdb_validate_and_backup try harder to end up with a valid tdb:
Michael Adam [Fri, 20 Jul 2007 16:39:42 +0000 (16:39 +0000)]
r23981: Make tdb_validate_and_backup try harder to end up with a valid tdb:

If restoring a backup fails due to lack of space, remove the
corrupt tdb previously moved away to "name.corrupt", and retry.
If restoring still fails, move the backup in place instead of
copying it.

Michael
(This used to be commit f81f2bf480a955213be8461636ee6f81643f17b8)

16 years agor23980: Fix one more use of pwrite in expand_file.
Michael Adam [Fri, 20 Jul 2007 16:31:32 +0000 (16:31 +0000)]
r23980: Fix one more use of pwrite in expand_file.

Michael
(This used to be commit de0ef9134650e3e7cc5b5cfec9e8dd8510bd6677)

16 years agor23979: Fix another occurence of (written != requested) as an
Michael Adam [Fri, 20 Jul 2007 15:00:58 +0000 (15:00 +0000)]
r23979: Fix another occurence of (written != requested) as an
error condition to write. This is in tdb_new_database.

Fix one call to tdb_new_database in tdb_open_ex to not
overwrite the newly propagated errno (typically ENOSPC).

Michael
(This used to be commit 24fed55d72a4922bfd3ddba61449fbae01365feb)

16 years agor23977: Im prove the pwrite-patch to tdb_expand_file of r23972:
Michael Adam [Fri, 20 Jul 2007 14:23:12 +0000 (14:23 +0000)]
r23977: Im prove the pwrite-patch to tdb_expand_file of r23972:

* prevent infinite loops due to 0 bytes written:
  try once more. if we still get 0 as return,
  set errno to ENOSPC and return -1 (error)

* replace int by correct types (ssize_t and size_t).

* print a warning log message in case "written < requested to write"
  usually this means, that the next call to pwrite will fail
  with return value -1 and set errno accordingly.

  Note that the former error condition "written != requested to write"
  is not a correct error condition of write/pwrite. If this is due
  to an error, a subsequent call to (p)write will reveal the cause
  (typically "no space left on device" - ENOSPC).

Michael
(This used to be commit 5b8d53dfe1872621bf28c8351d87bfc53ef6e66b)

16 years agor23976: Move authdata.o to LIBADS_SERVER_OBJ.
Günther Deschner [Thu, 19 Jul 2007 14:49:08 +0000 (14:49 +0000)]
r23976: Move authdata.o to LIBADS_SERVER_OBJ.

Guenther
(This used to be commit 3544d19d543fa8e9166017a8c31e981941beafdd)

16 years agor23975: Enhance some debug output.
Michael Adam [Thu, 19 Jul 2007 14:22:24 +0000 (14:22 +0000)]
r23975: Enhance some debug output.
(This used to be commit 909172839a512b60db075fb1a7488345a2e48eb0)

16 years agor23974: Fix Coverity ID 361. num_rids == 0 is caught on function entry
Volker Lendecke [Thu, 19 Jul 2007 14:08:01 +0000 (14:08 +0000)]
r23974: Fix Coverity ID 361.  num_rids == 0 is caught on function entry
(This used to be commit 839d64add4ebf900863f1ed3e7a379db9b6fdf69)

16 years agor23973: For debugging, add (undocumented) net ads kerberos commands (kinit, renew,
Günther Deschner [Thu, 19 Jul 2007 13:47:53 +0000 (13:47 +0000)]
r23973: For debugging, add (undocumented) net ads kerberos commands (kinit, renew,
pac).

Guenther
(This used to be commit 4cada7c1485c9957e553d6e75cb6f30f4338489f)

16 years agor23972: Fix a bug in pwrite error detection in tdb_expand_file():
Michael Adam [Thu, 19 Jul 2007 13:46:26 +0000 (13:46 +0000)]
r23972: Fix a bug in pwrite error detection in tdb_expand_file():
The proper error condition is (ret == -1) instead of
(ret != number_of_byte_told_to_write).

Michael
(This used to be commit e3af95f0983e9f92c10a80ee4f15a0cd718a4728)

16 years agor23971: Prevent build failures.
Günther Deschner [Thu, 19 Jul 2007 13:37:49 +0000 (13:37 +0000)]
r23971: Prevent build failures.

Guenther
(This used to be commit f959a0f152956429d8b525a55f99cbe2963504d6)

16 years agor23970: Allow to set the debuglevel at which to dump the PAC logon info.
Günther Deschner [Thu, 19 Jul 2007 13:36:41 +0000 (13:36 +0000)]
r23970: Allow to set the debuglevel at which to dump the PAC logon info.

Guenther
(This used to be commit 7d321aad83cb7b9cc766bc89a886676337a2bad8)

16 years agor23969: Some helper routines to retrieve a PAC and PAC elements.
Günther Deschner [Thu, 19 Jul 2007 13:34:45 +0000 (13:34 +0000)]
r23969: Some helper routines to retrieve a PAC and PAC elements.

Guenther
(This used to be commit d4c87c792a955be7d5ef59fc683fc48e3d8afe16)

16 years agor23968: Harmonize net's password prompts.
Günther Deschner [Thu, 19 Jul 2007 13:07:22 +0000 (13:07 +0000)]
r23968: Harmonize net's password prompts.

Guenther
(This used to be commit 7e2fb14d6e4f58fe6645b7e7468f925c21cb4c9d)

16 years agor23967: Memleak fix from Atsushi Nakabayashi <nakabayashi@miraclelinux.com>
Volker Lendecke [Thu, 19 Jul 2007 10:23:36 +0000 (10:23 +0000)]
r23967: Memleak fix from Atsushi Nakabayashi <nakabayashi@miraclelinux.com>

Thanks!

Volker
(This used to be commit 46997a70199296d4ec45780f002898f23029bb26)

16 years agor23962: Linux oplock support is conditional on HAVE_KERNEL_OPLOCKS_LINUX,
James Peach [Thu, 19 Jul 2007 04:37:38 +0000 (04:37 +0000)]
r23962: Linux oplock support is conditional on HAVE_KERNEL_OPLOCKS_LINUX,
not plain old LINUX.
(This used to be commit 234cb7c893172edeb6802ac02304a041b33ee939)

16 years agor23957: Use tdb_open_log instead of tdb_open.
Michael Adam [Wed, 18 Jul 2007 14:38:18 +0000 (14:38 +0000)]
r23957: Use tdb_open_log instead of tdb_open.

Michael
(This used to be commit efabd7fe03733d1fcb02d0d270c18ede7836f3a9)

16 years agor23956: merge from 3_2-ctdb-tridge:
Stefan Metzmacher [Wed, 18 Jul 2007 14:03:46 +0000 (14:03 +0000)]
r23956: merge from 3_2-ctdb-tridge:
fixed a bug with dead share mode entries

jra: please tell me if it's ok to merge this to 3_2_0.

metze
(This used to be commit 044ac6afa7a36b352f4cb203879af082d4726417)

16 years agor23954: merge from 3_0-ctdb-tridge:
Stefan Metzmacher [Wed, 18 Jul 2007 13:52:20 +0000 (13:52 +0000)]
r23954: merge from 3_0-ctdb-tridge:
don't display dead share mode entries in smbstatus

metze
(This used to be commit b52bb1e1556d2f4c2bfbd21e12782420bc26a029)

16 years agor23953: Some C++ warnings
Volker Lendecke [Wed, 18 Jul 2007 12:28:32 +0000 (12:28 +0000)]
r23953: Some C++ warnings
(This used to be commit 8716edf157bf8866328f82eb6cf25e71af7fea15)