1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

31 Commits

Author SHA1 Message Date
Andrew Bartlett
a6fa69c1b2 s4-libnet: Add mem_ctx to libnet_DomainClose calls (bug #8889) 2012-04-30 13:08:28 +02:00
Andrew Bartlett
74682826d9 s4-libnet: Add mem_ctx to libnet_DomainOpen calls (bug #8889) 2012-04-30 13:08:28 +02:00
Andrew Bartlett
4f7666f971 s4-libnet Always return after composite_error()
This can and does cause crashes as multiple conflicting sets of callbacks run on
memory that may have been destroyed.

Andrew Bartlett
2012-04-23 20:48:02 +10:00
Jelmer Vernooij
b4d35bee38 libndr: Rename policy_handle_empty to ndr_policy_handle_empty.
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20 13:54:07 +01:00
Andrew Bartlett
1a5eafba13 s4-libnet: Move to talloc_get_type_abort()
The NULL pointer dereference from talloc_get_type() might be free, but the
information on the actual and expected types from talloc_get_type_abort()
is priceless! :-)

Andrew Bartlett
2012-03-01 22:04:46 +11:00
Stefan Metzmacher
3d72524ab4 s4:libnet/libnet_domain.c: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:43 +01:00
Matthias Dieter Wallnöfer
ec6843402c s4:libnet - change variables to "unsigned" where needed 2010-03-10 20:23:43 +01:00
Stefan Metzmacher
f995e596bb s4:libnet: make use of explicit dcerpc_*_recv functions
metze
2010-03-01 16:11:53 +01:00
Andrew Bartlett
58e8db912d s4:libnet Allow 'net password change' to work on expired passwords
We need to pass down flags to the DCE/RPC layer to allow fallback to
anonymous connections, as we can't log in with an expired password.

The anonymous connection can then change the password with SAMR.

Andrew Bartlett
2009-06-18 13:49:30 +10:00
Günther Deschner
d4d9a73ad1 s4-samr: merge samr_EnumDomains from s3 idl. (fixme: python)
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
bb1d7684d2 s4-samr: merge samr_LookupDomain from s3 idl. (fixme: python)
Guenther
2008-11-10 21:46:30 +01:00
Michael Adam
24caf1178a libnet_domain: eliminate "discards qualifier" warning (const).
Michael
(This used to be commit ea99590046)
2008-07-09 16:00:24 +02:00
Stefan Metzmacher
f14bd1a90a r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
(This used to be commit 84651aee81)
2007-10-10 15:02:15 -05:00
Andrew Bartlett
e0779e2d3b 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
(This used to be commit 078671d501)
2007-10-10 15:01:27 -05:00
Rafal Szczesniak
a47313851f r24051: more monitor function calls and monitor msg names
convention change.

rafal
(This used to be commit 6ab10b2ed2)
2007-10-10 15:01:18 -05:00
Andrew Bartlett
4a517b1433 r24011: Keep the connect handle around in libnet, in case we want it.
Andrew Bartlett
(This used to be commit e6ccdb6cea)
2007-10-10 15:01:17 -05:00
Rafal Szczesniak
0d80514173 r23959: add more monitor messages support that's been sitting around on my
laptop for a while.

rafal
(This used to be commit c257363adb)
2007-10-10 15:01:11 -05:00
Andrew Tridgell
0479a2f1cb 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.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
40cd2d7780 r22944: fix bug #4618:
rename private -> private_data

metze
(This used to be commit 58551f2f28)
2007-10-10 14:52:30 -05:00
Rafal Szczesniak
945cb016a4 r22809: use buffer size specified in libnet context.
rafal
(This used to be commit c78dfd3567)
2007-10-10 14:52:19 -05:00
Rafal Szczesniak
0ad4c05508 r22735: correct some comments
rafal
(This used to be commit 6d4268bcd3)
2007-10-10 14:52:07 -05:00
Rafal Szczesniak
fbe82f1375 r22734: - use samr pipe if it is already opened
- close connection handle after domains enumeration
- collect domain names in subsequent rounds of enumeration
  (if there are more than one)

rafal
(This used to be commit 5ab76ce515)
2007-10-10 14:52:07 -05:00
Rafal Szczesniak
c66fae011f r22565: add libnet_DomainList function.
rafal
(This used to be commit b17da3b7da)
2007-10-10 14:51:44 -05:00
Rafal Szczesniak
29c2744f96 r22519: convert libnet_DomainOpenSamr function from state-handling routine
to composite_continue.

rafal
(This used to be commit 4a2839d95d)
2007-10-10 14:51:36 -05:00
Rafal Szczesniak
0f0879eacf r18104: A couple of important fixes to samr domain open so that
the corresponding test may pass.

rafal
(This used to be commit f0eb209e84)
2007-10-10 14:17:17 -05:00
Rafal Szczesniak
1da09b94eb r18101: Use composite_create function and add monitor function pointer
to the state structure.

rafal
(This used to be commit 76d73bc97d)
2007-10-10 14:17:16 -05:00
Rafal Szczesniak
b07435f3e1 r17938: More comments.
rafal
(This used to be commit 4a127aacfa)
2007-10-10 14:16:55 -05:00
Rafal Szczesniak
1e46d3a46a r17856: The two new functions - libnet_LookupName and libnet_UserInfo.
These two perform name resolving in SAM database and fetching
user account information, respectively. The code is quite rough
yet, but it builds and basic tests work. Now, I'm working on
cleaning it up...

rafal
(This used to be commit 4a932255a0)
2007-10-10 14:16:48 -05:00
Rafal Szczesniak
1f8fda717f 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
(This used to be commit fe5652c2b8)
2007-10-10 14:16:21 -05:00
Rafal Szczesniak
6e92c83d52 r16573: Fixes in comments.
rafal
(This used to be commit 1258e6cad8)
2007-10-10 14:09:36 -05:00
Rafal Szczesniak
16b5eac38d 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
(This used to be commit 1ed80c594c)
2007-10-10 14:07:24 -05:00