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

1294 Commits

Author SHA1 Message Date
Stefan Metzmacher
5151068d5a r22858: - let SMB2-LOCK-VALID-REQUEST pass against longhorn beta3
- add modify the SMB2-LOCK-BLOCK-WRITE test to also test reading
  and name in SMB2-LOCK-RW-EXCLUSIV
- add SMB2-LOCK-NONE and SMB2-LOCK-SHARED

metze
(This used to be commit 258555975d)
2007-10-10 14:52:24 -05:00
Stefan Metzmacher
4ef7bab6d0 r22791: make it possible to use smb2_create_blob_add() in the server code too
metze
(This used to be commit c08eeb62ca)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
e1635caaf3 r22790: fix initialization for chained requests
metze
(This used to be commit e1cc933c00)
2007-10-10 14:52:17 -05:00
Stefan Metzmacher
7e330c7c0c r22788: fix typo
metze
(This used to be commit 635a636e89)
2007-10-10 14:52:17 -05:00
Jelmer Vernooij
cc26fe9b74 r22762: Some ldb_map changes:
* Change license to LGPL, so it can be used by non-Samba users of
LDB (cleared with Martin as well).

* Include ldb_map in standalone build.

* Move ldb_map to its own directory
(This used to be commit a90202abca)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
7fe9a3255a r22749: fix memory leak of nbt_name_request structure which are used to send replies
and never have an async callback that could free it.

we only had the memory leak in the error path the
standard path was ok.

metze
(This used to be commit d2a2fe662d)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
68b531e817 r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
(This used to be commit b54584dfab)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
298f178dca r22628: convert to new composite api
and free the smbcli_request explicit to fix a crash where
the request handler gets called after its private data is already
freed

metze
(This used to be commit 55306c6188)
2007-10-10 14:51:55 -05:00
Stefan Metzmacher
a475bfdcca r22620: fix compiler warnings
metze
(This used to be commit b7adc88e74)
2007-10-10 14:51:53 -05:00
Andrew Tridgell
b7e20c87e3 r22616: allow the unclist file to not specify a share name, and instead
inherit the share name from the command line if it is not
specified. This allows you to just specify the servers in the unclist,
and connect to the same share on all servers.
(This used to be commit 946f5d09ae)
2007-10-10 14:51:52 -05:00
Stefan Metzmacher
1c8b46bb72 r22405: fix memory leak in error path
metze
(This used to be commit d19195bfa5)
2007-10-10 14:51:15 -05:00
Andrew Tridgell
4685a42eaf r22090: fix error handling in cldap client library to cope with bad host names
(This used to be commit 99c51b104d)
2007-10-10 14:49:51 -05:00
James Peach
c61db93c7e r21949: After discussion with the Apple and Linux client maintainers,
changing the FindFirst response for the UNIX_INFO2 level to include
a length field before the name. The name is not required to be null
terminated. the lenght field does not count any null.
(This used to be commit eef672bfff)
2007-10-10 14:49:39 -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
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
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
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
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
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
Stefan Metzmacher
bf772399bf r21511: this seems to be the nicer fix for the problem with
the windows 2000 LDAP client

metze
(This used to be commit d40465470f)
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
7f9d949bd3 r21510: make it possible to push tags with length > 0xFFFFFF
metze
(This used to be commit 8e604107da)
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
31d6d8c457 r21501: ugly but the windows 2000 mmc deturns decoding error without this
metze
(This used to be commit f17da75754)
2007-10-10 14:48:45 -05:00
Stefan Metzmacher
aa5677040c r21316: if we got an unexpected nbt packet that most times mean
we got a 2nd answer to a broadcast message and have already remove
the packet id from out list while getting the first response

metze
(This used to be commit 8c26e04900)
2007-10-10 14:48:09 -05:00
Stefan Metzmacher
08de05ce5a r21307: make it possible to pass in NULL for domain or rid,
if someone isn't interessted in one of it

