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

22903 Commits

Author SHA1 Message Date
Volker Lendecke
fd3683c1b3 r24048: Fix the C++ warnings in our version of popt 2007-10-10 12:28:59 -05:00
Volker Lendecke
2137158260 r24047: With -Wmissing-prototypes these two always generate warnings. They
should be properly prototyped. For now, gloss over the warning.
2007-10-10 12:28:59 -05:00
Volker Lendecke
a2ecc34aa4 r24046: Fix a 64-bit warning 2007-10-10 12:28:59 -05:00
Volker Lendecke
69326a56e7 r24044: Fix an uninitialized variable warning 2007-10-10 12:28:59 -05:00
Stefan Metzmacher
34ab84aceb r24042: add support for krb5 sign and seal in LDAP via "GSS-SPNEGO"
metze
2007-10-10 12:28:59 -05:00
Stefan Metzmacher
05fce8815f r24039: remove unused global variable...
metze
2007-10-10 12:28:58 -05:00
Stefan Metzmacher
85d6cd3dfb r24037: only setup sasl wrapping after a successful bind
metze
2007-10-10 12:28:58 -05:00
Jeremy Allison
cd66c133a1 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.
2007-10-10 12:28:58 -05:00
Volker Lendecke
ff1996ce4b r24034: Print the full cluster pid in print_lock_struct 2007-10-10 12:28:58 -05:00
Volker Lendecke
b74797a31e r24033: We need to be able to cope with packet_handler calling itself
recursively
2007-10-10 12:28:58 -05:00
Volker Lendecke
3e9e9a3f28 r24032: It helps testing tremendously if the cluster messaging actually sends
and receives messages to other nodes... :-)
2007-10-10 12:28:58 -05:00
Volker Lendecke
c0fd9a14cf r24031: Fix some 64 bit warnings 2007-10-10 12:28:57 -05:00
Stefan Metzmacher
306846a14f r24029: merge from http://samba.org/~tridge/samba_3_2_ctdb/:
the claim_connection() must come after the sockets are open

metze
2007-10-10 12:28:57 -05:00
Stefan Metzmacher
98c57562c4 r24027: merge from http://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
2007-10-10 12:28:57 -05:00
Stefan Metzmacher
3e4f552dbd r24025: packet_send() expects DATA_BLOB elements as vaargs
and not TDB_DATA

metze
2007-10-10 12:28:57 -05:00
Günther Deschner
57aa0acb84 r24024: Minor cleanup in ads_parse_gp_ext().
Guenther
2007-10-10 12:28:57 -05:00
Günther Deschner
6a3c44fd99 r24023: Correctly support REG_BINARY in registry_push_value() and
registry_pull_value().

Guenther
2007-10-10 12:28:57 -05:00
Stefan Metzmacher
9d4104b8d5 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
2007-10-10 12:28:56 -05:00
Stefan Metzmacher
68c786dafa r24019: merge from http://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
2007-10-10 12:28:56 -05:00
Stefan Metzmacher
12440efe0b r24017: merge from http://samba.org/~tridge/samba_3_2_ctdb/:
add add_trusted_domain() can return NULL

metze
2007-10-10 12:28:56 -05:00
Stefan Metzmacher
51c90bfa6f r24015: merge RHEL4-CTDB packaging stuff from
http://people.samba.org/bzr/metze/samba/3_2-ctdb-metze/

metze
2007-10-10 12:28:56 -05:00
Stefan Metzmacher
0add4e9478 r24013: merge from http://samba.org/~tridge/samba_3_2_ctdb/:
fixed prototype

metze
2007-10-10 12:28:56 -05:00
Volker Lendecke
c30835b4f0 r24009: Revert to the 3.0.25 logic for parsing the client's protocols. hpisgr8
with gcc still gives timeouts which worry me.

Volker
2007-10-10 12:28:56 -05:00
Volker Lendecke
59aef0451b r24008: Fix Bug 4792. Thanks to David Gajewski <dgajews@math.utoledo.edu> and to
Timur I. Bakeyev for bugging me :-)

Volker
2007-10-10 12:28:55 -05:00
Volker Lendecke
d05f7aefdf r24007: Attempt to fix the build on host "gwen". The Makefile ended up with an
empty line.
2007-10-10 12:28:55 -05:00
Volker Lendecke
3673707f9f 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.
2007-10-10 12:28:55 -05:00
Volker Lendecke
cdc8ca57a7 r24005: Attempt to fix the build on host deckchair 2007-10-10 12:28:55 -05:00
Volker Lendecke
e5c7c6406a r24004: Convert reply_checkpath to the new API 2007-10-10 12:28:55 -05:00
Volker Lendecke
9422385d9c r24003: Convert reply_tcon_and_X to the new API 2007-10-10 12:28:55 -05:00
Volker Lendecke
bd981f5328 r24002: Convert reply_negprot to the new API 2007-10-10 12:28:54 -05:00
Volker Lendecke
befaa9713a r24001: Separate out the parsing of the client's requested protocols
This way the range checking only needs to be done once
2007-10-10 12:28:54 -05:00
Volker Lendecke
624f1fe4f6 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.
2007-10-10 12:28:54 -05:00
Volker Lendecke
e3a10e9ffb r23999: Convert reply_open_and_X
This is an example of chained code that is executed in make test
2007-10-10 12:28:54 -05:00
Volker Lendecke
dbf74cb747 r23998: Convert reply_close to the new API 2007-10-10 12:28:54 -05:00
Volker Lendecke
5594af2b20 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
2007-10-10 12:28:53 -05:00
Volker Lendecke
a54fa551a4 r23996: One more const 2007-10-10 12:28:53 -05:00
Volker Lendecke
bc106cf507 r23992: Some const 2007-10-10 12:28:53 -05:00
Volker Lendecke
804be77e46 r23991: Some const 2007-10-10 12:28:53 -05:00
Volker Lendecke
0484de27d9 r23990: Reformatting for 80 cols and trailing whitespace 2007-10-10 12:28:53 -05:00
Volker Lendecke
4cdfc88754 r23989: For testing purposes, add "echo" to smbclient 2007-10-10 12:28:52 -05:00
Volker Lendecke
ada23b7f06 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
2007-10-10 12:28:52 -05:00
Volker Lendecke
ebf1b1e97c 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
2007-10-10 12:28:52 -05:00
Volker Lendecke
dc6f4bdb7f r23986: Some const 2007-10-10 12:28:52 -05:00
Michael Adam
f81f2bf480 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
2007-10-10 12:28:52 -05:00
Michael Adam
de0ef91346 r23980: Fix one more use of pwrite in expand_file.
Michael
2007-10-10 12:28:52 -05:00
Michael Adam
24fed55d72 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
2007-10-10 12:28:51 -05:00
Michael Adam
5b8d53dfe1 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
2007-10-10 12:28:51 -05:00
Günther Deschner
3544d19d54 r23976: Move authdata.o to LIBADS_SERVER_OBJ.
Guenther
2007-10-10 12:28:51 -05:00
Michael Adam
909172839a r23975: Enhance some debug output. 2007-10-10 12:28:51 -05:00
Volker Lendecke
839d64add4 r23974: Fix Coverity ID 361. num_rids == 0 is caught on function entry 2007-10-10 12:28:51 -05:00