Stefan Metzmacher
f33a558750
s4:libnet: let libnet_rpc_usermod_send() take tevent_context/dcerpc_binding_handle
...
This avoids usage/dereferencing 'struct dcerpc_pipe'.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
2014-01-16 16:22:52 +01:00
Stefan Metzmacher
0fdf392e6a
s4:libnet: let libnet_rpc_userdel_send() take tevent_context/dcerpc_binding_handle
...
This avoids usage/dereferencing 'struct dcerpc_pipe'.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
2014-01-16 16:22:52 +01:00
Stefan Metzmacher
e3b8df2b09
s4:libnet: let libnet_rpc_useradd_send() take tevent_context/dcerpc_binding_handle
...
This avoids usage/dereferencing 'struct dcerpc_pipe'.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
2014-01-16 16:22:51 +01:00
Stefan Metzmacher
59fb19ebc4
s4:libnet: let libnet_rpc_userinfo_send() take tevent_context/dcerpc_binding_handle
...
This avoids usage/dereferencing 'struct dcerpc_pipe'.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
2014-01-16 16:22:51 +01:00
Andrew Bartlett
b72597c6e3
s4-libnet: Add mem_ctx to libnet_rpc_usermod calls (bug #8889 )
2012-04-30 13:08:28 +02:00
Andrew Bartlett
08f8eb4407
s4-libnet: Add mem_ctx to libnet_rpc_userdel calls (bug #8889 )
2012-04-30 13:08:28 +02:00
Andrew Bartlett
fd2b21fc38
s4-libnet: Add mem_ctx to libnet_rpc_useradd 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
Stefan Metzmacher
84ae92da6b
s4:libnet: pass an explicit mem_ctx to libnet_rpc_userinfo_send() (bug #8889 )
...
This hopefully fixes the flakey autobuild.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Apr 24 16:43:03 CEST 2012 on sn-devel-104
2012-04-24 16:43:03 +02:00
Andrew Bartlett
5960b7b2a4
s4-libnet Always return after composite_error()
...
These instances should not cause a problem, but make it easier to audit for
this kind of problem in the future with grep.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr 23 14:29:45 CEST 2012 on sn-devel-104
2012-04-23 14:29:44 +02:00
Andrew Bartlett
9c11c0cde0
s4-libnet: Remove set but unused variables
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Mar 1 13:40:12 CET 2012 on sn-devel-104
2012-03-01 13:40:11 +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
Matthias Dieter Wallnöfer
ab3e20b82f
s4:libnet - free the "c" context also on error conditions
...
(and if it's NULL then "talloc_free" does ignore it)
2010-08-14 18:48:20 +02:00
Stefan Metzmacher
35c554bef0
s4:libnet_UserList: allocate children strings on the correct talloc parent
...
Otherwise the _recv() function won't move the children strings to the
callers memory context and let the callers crash.
metze
2010-07-10 09:35:01 +02:00
Matthias Dieter Wallnöfer
b0bba4003e
s4:libnet - add missing "talloc_free"s for "c" contexts on "recv" operations
2010-07-04 22:05:17 +02:00
Stefan Metzmacher
ccc0ab6811
s4:libnet/libnet_user.c: make use of use tevent_req based dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:44 +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
Stefan Metzmacher
722765213b
s4:libnet: rename uint => uint32_t because uint is not portable
...
metze
2009-07-15 20:47:00 +02:00
Günther Deschner
1ea97d76ed
s4-samr: merge samr_EnumDomainUsers from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
a4ad265850
s4-libnet: fix user and group enumeration functions after lsa changes.
...
Guenther
2008-10-27 21:46:50 +01:00
Günther Deschner
95231eae39
s4-lsa: merge lsa_QueryInfoPolicy/{2} from s3 lsa idl.
...
Guenther
2008-10-27 19:33:23 +01:00
Kai Blin
240d959005
libnet: Make UserInfo accept a SID as input as well, fix wb_cmd_getpwuid
...
(This used to be commit 5f3a70f285
)
2008-04-24 11:17:23 +02:00
Andrew Bartlett
2a209a6a9d
Ensure we don't try and set the acct_flags if they are 0 (meaning
...
unchanged in this interface).
We seem to have two very similar interfaces here, and this is the
poorer interface, for this reason.
Andrew Bartlett
(This used to be commit 582073eff1
)
2008-02-28 10:43:57 +11:00
Rafal Szczesniak
3a0a6e810a
r26633: A couple of fixes in comments.
...
(This used to be commit 9ff6568f95
)
2007-12-30 13:21:01 -06:00
Jelmer Vernooij
2151cde580
r25554: Convert last instances of BOOL, True and False to the standard types.
...
(This used to be commit 566aa14139
)
2007-10-10 15:07:55 -05:00
Rafal Szczesniak
21dd06471b
r25256: Fix missing field set in libnet_ModifyUser routine.
...
Submitted by Matthias Dieter Wallnoefer <mwallnoefer@yahoo.de>
rafal
(This used to be commit 4fe47e4f97
)
2007-10-10 15:07:00 -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
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
5ff19e8ca4
r20162: Always return some error string.
...
rafal
(This used to be commit 0c37360577
)
2007-10-10 14:29:16 -05:00
Rafal Szczesniak
47e03d96a2
r20103: Change the returned type of prerequisite checking functions,
...
as metze once suggested.
rafal
(This used to be commit 1f3fd5f854
)
2007-10-10 14:29:06 -05:00
Rafal Szczesniak
319ea53a87
r19970: more comments and fixes
...
rafal
(This used to be commit f4621dae44
)
2007-10-10 14:28:42 -05:00
Rafal Szczesniak
50821ebea3
r19956: remove unused function
...
rafal
(This used to be commit 2b60090ca6
)
2007-10-10 14:28:40 -05:00
Rafal Szczesniak
14db15657c
r19938: Return function status instead of rpc layer status. This is
...
needed to correctly return STATUS_MORE_ENTRIES and the like.
rafal
(This used to be commit 0dbba04fe0
)
2007-10-10 14:28:39 -05:00
Rafal Szczesniak
fdf4a6a97f
r19922: Use new composite_create functions in composite context
...
initialisation.
Redesign libnet_UserList function to actually do what it
was intended to do.
rafal
(This used to be commit 4ccc6e63dd
)
2007-10-10 14:28:36 -05:00
Rafal Szczesniak
e8f77306dd
r19753: verify result of received request before sending the next one.
...
I don't know why I forgot this...
rafal
(This used to be commit d5f7141a6c
)
2007-10-10 14:28:19 -05:00
Rafal Szczesniak
b5bdec2f54
r19640: add some comments
...
rafal
(This used to be commit 1ea37bf3b3
)
2007-10-10 14:25:23 -05:00
Rafal Szczesniak
cde653b55a
r19586: draft version of libnet_UserList function. still a bit of work
...
to do left.
rafal
(This used to be commit 4e6d479b07
)
2007-10-10 14:24:57 -05:00
Rafal Szczesniak
f8a82ebe2b
r19398: more comments
...
rafal
(This used to be commit 2ed463e3cd
)
2007-10-10 14:21:25 -05:00
Rafal Szczesniak
89e4387a08
r19024: remove read-only and policy dependent fields and flags
...
from user modify routines.
rafal
(This used to be commit 7ca0d3dbcb
)
2007-10-10 14:20:29 -05:00
Rafal Szczesniak
e0da0acac0
r18656: fix stupid mistake causing segfaults in torture test
...
and also add one more field to be set.
rafal
(This used to be commit e2621d0063
)
2007-10-10 14:19:00 -05:00
Rafal Szczesniak
2ccef5554f
r18615: add more time fields and fix a silly mistake.
...
rafal
(This used to be commit 06e0c5d166
)
2007-10-10 14:18:56 -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
84f8d208ef
r17448: Define macros to set fields in api function modifying user account.
...
rafal
(This used to be commit 8d9330c490
)
2007-10-10 14:15:26 -05:00
Rafal Szczesniak
828e95e81f
r16692: More comments and further code in set_user_changes routine.
...
rafal
(This used to be commit c58fa8676c
)
2007-10-10 14:09:38 -05:00
Rafal Szczesniak
61705d9c55
r16572: More comments and simple refactoring of one condition.
...
rafal
(This used to be commit 24006a3601
)
2007-10-10 14:09:36 -05:00
Rafal Szczesniak
7d1533f616
r16531: Add a function preparing argument for modify user routine.
...
rafal
(This used to be commit d91cbec264
)
2007-10-10 14:09:33 -05:00
Rafal Szczesniak
9fb340758b
r16211: Refactor domain_opened function a bit and add a few comments.
...
rafal
(This used to be commit d8113fa5e1
)
2007-10-10 14:09:06 -05:00