metze
(This used to be commit 1fdc71918a)
2007-10-10 14:48:08 -05:00
Jelmer Vernooij
97416e6b01 r21297: Remove the GTK+ tools and library from the main repository. They are now maintained separately in bzr at http://people.samba.org/bzr/jelmer/samba-gtk
This also adds some more headers to the list that is installed and a couple of extra #include lines so these
headers can be used externally without problems.
(This used to be commit 07652f65ce)
2007-10-10 14:48:04 -05:00
Stefan Metzmacher
10c928a94f r21291: add two more error codes
metze
(This used to be commit dd04c5dec5)
2007-10-10 14:48:02 -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 fa3c9b29ae)
2007-10-10 14:44:45 -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 f2d364ebe6)
2007-10-10 14:44:43 -05:00
Stefan Metzmacher
a9a3e4eafc r21072: fix compiler warning
metze
(This used to be commit e788709835)
2007-10-10 14:44:28 -05:00
Jelmer Vernooij
c471abbcfe r20963: remove unused functions, run LOCAL-TDR by default
(This used to be commit 0f34c67fff)
2007-10-10 14:44:04 -05:00
Stefan Metzmacher
d363192d64 r20801: try to always fix up the acl revision when we add or remove
an ace

metze
(This used to be commit 18cc56be6a)
2007-10-10 14:43:31 -05:00
Stefan Metzmacher
d6fafdb237 r20800: fix compiler warnings
metze
(This used to be commit 6ce994720c)
2007-10-10 14:43:31 -05:00
Stefan Metzmacher
e754ec1d8a r20799: if any ace has the optional sub object, the acl revision needs
to be SECURITY_ACL_REVISION_ADS (4)

metze
(This used to be commit a67bb43659)
2007-10-10 14:43:31 -05:00
Stefan Metzmacher
2246d32e70 r20795: dom_sid_parse_talloc() gets an null terminated string as input,
the SDDL string has the sid strings embedded, so we need to create
a null terminated string...

metze
(This used to be commit 532395a18d)
2007-10-10 14:43:30 -05:00
Stefan Metzmacher
15f6cf2449 r20765: add two more schema related error codes
metze
(This used to be commit 75f5a88f22)
2007-10-10 14:40:48 -05:00
Andrew Tridgell
1c211a2e43 r20650: revert a bunch of code I didn't mean to commit yet
(This used to be commit b3e2d49087)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba r20647: add cluster code
(This used to be commit 5870830b99)
2007-10-10 14:37:24 -05:00
Andrew Tridgell
1cd4339b9a r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa99)
2007-10-10 14:37:23 -05:00
Stefan Metzmacher
a2f568f000 r20404: add error code for missing attribute syntax
metze
(This used to be commit 769ce9799b)
2007-10-10 14:30:23 -05:00
Stefan Metzmacher
11018b0e13 r20378: add new error code that says the schema mismatches between DC's
metze
(This used to be commit e769029f42)
2007-10-10 14:30:19 -05:00
Volker Lendecke
84e7faf6cd r20308: ContextSimple can be zero length -- seen in a multi-step gssapi ldap bind. Did
not find that in Samba3 code, so there's nothing to port.

Volker
(This used to be commit 9bdc19b6d5)
2007-10-10 14:29:37 -05:00
Simo Sorce
52455cb922 r20284: Simplify OID primitive BER parsing.
Do not require an artificial ASN.1 context to be setup.

Simo.
(This used to be commit 14b3b9861a)
2007-10-10 14:29:31 -05:00
Stefan Metzmacher
06c58a3dbb r20277: make sure the asn1 structure has a welldefined state after a asn1_free()
metze
(This used to be commit 7e7d1a1da2)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
bfa5a5a441 r20276: remove unneeded talloc_strdup()
metze
(This used to be commit c4733b20c7)
2007-10-10 14:29:29 -05:00
Stefan Metzmacher
3853f820e6 r20259: add function to start a fake tag so that asn1_read_OID_String()
can work alone

metze
(This used to be commit ea70f6ff07)
2007-10-10 14:29:28 -05:00
Stefan Metzmacher
b55a68b368 r20258: add functions to read and write asn1 encoded OID strings without leading tag
metze
(This used to be commit 576d4c54cc)
2007-10-10 14:29:28 -05:00
Stefan Metzmacher
f37b7b8582 r20213: add 2 error codes related to the msDs-IntId attribute
metze
(This used to be commit dd5df84ccc)
2007-10-10 14:29:23 -05:00