summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_user.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:libnet: let libnet_rpc_usermod_send() take ↵Stefan Metzmacher2014-01-161-1/+3
| | | | | | | | | 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>
* s4:libnet: let libnet_rpc_userdel_send() take ↵Stefan Metzmacher2014-01-161-2/+6
| | | | | | | | | 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>
* s4:libnet: let libnet_rpc_useradd_send() take ↵Stefan Metzmacher2014-01-161-2/+6
| | | | | | | | | 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>
* s4:libnet: let libnet_rpc_userinfo_send() take ↵Stefan Metzmacher2014-01-161-7/+13
| | | | | | | | | 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>
* s4-libnet: Add mem_ctx to libnet_rpc_usermod calls (bug #8889)Andrew Bartlett2012-04-301-1/+1
|
* s4-libnet: Add mem_ctx to libnet_rpc_userdel calls (bug #8889)Andrew Bartlett2012-04-301-2/+2
|
* s4-libnet: Add mem_ctx to libnet_rpc_useradd calls (bug #8889)Andrew Bartlett2012-04-301-2/+2
|
* s4-libnet: Add mem_ctx to libnet_DomainOpen calls (bug #8889)Andrew Bartlett2012-04-301-6/+6
|
* s4:libnet: pass an explicit mem_ctx to libnet_rpc_userinfo_send() (bug #8889)Stefan Metzmacher2012-04-241-3/+5
| | | | | | | | | 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
* s4-libnet Always return after composite_error()Andrew Bartlett2012-04-231-0/+2
| | | | | | | | | | 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
* s4-libnet: Remove set but unused variablesAndrew Bartlett2012-03-011-2/+0
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Mar 1 13:40:12 CET 2012 on sn-devel-104
* s4-libnet: Move to talloc_get_type_abort()Andrew Bartlett2012-03-011-30/+30
| | | | | | | | 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
* s4:libnet - free the "c" context also on error conditionsMatthias Dieter Wallnöfer2010-08-141-1/+2
| | | | (and if it's NULL then "talloc_free" does ignore it)
* s4:libnet_UserList: allocate children strings on the correct talloc parentStefan Metzmacher2010-07-101-2/+2
| | | | | | | Otherwise the _recv() function won't move the children strings to the callers memory context and let the callers crash. metze
* s4:libnet - add missing "talloc_free"s for "c" contexts on "recv" operationsMatthias Dieter Wallnöfer2010-07-041-1/+5
|
* s4:libnet/libnet_user.c: make use of use tevent_req based ↵Stefan Metzmacher2010-03-121-24/+33
| | | | | | dcerpc_binding_handle stubs metze
* s4:libnet - change variables to "unsigned" where neededMatthias Dieter Wallnöfer2010-03-101-1/+1
|
* s4:libnet: make use of explicit dcerpc_*_recv functionsStefan Metzmacher2010-03-011-2/+2
| | | | metze
* s4:libnet: rename uint => uint32_t because uint is not portableStefan Metzmacher2009-07-151-1/+1
| | | | metze
* s4-samr: merge samr_EnumDomainUsers from s3 idl. (fixme: python)Günther Deschner2008-11-101-4/+12
| | | | Guenther
* s4-libnet: fix user and group enumeration functions after lsa changes.Günther Deschner2008-10-271-0/+2
| | | | Guenther
* s4-lsa: merge lsa_QueryInfoPolicy/{2} from s3 lsa idl.Günther Deschner2008-10-271-3/+5
| | | | Guenther
* libnet: Make UserInfo accept a SID as input as well, fix wb_cmd_getpwuidKai Blin2008-04-241-22/+75
| | | | (This used to be commit 5f3a70f285ad8a412105c0e498e486f93fc279bc)
* Ensure we don't try and set the acct_flags if they are 0 (meaningAndrew Bartlett2008-02-281-1/+1
| | | | | | | | | | 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 582073eff1f21f81abb3e5f1ce2eca4ebef56a00)
* r26633: A couple of fixes in comments.Rafal Szczesniak2007-12-301-7/+9
| | | | (This used to be commit 9ff6568f9563bf72d11bf437fb6718e6fafe1824)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-6/+6
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25256: Fix missing field set in libnet_ModifyUser routine.Rafal Szczesniak2007-10-101-1/+4
| | | | | | | Submitted by Matthias Dieter Wallnoefer <mwallnoefer@yahoo.de> rafal (This used to be commit 4fe47e4f976f125537b6a9fc7b13b25efe3d73a6)
* r24127: Set the Domain SID into the libnet context, and have libnet_UserInfoAndrew Bartlett2007-10-101-0/+3
| | | | | | | | | 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)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | 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)
* r22944: fix bug #4618:Stefan Metzmacher2007-10-101-2/+2
| | | | | | | rename private -> private_data metze (This used to be commit 58551f2f28fce8f1fcd04736c47ecd7458f32ea2)
* r20162: Always return some error string.Rafal Szczesniak2007-10-101-0/+3
| | | | | rafal (This used to be commit 0c373605776eb166ffe46db0dd21395efc3bb186)
* r20103: Change the returned type of prerequisite checking functions,Rafal Szczesniak2007-10-101-19/+19
| | | | | | | as metze once suggested. rafal (This used to be commit 1f3fd5f85461d1e8c9cbdc3144d0a6533b170f76)
* r19970: more comments and fixesRafal Szczesniak2007-10-101-16/+37
| | | | | rafal (This used to be commit f4621dae44766feaeab452dc5fb5b495fa62d023)
* r19956: remove unused functionRafal Szczesniak2007-10-101-58/+0
| | | | | rafal (This used to be commit 2b60090ca664bd99f6332ddd3541a22f89c74aab)
* r19938: Return function status instead of rpc layer status. This isRafal Szczesniak2007-10-101-0/+4
| | | | | | | needed to correctly return STATUS_MORE_ENTRIES and the like. rafal (This used to be commit 0dbba04fe06d0feddf09421046e1e99c311272ca)
* r19922: Use new composite_create functions in composite contextRafal Szczesniak2007-10-101-105/+134
| | | | | | | | | initialisation. Redesign libnet_UserList function to actually do what it was intended to do. rafal (This used to be commit 4ccc6e63dd91c1772bed13aeb1a4346c2a172d1a)
* r19753: verify result of received request before sending the next one.Rafal Szczesniak2007-10-101-0/+1
| | | | | | | I don't know why I forgot this... rafal (This used to be commit d5f7141a6c76d80d564500d59fd07cc8edb8127d)
* r19640: add some commentsRafal Szczesniak2007-10-101-8/+57
| | | | | rafal (This used to be commit 1ea37bf3b32a7f534b3ae1918fc6336ef062f8ab)
* r19586: draft version of libnet_UserList function. still a bit of workRafal Szczesniak2007-10-101-1/+198
| | | | | | | to do left. rafal (This used to be commit 4e6d479b0707a4b48f4ca7c2a042bbf9627411f9)
* r19398: more commentsRafal Szczesniak2007-10-101-3/+97
| | | | | rafal (This used to be commit 2ed463e3cd36434c25833a0905e432b5b7f14e25)
* r19024: remove read-only and policy dependent fields and flagsRafal Szczesniak2007-10-101-33/+27
| | | | | | | from user modify routines. rafal (This used to be commit 7ca0d3dbcb9193c0f023e7c43764c7557925bb0e)
* r18656: fix stupid mistake causing segfaults in torture testRafal Szczesniak2007-10-101-2/+7
| | | | | | | and also add one more field to be set. rafal (This used to be commit e2621d00638f7dbf9f0bf862d2841da73f26d0af)
* r18615: add more time fields and fix a silly mistake.Rafal Szczesniak2007-10-101-1/+27
| | | | | rafal (This used to be commit 06e0c5d1664143f212f72fff9d9f43447b16b1d5)
* r17856: The two new functions - libnet_LookupName and libnet_UserInfo.Rafal Szczesniak2007-10-101-0/+157
| | | | | | | | | | 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)
* r17670: 1) Refactor libnet context structure a bit, to have rpc connectionRafal Szczesniak2007-10-101-17/+17
| | | | | | | | | | | 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)
* r17448: Define macros to set fields in api function modifying user account.Rafal Szczesniak2007-10-101-28/+25
| | | | | rafal (This used to be commit 8d9330c490470127f192949efa9201225136edb1)
* r16692: More comments and further code in set_user_changes routine.Rafal Szczesniak2007-10-101-17/+77
| | | | | rafal (This used to be commit c58fa8676c93b49bcce2e86b957690fc6558280c)
* r16572: More comments and simple refactoring of one condition.Rafal Szczesniak2007-10-101-6/+52
| | | | | rafal (This used to be commit 24006a36014eaa7457cf3db4cf0b084e1f9aa4d8)
* r16531: Add a function preparing argument for modify user routine.Rafal Szczesniak2007-10-101-2/+41
| | | | | rafal (This used to be commit d91cbec2644030a6e7978dd2e2c854e9d7a3d313)
* r16211: Refactor domain_opened function a bit and add a few comments.Rafal Szczesniak2007-10-101-28/+60
| | | | | rafal (This used to be commit d8113fa5e19570fcf67a7d3cd8a0d8ab12ef147e)