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

27 Commits

Author SHA1 Message Date
Rafal Szczesniak
7ca0d3dbcb r19024: remove read-only and policy dependent fields and flags
from user modify routines.

rafal
2007-10-10 14:20:29 -05:00
Rafal Szczesniak
69c379cc63 r18657: handle the case where rpc call went fine, but the result
not necessariy did.

rafal
2007-10-10 14:19:00 -05:00
Rafal Szczesniak
37ec35672e r15996: Implement a missing monitor message.
rafal
2007-10-10 14:08:47 -05:00
Rafal Szczesniak
9bc4ef267c r15938: Extend userinfo call with one optional stage - lookup for
username to resolve it to a rid, when a sid argument is not
explicitly provided.

rafal
2007-10-10 14:08:42 -05:00
Stefan Metzmacher
9ec706238c r14860: create libcli/security/security.h
metze
2007-10-10 13:59:44 -05:00
Jelmer Vernooij
51b4270513 r14542: Remove librpc, libndr and libnbt from includes.h 2007-10-10 13:58:42 -05:00
Jelmer Vernooij
7054ebf024 r14402: Generate seperate headers for RPC client functions. 2007-10-10 13:57:19 -05:00
Jelmer Vernooij
1228358767 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
2007-10-10 13:52:24 -05:00
Stefan Metzmacher
50940879f6 r12611: fix compiler warnings
metze
2007-10-10 13:49:04 -05:00
Jelmer Vernooij
70e7449318 r12608: Remove some unused #include lines. 2007-10-10 13:49:03 -05:00
Rafal Szczesniak
0e45dc3bac r10633: Formatting.
rafal
2007-10-10 13:39:13 -05:00
Stefan Metzmacher
4527815a0a r10504: - seperate implementation specific stuff, from the generic composite
stuff.
- don't use SMBCLI_REQUEST_* state's in the genreic composite stuff
- move monitor_fn to libnet.

NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR
      state in the _send() function. I haven't fixed this bugs in this
      commit! We may need some composite_trigger_*() functions or so.
      And maybe some other generic helper functions...

metze
2007-10-10 13:38:57 -05:00
Rafal Szczesniak
5be8479d5c r8761: Propagate changes in monitor messaging code.
rafal
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
b9deaa995d r7732: Implementation of very basic lookup function (to be used in more
specific routines like resolving a pdc).
Also, couple of formatting fixes.

rafal
2007-10-10 13:18:27 -05:00
Rafal Szczesniak
cd89cf9919 r7588: Fix lacking space in the comment.
rafal
2007-10-10 13:18:12 -05:00
Rafal Szczesniak
f6ef7b882a r7490: Rename functions and prefices s/rpc_composite/libnet_rpc/
This makes more clear where the functions belong to. Also
the rule will be that lowercased function names are not
part of "official" libnet API (though it doesn't mean one
absolutely cannot use them).

rafal
2007-10-10 13:17:59 -05:00
Rafal Szczesniak
a784c46dd4 r6718: Formatting fixes.
rafal
2007-10-10 13:16:37 -05:00
Rafal Szczesniak
08a8878436 r6624: I have put monitor function pointer into userinfo call, but I haven't put
any possibility to pass such pointer from calling function... :)

rafal
2007-10-10 13:16:32 -05:00
Rafal Szczesniak
227c9fb45b r6616: First (and totally untested) approach to monitoring userinfo
composite call.

rafal
2007-10-10 13:16:31 -05:00
Rafal Szczesniak
ebf151ca6e r6384: Formatting fixes.
rafal
2007-10-10 13:11:35 -05:00
Andrew Tridgell
01ea1e7762 r6165: fixed up the userinfo composite code. Fixes include:
- talloc should always be done in the right context. For example, when creating
  the userinfo_state structure, place it inside the composite
  structure, not directly on the pipe. If this isn't done then
  correct cleanup can't happen on errors (as cleanup destroys the top
  level composite context only)

- define private structures like userinfo_state in the userinfo.c
  code, not in the public header

- only keep the parameters we need in the state structure. For
  example, the domain_handle is only needed in the first call, so we
  don't need to keep it around in the state structure, but the level is
  needed in later calls, so we need to keep it

- always initialise [out,ref] parameters in RPC calls. The [ref] part
  means that the call assumes the pointer it has been given is
  valid. If you don't initialise it then you will get a segv on
  recv. This is why the code was dying.

- don't use internal strucrure elements like the pipe
  pipe->conn->pending outside of the internal rpc implementation. That
  is an internal list, trying to use it from external code will cause crashes.

- rpc calls assume that rpc call strucrures remain valid for the
  duration of the call. This means you need to keep the structures
  (such as "struct samr_Close") in the userinfo_state strucrure,
  otherwise it will go out of scope during the async processing

- need to remember to change c->state to SMBCLI_REQUEST_DONE when the
  request has finished in the close handler, otherwise it will loop
  forever trying to close

Mimir, please look at the diff carefully for more detailed info on the fixes
2007-10-10 13:11:23 -05:00
Rafal Szczesniak
01cbed98b3 r6164: More comments in the code.
rafal
2007-10-10 13:11:22 -05:00
Jelmer Vernooij
e193555f0e r5775: Remove some unused functions (unions are no longer as special as they used to be)
Add oxid mapping table support in DCOM
2007-10-10 13:11:02 -05:00
Rafal Szczesniak
ec177c9226 r5677: Split structure definitions from implementation.
rafal
2007-10-10 13:10:59 -05:00
Rafal Szczesniak
e5daf6911b r5576: Bunch of fixes pointed by tridge. A few more to come...
rafal
2007-10-10 13:10:54 -05:00
Rafal Szczesniak
bfb4dfaa8c r5474: Remove random notes put in code.
rafal
2007-10-10 13:10:48 -05:00
Rafal Szczesniak
dcab843da3 r5472: First approach to composite rpc call fetchin user info.
It does only compile. Completely untested yet, so almost certainly
broken, but I don't want it to lay on my laptop only.

rafal
2007-10-10 13:10:48 -05:00