1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-19 04:23:48 +03:00
Commit Graph

1307 Commits

Author SHA1 Message Date
Günther Deschner
841ad140a3 r23381: Merge netr_GetDcName WERROR return and WERROR_DOMAIN_CONTROLLER_NOT_FOUND from
SAMBA_3_0.

Guenther
2007-10-10 14:53:13 -05:00
Andrew Bartlett
4fee8a7b77 r23176: Note that we only return one DC from this call at the moment.
Andrew Bartlett
2007-10-10 14:52:59 -05:00
Andrew Tridgell
590c6c21db r23138: added a raw interface for SMBecho operations 2007-10-10 14:52:55 -05:00
Andrew Tridgell
e4b7968a40 r23058: the cldap code was getting too intimate with the internals of struct
asn1_context. A hangover from when it wasn't a allocated structure
2007-10-10 14:52:45 -05:00
Andrew Tridgell
75d537d3a5 r23057: only call the async recv function for the first pending receive, not
all pending receives, when the transport dies. This is because the
async callback most commonly shuts down the connection (it's the only
reasonable thing to do when it's dead), and that frees the whole
context. That means that if we loop more than once, we'll end up using
freed memory.
2007-10-10 14:52:45 -05:00
Stefan Metzmacher
13bda1152d r23037: actually fix the asn1 memory leak :-)
metze
2007-10-10 14:52:43 -05:00
Andrew Tridgell
26cf849408 r23036: error checking on asn1_init() failure 2007-10-10 14:52:43 -05:00
Andrew Tridgell
3db49c2ec9 r23030: finally fixed up our asn1 code to use better memory allocation. This
should allow us to fix some long standing memory leaks.
2007-10-10 14:52:42 -05:00
Ronnie Sahlberg
e2b46d280d r22986: error 2312 is returned when NetSessDel() fails because a matching session (username/clientname)
could not be found
2007-10-10 14:52:36 -05:00
Ronnie Sahlberg
c17df8bed6 r22958: For SRVSVC/NetFileClose only Administrator is allowed to close open files.
If a normal user tries to close a file that exists, even that users own files   the server
responds with this error on w2k

if the file does not exist, the server instead responds with WERR_BADFILE
2007-10-10 14:52:31 -05:00
Stefan Metzmacher
58551f2f28 r22944: fix bug #4618:
rename private -> private_data

metze
2007-10-10 14:52:30 -05:00
Andrew Bartlett
7b086eebd6 r22884: Be consistant with the case of these constants.
Andrew Bartlett
2007-10-10 14:52:28 -05:00
Stefan Metzmacher
2390c9f24d r22866: handle incoming chained smb2 requests in our server code to let
the windows explorer in longhorn beta3 work.

metze
2007-10-10 14:52:26 -05:00
Stefan Metzmacher
258555975d 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
2007-10-10 14:52:24 -05:00
Stefan Metzmacher
c08eeb62ca r22791: make it possible to use smb2_create_blob_add() in the server code too
metze
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
e1cc933c00 r22790: fix initialization for chained requests
metze
2007-10-10 14:52:17 -05:00
Stefan Metzmacher
635a636e89 r22788: fix typo
metze
2007-10-10 14:52:17 -05:00
Jelmer Vernooij
a90202abca 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
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
d2a2fe662d 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
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
b54584dfab r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
55306c6188 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
2007-10-10 14:51:55 -05:00
Stefan Metzmacher
b7adc88e74 r22620: fix compiler warnings
metze
2007-10-10 14:51:53 -05:00
Andrew Tridgell
946f5d09ae 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.
2007-10-10 14:51:52 -05:00
Stefan Metzmacher
d19195bfa5 r22405: fix memory leak in error path
metze
2007-10-10 14:51:15 -05:00
Andrew Tridgell
99c51b104d r22090: fix error handling in cldap client library to cope with bad host names 2007-10-10 14:49:51 -05:00
James Peach
eef672bfff 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.
2007-10-10 14:49:39 -05:00
Andrew Bartlett
eef710668f 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
2007-10-10 14:49:29 -05:00
Andrew Bartlett
7f115579d2 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
2007-10-10 14:49:24 -05:00
James Peach
7f56da2d1f 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.
2007-10-10 14:49:16 -05:00
James Peach
73cea4e0c6 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.
2007-10-10 14:49:07 -05:00
Stefan Metzmacher
5534ba591d r21594: give the same error in all resolve backends
metze
2007-10-10 14:49:03 -05:00
Stefan Metzmacher
49591d6996 r21593: give a more useful error, when we can't resolve a long name
via broadcast of wins

metze
2007-10-10 14:49:02 -05:00
Stefan Metzmacher
fbc1e16331 r21592: compress_name() returns NULL for names longer than 15 chars
giving NO_MEMORY back is ugly, so give a useful error

metze
2007-10-10 14:49:02 -05:00
Stefan Metzmacher
04da3db29d r21591: add new error code
metze
2007-10-10 14:49:02 -05:00
Andrew Tridgell
d8875c286d 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
2007-10-10 14:48:54 -05:00
Stefan Metzmacher
d40465470f r21511: this seems to be the nicer fix for the problem with
the windows 2000 LDAP client

metze
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
8e604107da r21510: make it possible to push tags with length > 0xFFFFFF
metze
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
f17da75754 r21501: ugly but the windows 2000 mmc deturns decoding error without this
metze
2007-10-10 14:48:45 -05:00
Stefan Metzmacher
8c26e04900 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
2007-10-10 14:48:09 -05:00
Stefan Metzmacher
1fdc71918a r21307: make it possible to pass in NULL for domain or rid,
if someone isn't interessted in one of it

metze
2007-10-10 14:48:08 -05:00
Jelmer Vernooij
07652f65ce 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.
2007-10-10 14:48:04 -05:00
Stefan Metzmacher
dd04c5dec5 r21291: add two more error codes
metze
2007-10-10 14:48:02 -05:00
Andrew Tridgell
fa3c9b29ae 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
2007-10-10 14:44:45 -05:00
Volker Lendecke
f2d364ebe6 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
2007-10-10 14:44:43 -05:00
Stefan Metzmacher
e788709835 r21072: fix compiler warning
metze
2007-10-10 14:44:28 -05:00
Jelmer Vernooij
0f34c67fff r20963: remove unused functions, run LOCAL-TDR by default 2007-10-10 14:44:04 -05:00
Stefan Metzmacher
18cc56be6a r20801: try to always fix up the acl revision when we add or remove
an ace

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

metze
2007-10-10 14:43:31 -05:00
Stefan Metzmacher
532395a18d 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
2007-10-10 14:43:30 -05:00