1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-15 16:23:49 +03:00
Commit Graph

1380 Commits

Author SHA1 Message Date
Jelmer Vernooij
abe8349f9b r25026: Move param/param.h out of includes.h 2007-10-10 15:05:38 -05:00
Jelmer Vernooij
cce7785474 r25010: Avoid uses of pstring 2007-10-10 15:05:33 -05:00
Jelmer Vernooij
0bcb21ed74 r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier. 2007-10-10 15:05:28 -05:00
Jelmer Vernooij
08bb1ef643 r25000: Fix some more C++ compatibility warnings. 2007-10-10 15:05:27 -05:00
Jelmer Vernooij
925abf74fa r24994: Fix some C++ warnings. 2007-10-10 15:05:26 -05:00
Jelmer Vernooij
a5a1a55405 r24992: Remove some uses of lp_*(). 2007-10-10 15:05:25 -05:00
Jelmer Vernooij
9b256a0ca2 r24937: Merge tests spoolss RPC callbacks. 2007-10-10 15:03:39 -05:00
Jelmer Vernooij
6890a01dbf r24816: Move the rest of the contents of core.h to more appropriate places.
include/ now only contains build system related headers, all other headers are
now near the source code they're related to.
2007-10-10 15:03:15 -05:00
Jelmer Vernooij
9647f860bd r24814: Fix headers, trim core.h even more. 2007-10-10 15:03:14 -05:00
Jelmer Vernooij
31993cf67b r24780: More work allowing libutil to be used by external users. 2007-10-10 15:03:10 -05:00
Jelmer Vernooij
1ce32673d9 r24712: No longer expose the 'BOOL' data type in any interfaces. 2007-10-10 15:02:54 -05:00
Stefan Metzmacher
f874eca5da r24560: rename some DCERPC_ prefixes into NDR_
metze
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
84651aee81 r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
2007-10-10 15:02:15 -05:00
Andrew Bartlett
f6566480b7 r24248: Attempt to fix bug #4830 by <mwallnoefer@yahoo.de>. If there is no
payload to the control, we still need to inialise *value, as otherwise
we read uninitialised data later.

Andrew Bartlett
2007-10-10 15:01:30 -05:00
Andrew Bartlett
59cba32c09 r24146: It is not an error for a Win2k3-only server not to support the NT4
replication call.

Andrew Bartlett
2007-10-10 15:01:28 -05:00
Andrew Bartlett
6679003c05 r23816: A little more static, but leave the dead code testjoin.c as documentation.
Andrew Bartlett
2007-10-10 14:59:23 -05:00
Andrew Bartlett
dc27a7e41c r23810: Make things static, and remove unsued code.
This includes some of the original ildap ldap client API.  ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.

Andrew Bartlett
2007-10-10 14:59:21 -05:00
Andrew Tridgell
5c9b19271e r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 14:59:18 -05:00
Andrew Tridgell
40c0919aaa r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
Andrew Tridgell
84b468b2f8 r23795: more v2->v3 conversion 2007-10-10 14:59:14 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
3a8192c742 r23754: Make sure to check the status return before we de-reference the
returned elements.

Andrew Bartlett
2007-10-10 14:59:10 -05:00
Andrew Tridgell
a9c23729f2 r23519: added libcli code for fetching shadow copy information 2007-10-10 14:53:23 -05:00
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