1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
Stefan Metzmacher
d62a44c447 r4558: more use of bitmaps and enums
metze
(This used to be commit 2a859fbc90)
2007-10-10 13:08:27 -05:00
Stefan Metzmacher
6b59b37744 r4436: add one more flag
metze
(This used to be commit 7886000e03)
2007-10-10 13:07:49 -05:00
Stefan Metzmacher
ccbfe7b61d r4434: - fix some NetShare* idl functions
- add torture test for NetShareCheck()

metze
(This used to be commit 96000a2261)
2007-10-10 13:07:49 -05:00
Stefan Metzmacher
d63c481fb9 r4432: - add srvsvc_NetShareInfo level 1006 and 1501 idl
- implement srvsvc_NetGetShareInfo()

- add more error checks

- bring the rest of the code in the same layout

metze
(This used to be commit 0dd14d9fc6)
2007-10-10 13:07:49 -05:00
Stefan Metzmacher
09ee8ae1de r4425: - move srvsvc and wkssvc server code to the new W_ERROR_HAVE_NO_MEMORY() macro
- add parameters for
  server_info:platform_id = 500 /* this is PLATFORM_ID_NT */
  server_info:version_major = 5
  server_info:version_minor = 2

- implmented srvsvc_NetSrvGetInfo level 101

- make dcesrv_common_get_server_name() match w2k3

metze
(This used to be commit 16f4320770)
2007-10-10 13:07:48 -05:00
Stefan Metzmacher
c62615f268 r4075: implement RemoteTOD server function
metze
(This used to be commit 0c6d4246a4)
2007-10-10 13:06:23 -05:00
Stefan Metzmacher
856ee66537 r3810: create a LIB_SECURITY subsystem
- move dom_sid, security_descriptor, security_* funtions to one place
  and rename some of them

metze
(This used to be commit b620bdd672)
2007-10-10 13:05:56 -05:00
Andrew Tridgell
2bf6dff983 r3283: converted to quoted uuid() defines in all our IDL. This should help
the build on systems like solaris with the SunPRO compiler
(This used to be commit fe913ad11b)
2007-10-10 13:04:50 -05:00
Jelmer Vernooij
d3e8a74551 r1838: Updates from the airplane:
- IDL fixes + adding comments
 - Start working on dcom infrastructure
(This used to be commit ef0fc269f0)
2007-10-10 12:58:00 -05:00
Stefan Metzmacher
ae0018ad2a r1545: add some comments and move a transport function to the transport section
metze
(This used to be commit 7d5ca8cc7c)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
b56fbe6d14 r1543: add srvsvc_NetRemoteTOD idl and torture tests
metze
(This used to be commit 3f2b77d7ec)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
84735e42d4 r1525: share info level 1004 is invalid,
but is not the same as the default case

metze
(This used to be commit 5fe88379ad)
2007-10-10 12:57:39 -05:00
Stefan Metzmacher
c0f6a5186b r1524: add some comments
metze
(This used to be commit f524073762)
2007-10-10 12:57:39 -05:00
Andrew Tridgell
ff55bda148 r712: fixed a bug in the NetShareGetInfo idl, and added another info level
(This used to be commit 9397705593)
2007-10-10 12:53:44 -05:00
Andrew Tridgell
21e6b1531b r464: a big improvement to the API for writing server-side RPC
servers. Previously the server pipe code needed to return the RPC
level status (nearly always "OK") and separately set the function call
return using r->out.result. All the programmers writing servers
(metze, jelmer and me) were often getting this wrong, by doing things
like "return NT_STATUS_NO_MEMORY" which was really quite meaningless
as there is no code like that at the dcerpc level.

I have now modified pidl to generate the necessary boilerplate so that
just returning the status you want from the function will work. So for
a NTSTATUS function you return NT_STATUS_XXX and from a WERROR
function you return WERR_XXX. If you really want to generate a DCERPC
level fault rather than just a return value in your function then you
should use the DCESRV_FAULT() macro which will correctly generate a
fault for you.

