1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00
Commit Graph

666 Commits

Author SHA1 Message Date
Stefan Metzmacher
ae97f5f50b r55: if you try to use a custom bind or unbind hook in
a dcesrv module and also use the autogenerated boilerplate
you can just use:

#define DCESRV_INTERFACE_<UPPERCASE_INTERFACE_NAME>_BIND <interface_name>_bind
#define DCESRV_INTERFACE_<UPPERCASE_INTERFACE_NAME>_UNBIND <interface_name>_unbind

the prototype for the functions are the same as in
struct dcesrv_interface {
...
	/* this function is called when the client binds to this interface  */
	NTSTATUS (*bind)(struct dcesrv_call_state *, const struct dcesrv_interface *);

	/* this function is called when the client disconnects the endpoint */
	void (*unbind)(struct dcesrv_connection *, const struct dcesrv_interface *);
...
};

e.g.

#define DCESRV_INTERFACE_WINREG_BIND winreg_bind
#define DCESRV_INTERFACE_WINREG_UNBIND winreg_unbind

metze
2007-10-10 12:50:40 -05:00
Jelmer Vernooij
9f13b7c60c r46: Add CreateKey function (still working on it) 2007-10-10 12:50:40 -05:00
Gerald Carter
11717ae912 r42: importing .cvsignore files 2007-10-10 12:50:40 -05:00
Jelmer Vernooij
d85b8fb3b7 r36: - Start using memory pools in the registry library
- Remove obsolete file
2007-10-10 12:50:40 -05:00
Andrew Tridgell
b87af5a37b r35: a test commit - 2 2007-10-10 12:50:40 -05:00
Andrew Tridgell
87429a0c99 r34: a test commit 2007-10-10 12:50:40 -05:00
Jelmer Vernooij
8b9b992f60 r33: Fix torture test after IDL changes. 2007-10-10 12:50:40 -05:00
Jelmer Vernooij
98224f5436 r31: More registry updates. regdiff/regpatch work now. 2007-10-10 12:50:40 -05:00
Andrew Tridgell
25b7ec390a r23: get rid of def_finfo 2007-10-10 12:50:33 -05:00
Jelmer Vernooij
7cab3a00d7 r20: Add the registry library. Still needs a lot of work,
see source/lib/registry/TODO for details.
2007-10-10 12:50:33 -05:00
Gerald (Jerry) Carter
6e50109b66 [GLUE] Sync tree with SVN r17. 2007-10-10 12:39:20 -05:00
Andrew Tridgell
dd95cd141d added IDL and test for lsa_OpenSecret() -
Andrew Tridgell
4de08b64dd added IDL and test suite for lsa_CreateSecret() -
Andrew Tridgell
cdb4751153 added idl and test suite for lsa_CreateTrustedDomain() -
Andrew Tridgell
e9e85c4644 added the rest of the ldb_modify() code, which required a fairly large
change in the ldb API. The API is now much closer to LDAP.
-
Tim Potter
3355fec421 This is the start of a C API to the DCERPC client routines. Currently
the only way to access this is to cut&paste from torture/rpc/*.c
-
Jeremy Allison
a7ca9620d5 Added one more test for "dirname\."
Jeremy.
-
Andrew Tridgell
63b2655774 allow "struct TDB_DATA" as well as just "TDB_DATA"
in general I prefer the struct form for Samba4 structures. I think its
clearer.
-
Andrew Tridgell
c4d5d0e9eb added lsaCreateAccount() and a test in the RPC-LSA test suite
also tested lsa_Delete() to delete the newly created account
-
Andrew Tridgell
12538cd2c6 building with Makefile.ldb now works -
Andrew Tridgell
dc6f41f9e7 make a more recent snapshot of ldb available to interested
people. Note that I decided to make it LGPL.

ldb is not finished yet, but enough of it is there for people to get
an idea of what it does, and quite a few simple tests work
-
Andrew Tridgell
0e845ecd49 merge some recent tdb changed from samba3 -
Andrew Tridgell
b881b72cb9 switch from SIG_ATOMIC_T to sig_atomic_t -
Andrew Tridgell
51409e2a41 after discussion with the copyright holders tdb is now under the LGPL -
Andrew Tridgell
6aec1457f8 added a TDB_MODIFY flag to tdb_store() that says "if the record
doesn't exist then fail the store"
-
Andrew Tridgell
76bf816485 added a private pointer to tdb_traverse() to allow callers to supply
data to their traverse function
-
Andrew Tridgell
6505efc7e9 removed the state parameter to tdb_traverse and the TDB_MODIFY flag -
Andrew Tridgell
96c54df6fa copy with a null volume name in a trans2 QFSINFO call -
Andrew Tridgell
c8497a4236 - moved some of the base tests into torture/basic/
- added a CHARSET set of tests, which determines how the server deals
with some specific charset issues related to UTF-16
support. Interestingly, Samba3 already passes all but one of these
tests, because our incorrect UCS-2 and UTF-8 implementations where we
don't check the validity of characters actually matches what Windows
does! This means that adding UTF-16 support to Samba is going to be
_much_ easier than we expected.
-
Andrew Tridgell
3bcd27e0f0 - use a linked list for the ftable in the nbench load generator. This
allows us to cope a little better with the async nature of open/close
requests which implies a ordering on which handle to close.

- request oplocks in NBENCH and add a oplock handler
-
Andrew Tridgell
4bbc77fa0c use client1, client2 not client0, client1 to better match netbench -
Andrew Tridgell
06a8100e6a fixed the handling of level II oplocks in samba4, especially when
acting as a cifs redirectory (using the cifs backend)
-
Andrew Tridgell
82e50a1ce8 put the "max xmit" option back into Samba4 -
Andrew Tridgell
ad42c8432b readx reply packets can be over-sized -
Andrew Tridgell
931138cc44 nicer way of handling \clients -
Andrew Tridgell
ddfddcbffd as a special case don't check the status of the create of \clients -
there is a race condition in the create
-
Andrew Tridgell
d49e4407e5 make the warmup and execute phases clearer -
Andrew Tridgell
bba81f1c7a add config hints for cifs backend -
Andrew Tridgell
df50911a9c added a 5% warmup time to NBENCH to make the results more consistent -
Andrew Tridgell
e0d9502aa2 added the -C option to smbtorture
this option takes a filename containing a list of UNC names. When
supplied to a torture test that uses multiple client connections the
test will distribute the load across the listed UNC names. This allows
you to use NBENCH effectively against a server that has multiple IP
addresses, and spread the load among them.
-
Andrew Tridgell
1c5dc25b3b make sure the tags in the NBENCH test match the tags in the generated
load files
-
Andrew Tridgell
6cbe8a6bd5 don't check return fields (like search count) on an expected failure -
Andrew Tridgell
c5c75a6ada handle incomplete load files
change default timelimit to 600 secs
-
Andrew Tridgell
a46c009c04 greatly improved NBENCH netbench simulator
- more accurate request simulation using Samba4 raw client library
 - now checks for correct status on all requests
 - timelimit based benchmarking, default of 600 seconds
-
Andrew Tridgell
8dbf08549e fixed the label for search requests -
Andrew Tridgell
10b137c6e3 fixed a typo -
Andrew Tridgell
04f8996dd3 added the "nbench" ntvfs backend. This is used to capture NBENCH load
files, and also serves as an example of how to write a NTVFS filter
module for Samba4.
-
Andrew Tridgell
8047b806e7 in the async socket handling routines in the cifs backend don't assume
that conn->ntvfs_private is set correctly, instead use our copy of the
private pointer in the fde callback. This allows the cifs backend to
be used on conjunction with a NTVFS filter module.
-
Andrew Tridgell
9ea20d0c9a fixed two writex client bugs
- always use the 14 word writex varient even for small transfers as
   long as large offsets are negotiated (this matches windows
   behaviour)

 - make sure we fill in the top 16 bits of the count for large writex
   calls
-
Stefan Metzmacher
ec96914c66 make proto should not catch any function of the lib/popt/*.c stuff
metze
-