1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-28 03:33:13 +03:00
Commit Graph

42 Commits

Author SHA1 Message Date
Jelmer Vernooij
874f0ac056 r26573: Fix warnings. 2007-12-24 01:51:04 -06:00
Jelmer Vernooij
459e1466a4 r26376: Add context for libcli_resolve. 2007-12-21 05:49:12 +01:00
Jelmer Vernooij
eeb2251d22 r26327: Explicit loadparm_context for RPC client functions. 2007-12-21 05:48:41 +01:00
Rafal Szczesniak
05624840c7 r25367: Add initial implementation of internal group add function.
rafal
2007-10-10 15:07:19 -05:00
Jelmer Vernooij
37425495f3 r25301: Merge my includes.h cleanups. 2007-10-10 15:07:09 -05:00
Rafal Szczesniak
80479eee25 r24679: Add (raw and untested) implementation of libnet_GroupInfo function.
rafal
2007-10-10 15:02:39 -05:00
Rafal Szczesniak
75f81f862e r24554: Add internal implementation (before api function) of group
info call.

rafal
2007-10-10 15:02:13 -05:00
Andrew Bartlett
078671d501 r24127: Set the Domain SID into the libnet context, and have libnet_UserInfo
return full SIDs for the user SID and primary group sid.

This should help kai with his getpwnam work in winbind.

Andrew Bartlett
2007-10-10 15:01:27 -05:00
Andrew Bartlett
e6ccdb6cea r24011: Keep the connect handle around in libnet, in case we want it.
Andrew Bartlett
2007-10-10 15:01:17 -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
3e4b0c5b3b r22808: store default buffer size for samr operations in libnet context.
This allows not requiring it as an argument in some function calls
and still enables specifying any size if it's necessary via libnet
context.

rafal
2007-10-10 14:52:19 -05:00
Stefan Metzmacher
f66a93ec0b r20040: uncomplete implementation start for libnet_UnbecomeDC()
metze
2007-10-10 14:28:53 -05:00
Stefan Metzmacher
103ac9a96b r20008: add stubs for a libnet_BecomeDC() call
metze
2007-10-10 14:28:46 -05:00
Stefan Metzmacher
45d5da4728 r19931: remove unused struct members
metze
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
fe5652c2b8 r17670: 1) Refactor libnet context structure a bit, to have rpc connection
properties more consistently reflected.
2) Add domain open routine for lsa pipe - this is needed for ongoing
   name resolve function.

Tests (still neglected) and comments to follow.

rafal
2007-10-10 14:16:21 -05:00
Rafal Szczesniak
a2229f8c80 r17027: My copyright notice.
rafal
2007-10-10 14:10:09 -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
f4de155c94 r14383: Fix non-developer build. 2007-10-10 13:57:17 -05:00
Jelmer Vernooij
1a16a6f1df r14380: Reduce the size of structs.h 2007-10-10 13:57:16 -05:00
Andrew Bartlett
45f67b3f6d r12976: Patch from Brad Henry <j0j0@riod.ca>:
This patch pulls the AD site name generation and site join code from
libnet/libnet_join.c and puts it into a new file, libnet/libnet_site.c.
This way, a common means for site name, configuration dn and server dn
generation exists so it doesn't need to be rewritten in new code (such
as the future libnet_leave for example).

I've made a couple of changes, but nothing dramatic.  Nice work Brad!

Andrew Bartlett
2007-10-10 13:51:13 -05:00
Jelmer Vernooij
6391761601 r12696: Reduce the size of include/structs.h 2007-10-10 13:49:40 -05:00
Jelmer Vernooij
0aca5fd513 r12542: Move some more prototypes out to seperate headers 2007-10-10 13:47:55 -05:00
Rafal Szczesniak
5da8b457c3 r11813: Const-ify name resolution method list and use string list
utilities to set the context field.

rafal
2007-10-10 13:46:32 -05:00
Rafal Szczesniak
d0ea136356 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
2007-10-10 13:19:05 -05:00
Rafal Szczesniak
15e2a67fe0 r7734: A few missing pieces...
rafal
2007-10-10 13:18:28 -05:00
Andrew Tridgell
3a3025485b 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
2007-10-10 13:18:15 -05:00
Rafal Szczesniak
53ad20d46b r7381: Put more rpc specifics in libnet context.
rafal
2007-10-10 13:17:48 -05:00
Rafal Szczesniak
aea6d8c694 r7252: Formatting.
rafal
2007-10-10 13:17:32 -05:00
Rafal Szczesniak
702a4dd2dc r7247: User shorter and more convenient name for credentials in
libnet context.

rafal
2007-10-10 13:17:31 -05:00
Rafal Szczesniak
eb83a8210a r6963: Further definitions for share manipulation code. Untested.
Original patch provided by Gregory Leocadie <gleocadie@idealx.com>

rafal
2007-10-10 13:17:00 -05:00
Andrew Bartlett
550f17f992 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
2007-10-10 13:16:27 -05:00
Jelmer Vernooij
e5bc6f4f17 r5924: Use cli_credentials in libnet/. 2007-10-10 13:11:08 -05:00
Rafal Szczesniak
c5fdc38b17 r5365: Initial code for adding user accounts via libnet call.
rafal
2007-10-10 13:09:46 -05:00
Andrew Bartlett
a9b9606091 r4722: Start to add 'net join' to Samba4.
Andrew Bartlett
2007-10-10 13:08:48 -05:00
Stefan Metzmacher
72e3b351d0 r2065: add libnet_RemoteTOD() call with levels GENERIC and SRVSVC
metze
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
6aeaa6aca3 r2061: - split libnet header files
- add LIB_RPC_CONNECT_STANDARD level which takes a server name
  and the PIPE NAME,UUID and VERSION

metze
2007-10-10 12:58:22 -05:00
Stefan Metzmacher
741f95909b r1952: change the _RPC levels into _SAMR
because we may have other rpc levels in future

add more comments about what's going on

check the rsult of samr_OpenUser

metze
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
2012d90f26 r1925: now we lookup the domain controller
and fallback to a workstation name

metze
2007-10-10 12:58:11 -05:00
Stefan Metzmacher
f1b9c1f3dd r1919: paasword change basicly works now:-)
but we need to find the real pdc for the users domain
and fallback to other levels

metze
2007-10-10 12:58:11 -05:00
Stefan Metzmacher
05c40dca8a r1836: - as abartlet said to me, we need to contact the users domain pdcfor doing a
password change
- add start of libnet_SetPassword
- use KRB5 and LDAP instead of ADS as ADS isn't a protocol
- add start of lib_rpc_connect()

metze
2007-10-10 12:58:00 -05:00
Stefan Metzmacher
dcb3ea32da r1816: here's the initial idea of libnet
metze
2007-10-10 12:57:59 -05:00