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

111 Commits

Author SHA1 Message Date
Andrew Bartlett
96ead1a02b r8248: Make these comments more accurate.
Andrew Bartlett
(This used to be commit 00e1cf7941)
2007-10-10 13:19:25 -05:00
Andrew Bartlett
5c87688051 r8246: Don't try and set the element after the end off the array to NULL.
Andrew Bartlett
(This used to be commit 44338b2852)
2007-10-10 13:19:25 -05:00
Stefan Metzmacher
e81eb91e00 r8235: fix the build
metze
(This used to be commit 5933b00461)
2007-10-10 13:19:23 -05:00
Stefan Metzmacher
0b92507760 r8232: remove samr_String and netr_String as they are the same as lsa_String
metze
(This used to be commit e601042c07)
2007-10-10 13:19:22 -05:00
Stefan Metzmacher
637ba7f7e6 r8136: remove unused var
metze
(This used to be commit d75c97b847)
2007-10-10 13:19:12 -05:00
Rafal Szczesniak
ce7a0d47ea r8098: Add my copyright and remove unecessary header dependency.
rafal
(This used to be commit 88e7b9c237)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
45500d4176 r8096: Remove function that has became libnet_Lookup fuction.
rafal
(This used to be commit 9885749e36)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
8cedebd993 r8095: Fix compiler warning.
rafal
(This used to be commit 6736ab102f)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
4fa6a156bc r8077: Propagate changes in rpc connect routine to functions using it
(it's quite common).

rafal
(This used to be commit 798b00c24a)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
e6b54f7acf r8076: Put name resolution methods into libnet_context. This allows libnet based
application use methods of their own choice and makes it less dependent on
smb.conf parameters.
Use libnet_context in libnet_Lookup functions which is the way to pass
default name resolution methods if caller doesn't want to bother with
specifying them.

rafal
(This used to be commit d0ea136356)
2007-10-10 13:19:05 -05:00
Rafal Szczesniak
d5f76aad22 r8075: Make rpc connect function part of libnet api, as I suppose many
implementers of more complex function might need to use it.
Also simplify io structure which essentially does the same thing
when connecting arbitrary rpc server or a domain pdc.

rafal
(This used to be commit b28d2e9639)
2007-10-10 13:19:05 -05:00
Rafal Szczesniak
cc98a92bb0 r7816: Implementation of "shortcut" function for those (probably many) who
don't like to bother with netbios type names when looking for common
types: hosts (servers) and domain controllers. Also, apropriate tests

rafal
(This used to be commit 50cd94be0f)
2007-10-10 13:18:40 -05:00
Rafal Szczesniak
7b23cd4588 r7748: Use state structure in connection with io to get returned address.
rafal
(This used to be commit 345a71a08e)
2007-10-10 13:18:30 -05:00
Rafal Szczesniak
f7e3089c37 r7734: A few missing pieces...
rafal
(This used to be commit 15e2a67fe0)
2007-10-10 13:18:28 -05:00
Rafal Szczesniak
204722b868 r7732: Implementation of very basic lookup function (to be used in more
specific routines like resolving a pdc).
Also, couple of formatting fixes.

rafal
(This used to be commit b9deaa995d)
2007-10-10 13:18:27 -05:00
Andrew Tridgell
af237084ec r7633: this patch started as an attempt to make the dcerpc code use a given
event_context for the socket_connect() call, so that when things that
use dcerpc are running alongside anything else it doesn't block the
whole process during a connect.

Then of course I needed to change any code that created a dcerpc
connection (such as the auth code) to also take an event context, and
anything that called that and so on .... thus the size of the patch.

There were 3 places where I punted:

  - abartlet wanted me to add a gensec_set_event_context() call
    instead of adding it to the gensec init calls. Andrew, my
    apologies for not doing this. I didn't do it as adding a new
    parameter allowed me to catch all the callers with the
    compiler. Now that its done, we could go back and use
    gensec_set_event_context()

  - the ejs code calls auth initialisation, which means it should pass
    in the event context from the web server. I punted on that. Needs fixing.

  - I used a NULL event context in dcom_get_pipe(). This is equivalent
    to what we did already, but should be fixed to use a callers event
    context. Jelmer, can you think of a clean way to do that?

I also cleaned up a couple of things:

 - libnet_context_destroy() makes no sense. I removed it.

 - removed some unused vars in various places
(This used to be commit 3a3025485b)
2007-10-10 13:18:15 -05:00
Tim Potter
51041427f2 r7630: Unused variable.
(This used to be commit 0c1f54461c)
2007-10-10 13:18:15 -05:00
Tim Potter
757278118a r7629: Unused labels.
(This used to be commit c01c176da6)
2007-10-10 13:18:15 -05:00
Rafal Szczesniak
21fd11ff71 r7588: Fix lacking space in the comment.
rafal
(This used to be commit cd89cf9919)
2007-10-10 13:18:12 -05:00
Rafal Szczesniak
5f7f9eb11b r7587: More comments.
rafal
(This used to be commit 265b1ab0cc)
2007-10-10 13:18:11 -05:00
Rafal Szczesniak
c29896d0ae 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
(This used to be commit f6ef7b882a)
2007-10-10 13:17:59 -05:00
Rafal Szczesniak
4ce638313a r7381: Put more rpc specifics in libnet context.
rafal
(This used to be commit 53ad20d46b)
2007-10-10 13:17:48 -05:00
Rafal Szczesniak
7b47fad5d6 r7380: Mistakenly put one file twice in command line. Here's source of
CreateUser call. It serves one level of call by now. Once any
more is needed it can be placed, of course.

rafal
(This used to be commit 80e2f04ce1)
2007-10-10 13:17:48 -05:00
Rafal Szczesniak
ae6907c5c8 r7379: Simplify CreateUser function and io structure. Also, implementing
it based on composite functions. Moving to fully async CreateUser
on the way...

rafal
(This used to be commit 240409bc3c)
2007-10-10 13:17:48 -05:00
Rafal Szczesniak
5bb7a33106 r7323: Complete composite domain open call.
rafal
(This used to be commit 03a228477e)
2007-10-10 13:17:42 -05:00
Rafal Szczesniak
e85be270cc r7252: Formatting.
rafal
(This used to be commit aea6d8c694)
2007-10-10 13:17:32 -05:00
Rafal Szczesniak
af61fb8771 r7251: Initial work on composite domain open call.
rafal
(This used to be commit be3b283b20)
2007-10-10 13:17:31 -05:00
Rafal Szczesniak
d0686bf094 r7250: Starting work on composite domain open call.
rafal
(This used to be commit aa4cd8f987)
2007-10-10 13:17:31 -05:00
Rafal Szczesniak
ad43b5cba9 r7247: User shorter and more convenient name for credentials in
libnet context.

rafal
(This used to be commit 702a4dd2dc)
2007-10-10 13:17:31 -05:00
Andrew Bartlett
7cc9ce3cd0 r7204: Also fall back to different password set methods on WRITE_FAULT, as
NT4 apparently returns this.

Andrew Bartlett
(This used to be commit 06b1416c31)
2007-10-10 13:17:26 -05:00
Andrew Bartlett
4c36a59f43 r7203: Fill in the error message and fail if we can't open the secrets database.
Andrew Bartlett
(This used to be commit 27257170f4)
2007-10-10 13:17:25 -05:00
Rafal Szczesniak
d516fa53aa r6963: Further definitions for share manipulation code. Untested.
Original patch provided by Gregory Leocadie <gleocadie@idealx.com>

rafal
(This used to be commit eb83a8210a)
2007-10-10 13:17:00 -05:00
Rafal Szczesniak
65ff3d265c r6962: Severely simplified share functions. Removed call levels as we don't
seem to need them at the moment. Functions completely untested so assumed
broken.

Original patch submitted by Gregory Leocadie <gleocadie@idealx.com>
My apologies if I have written your name incorrectly.

rafal
(This used to be commit 83460e01ee)
2007-10-10 13:17:00 -05:00
Tim Potter
2b7fe67f4d r6933: Add a couple of helper functions for creating nbt names.
(This used to be commit b896daf11c)
2007-10-10 13:16:58 -05:00
Andrew Bartlett
c214a612df r6928: Add support for printing trusted domain names, sids and passwords in
the Samba4 'net samdump'.

Andrew Bartlett
(This used to be commit b7eeea53b2)
2007-10-10 13:16:57 -05:00
Andrew Bartlett
ed8144154a r6927: Make it easier to program with the SamSync callback interface, perform
the decryption seperate to the callback functions.

Andrew Bartlett
(This used to be commit 4209f813ad)
2007-10-10 13:16:57 -05:00
Tim Potter
ff02224526 r6848: Remove some dead/unused code.
(This used to be commit 14510a0ce9)
2007-10-10 13:16:50 -05:00
Rafal Szczesniak
a71af5f83f r6718: Formatting fixes.
rafal
(This used to be commit a784c46dd4)
2007-10-10 13:16:37 -05:00
Rafal Szczesniak
e8eccd22ee r6709: Add monitor messages to useradd composite useradd function.
rafal
(This used to be commit b3fce5b94b)
2007-10-10 13:16:36 -05:00
Tim Potter
00f4b34d95 r6677: Unused variables.
(This used to be commit 7417f6fa8b)
2007-10-10 13:16:34 -05:00
Rafal Szczesniak
c19d6aeca7 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
(This used to be commit 08a8878436)
2007-10-10 13:16:32 -05:00
Rafal Szczesniak
7285111162 r6616: First (and totally untested) approach to monitoring userinfo
composite call.

rafal
(This used to be commit 227c9fb45b)
2007-10-10 13:16:31 -05:00
Andrew Bartlett
35a05d1dc0 r6603: More work on the samdump puzzle. This implements a function pointer
callback interface, so we can start dumping into more than just stdout
soon.

Also use the enums instead of uint32 where possible and valid.

Andrew Bartlett
(This used to be commit f0c67a4a24)
2007-10-10 13:16:29 -05:00
Andrew Bartlett
8bf57cf8f5 r6573: Start on my project to implement an NT4 compatible BDC in Samba4.
This brings in a compatability layer for Samba3 in Samba4 - where we
will start to define file formats and similar details.

The 'net samdump' command uses 'password server = ' for now, and
performs a similar task to Samba3's 'net rpc samsync'.

Andrew Bartlett
(This used to be commit 550f17f992)
2007-10-10 13:16:27 -05:00
Andrew Bartlett
cf687fce84 r6525: Remove incorrect comment.
Andrew Bartlett
(This used to be commit 7c8a0d86d4)
2007-10-10 13:16:22 -05:00
Rafal Szczesniak
2775398b97 r6440: Adding libcli composite functions dependency, as we need to locate
a host and connect to its services prior to doing administrative tasks
via rpc calls.

rafal
(This used to be commit 84f5836d90)
2007-10-10 13:11:37 -05:00
Rafal Szczesniak
f502171a8c r6439: Clarify the comment.
rafal
(This used to be commit 96c3838d51)
2007-10-10 13:11:37 -05:00
Rafal Szczesniak
0fc124d714 r6425: Yet another comment.
rafal
(This used to be commit de3409d6e5)
2007-10-10 13:11:36 -05:00
Rafal Szczesniak
622554452b r6424: More comments and fixes to existing ones.
rafal
(This used to be commit 25dd10cedb)
2007-10-10 13:11:36 -05:00
Rafal Szczesniak
5c521587c9 r6419: Fix strange behaviour of NET-USERDEL where account doesn't actually
gets deleted.

rafal
(This used to be commit f78d1e4b35)
2007-10-10 13:11:36 -05:00