1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

34 Commits

Author SHA1 Message Date
Andreas Schneider
37664f4ce7 s4:libnet: Fix code spelling
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-08-14 21:45:29 +00:00
Olly Betts
28aeb86a9f Fix spelling mistakes
Signed-off-by: Olly Betts <olly@survex.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-11-30 03:35:13 +01:00
Jose A. Rivera
2c9683db4b Fix an empty if statement.
Primarily following the	precedent set by other uses of composite_is_ok(), but
also making sure nothing tries to use c after this point if it is in fact not
ok.

Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-05-05 20:19:13 +02:00
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 ea99590046f50ec2d0c4afe0163fc8660a797ba4)
2008-07-09 16:00:24 +02:00
Stefan Metzmacher
f14bd1a90a r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
(This used to be commit 84651aee81aaabbebf52ffc3fbcbabb2eec6eed5)
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 078671d5015c63e4bcd96815e150dae918763b83)
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 6ab10b2ed256fa3c55d1af8ddcc9dfdaf4598a1e)
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 e6ccdb6cea267b992d1b586757f0b84afbc5e45f)
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 c257363adbc2e8ab577bb86a5b4dbef3caf802ef)
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 fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
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 58551f2f28fce8f1fcd04736c47ecd7458f32ea2)
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 c78dfd356777f133427fb8d9013f38f19d43ecbd)
2007-10-10 14:52:19 -05:00
Rafal Szczesniak
0ad4c05508 r22735: correct some comments
rafal
(This used to be commit 6d4268bcd3c28ed2928e68aea567517a671e314a)
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 5ab76ce515c9b0524529e8e3607e991aff0fd7be)
2007-10-10 14:52:07 -05:00
Rafal Szczesniak
c66fae011f r22565: add libnet_DomainList function.
rafal
(This used to be commit b17da3b7da40de6a1fbe45a56b614b352f007508)
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 4a2839d95d18fe05152abbd88676c4fef4d59ace)
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 f0eb209e8478f08e36fa38ae199cfa753f9a8255)
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 76d73bc97dfcbba0667b8d831bfbf3113a8edfcb)
2007-10-10 14:17:16 -05:00
Rafal Szczesniak
b07435f3e1 r17938: More comments.
rafal
(This used to be commit 4a127aacfa142838b474b2d8186026575bca14a4)
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 4a932255a01d9f1ac91feb9e371494933f1ae74e)
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 fe5652c2b8121bbe3b9932c43164035355478611)
2007-10-10 14:16:21 -05:00
Rafal Szczesniak
6e92c83d52 r16573: Fixes in comments.
rafal
(This used to be commit 1258e6cad890ade8a65d8d43d55a95d61e6a6968)
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 1ed80c594c2f466e364a11194d6fdc30ac4a8f27)
2007-10-10 14:07:24 -05:00