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

26 Commits

Author SHA1 Message Date
Rafal Szczesniak
75f81f862e r24554: Add internal implementation (before api function) of group
info call.

rafal
2007-10-10 15:02:13 -05:00
Rafal Szczesniak
6ab10b2ed2 r24051: more monitor function calls and monitor msg names
convention change.

rafal
2007-10-10 15:01:18 -05:00
Rafal Szczesniak
c257363adb r23959: add more monitor messages support that's been sitting around on my
laptop for a while.

rafal
2007-10-10 15:01:11 -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
Rafal Szczesniak
aaa2a5a27a r17001: Prepare a new monitor messages.
rafal
2007-10-10 14:10:07 -05:00
Rafal Szczesniak
8cafbe7afe r15920: Move userman.c and userinfo.c definition into respective
header files instead of composite.h

rafal
2007-10-10 14:08:40 -05:00
Rafal Szczesniak
1ed80c594c r15625: Partial commit of my current work. It makes libnet api functions
a bit more smart and more aware of what libnet_context can offer.
The context is a help when some of the arguments are not passed
(programmer counts on using sensible defaults) and stores some of
results so that similar subsequent calls don't need to reopen some
of policy handles, pipes, etc. again. It also helps to hide some
of details the library user don't really want to know much about.

Also, change domain open function to be part of public api, as
it is going to be used in ejsnet interface.

Note, this is work in progress. Comments are welcome.

rafal
2007-10-10 14:07:24 -05:00
Jelmer Vernooij
3dd477ca51 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
2007-10-10 13:57:27 -05:00
Rafal Szczesniak
1fefca2c17 r10679: Monitor messages should be issued from usermod functions.
Also a bit of formatting.

rafal
2007-10-10 13:39:17 -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
f0d51b78c0 r9090: Another field in usermod function - account flags.
rafal
2007-10-10 13:31:15 -05:00
Rafal Szczesniak
dfa2cc6c4e r9037: New fields in usermod function - allow_password_change and
force_password_change datetime.

rafal
2007-10-10 13:31:10 -05:00
Rafal Szczesniak
59769977e8 r8896: Handle more complex case where field being changed doesn't appear
alone in any of userinfo levels. What's needed is extra query step
to fill the userinfo structure and then modify a single field.
The other way to do it is userinfo level 21 with bitmap flags set,
but first all field flags need to be found.

rafal
2007-10-10 13:30:16 -05:00
Rafal Szczesniak
1bc3162e94 r8807: Modifying datetime field using struct timeval argument rather than
text-based, after recent discussion with both Andrews :)

Basic test seems to work (at least it doesn't fail now).

rafal
2007-10-10 13:30:06 -05:00
Rafal Szczesniak
266aaacf0b r8759: Another couple of fields in usermod routine.
rafal
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
1a779f8643 r8721: Further work on libnet_rpc_usermod function. Now it can change
both account name and full name.

rafal
2007-10-10 13:29:58 -05:00
Rafal Szczesniak
bee1c9ec2d r8692: Starting parts of code to provide user modify functionality.
It's more like a placeholder now, than a working code. Just don't
want to hang it around my laptop only.

rafal
2007-10-10 13:29:54 -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
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
03a228477e r7323: Complete composite domain open call.
rafal
2007-10-10 13:17:42 -05:00
Rafal Szczesniak
aa4cd8f987 r7250: Starting work on composite domain open call.
rafal
2007-10-10 13:17:31 -05:00
Rafal Szczesniak
96c3838d51 r6439: Clarify the comment.
rafal
2007-10-10 13:11:37 -05:00
Rafal Szczesniak
98d98b9bc7 r6414: Added composite user del function. Slightly broken still, but I don't
want it to hang around not commited.

rafal
2007-10-10 13:11:35 -05:00
Rafal Szczesniak
7f3aafca07 r6381: Started working on user account management functions.
rafal
2007-10-10 13:11:34 -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
ec177c9226 r5677: Split structure definitions from implementation.
rafal
2007-10-10 13:10:59 -05:00