As a side effect, this also adds automatic type checking of all of our
server side rpc functions, which was impossible with the old API. When
I changed the API I found and fixed quite a few functions with the
wrong type information, so this is definately useful.

I have also changed the server side template generation to generate a
DCERPC "operation range error" by default when you have not yet filled
in a server side function. This allows us to correctly implement
functions in any order in our rpc pipe servers and give the client the
right information about the fault.
(This used to be commit a4df5c7cf8)
2007-10-10 12:51:44 -05:00
Andrew Tridgell
31d44e3682 r359: moved the share type definitions to srvsvc.idl
I'd like to see more protocol defininitions in the IDL files and less
in smb.h where possible.
(This used to be commit 854b875bbe)
2007-10-10 12:51:34 -05:00
Andrew Tridgell
25fe9bc2a1 latest srvsvc and wkssvc IDL from metze
(This used to be commit 59557a557d)
2003-12-20 21:50:51 +00:00
Andrew Tridgell
5b03596529 fixed srvsvc DiskEnum call
strangely, the output doesn't seem to contain an info level. Some
programmer stuffed up the IDL :)
(This used to be commit a39ee5d003)
2003-12-15 10:21:09 +00:00
Andrew Tridgell
0a61036257 patch from metze with updates to srvsvc and changes to pidl to allow
for the server rpc boilerplate to correctly generate for multiple
interfaces on an endpoint
(This used to be commit 56143689ec)
2003-12-15 09:18:53 +00:00
Andrew Tridgell
a465add90f * changed the way strings are handled in pidl to a much more general
interface. We now support an arbitrary set of flags to each parser,
  and these can be used to control the string types. I have provided
  some common IDL string types in librpc/idl/idl_types.h which needs to
  be included in every IDL file.

* added IDL for the endpoint mapper. Added a test suite that enumerates
  all endpoints on the server.
(This used to be commit d2665f36a7)
2003-11-21 13:14:17 +00:00
Andrew Tridgell
a6e5654b3d fixed srvsvc_NetShareEnumAll()
(This used to be commit ab4056e25c)
2003-11-20 05:34:02 +00:00
Richard Sharpe
4730469cd8 Add a 1004 level for srvsvc.
(This used to be commit 9810e6f180)
2003-11-20 04:45:16 +00:00
Andrew Tridgell
66a827c921 * changed to midl syntax using [case(x)] instead of case(x)
* use empty defaults instead of a dummy empty structure
(This used to be commit 555a340d3c)
2003-11-20 00:57:59 +00:00
Andrew Tridgell
10ee36bede switched to a new way of handling unions, so that we can handle
alignment correctly for unions that have non-uint16 discriminants

fixed the union handling in srvsvc.idl. (metze, please take a look at
the changes, your IDL did match what was one the wire in most cases,
but isn't the way IDL is usually coded)
(This used to be commit 7b5d028729)
2003-11-19 22:10:20 +00:00
Richard Sharpe
5a51af0685 Fix up some things in the IDL, and fix up a mistake I made before.
entriesreturned does not appear as a top-level IDL item. It appears in the
structure that is returned.

I have traces of TransportEnum that Ethereal properly dissects ...
(This used to be commit e3f0460378)
2003-11-19 19:44:17 +00:00
Richard Sharpe
7b3f7cd7fd Some simple tweaks to the IDL to make it more correct ...
I am also concerned about the difference between NetShareEnum and
NetShareEnumAll. I would be interested to see a trace of NetShareEnumAll.

I also think we should stick to the names used in MSDN where possible, as
that makes it easier for people who are familiar with MSDN to help us get
this right.
(This used to be commit 580939e62e)
2003-11-19 19:32:28 +00:00
Andrew Tridgell
4e18040236 srvsvc IDL and test code from metze. Thanks!
(This used to be commit 54d3cb22dc)
2003-11-19 09:15:46 +00:00