summaryrefslogtreecommitdiffstats
path: root/source3/lib/netapi/localgroup.c
Commit message (Collapse)AuthorAgeFilesLines
* CVE-2013-4408:s3:Ensure LookupNames replies arrays are range checked.Jeremy Allison2013-12-091-1/+7
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10185 Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-libnetapi: pass down ndr_interface_table to libnetapi_open_pipe().Günther Deschner2013-08-051-7/+7
| | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-netapi: Fix zeroing policy handles in NetLocalGroupAdd_r().Andreas Schneider2012-12-121-5/+5
| | | | | | | Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-netapi: Fix Coverity CID #2302: FORWARD_NULLGünther Deschner2011-04-271-1/+1
| | | | Guenther
* s3-rpc_client: add and use rpc_client/rpc_client.h.Günther Deschner2011-04-131-0/+1
| | | | Guenther
* s3-libnetapi: prefer dcerpc_lsa_X functions.Günther Deschner2011-02-021-4/+7
| | | | Guenther
* s3-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/localgroup.c.Günther Deschner2011-02-011-50/+151
| | | | Guenther
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-1/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3: Attempt to fix bug 7665Volker Lendecke2010-10-021-17/+17
| | | | | | | Quite a few of our internal routines put stuff on talloc_tos() these days. In top-level netapi routines, properly allocate a stackframe and clean it again. Also, don't leak memory in the rpccli_ callers onto the libnetapi context.
* s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.Günther Deschner2010-09-201-2/+3
| | | | Guenther
* s3-auth Change type of num_sids to uint32_tAndrew Bartlett2010-09-111-2/+2
| | | | | | | | | | | | | | size_t is overkill here, and in struct security_token in the num_sids is uint32_t. This includes a change to the prototype of add_sid_to_array() and add_sid_to_array_unique(), which has had a number of consequnetial changes as I try to sort out all the callers using a pointer to the number of sids. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lsa: separate out init_lsa headers.Günther Deschner2010-08-251-0/+1
| | | | Guenther
* s3-security: use shared "Standard access rights.".Günther Deschner2010-06-031-1/+1
| | | | Guenther
* s3-rpc_client: move protos to cli_lsarpc.hGünther Deschner2010-05-181-0/+1
| | | | Guenther
* s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner2009-11-261-0/+2
| | | | | | samba. Guenther
* Revert "s3: Make libnetapi_open_pipe take strings instead of a ↵Volker Lendecke2009-11-081-7/+7
| | | | | | ndr_interface_table" This reverts commit 5fc9d93408effe75abcd231c45cbc14656692ebe.
* s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_tableVolker Lendecke2009-11-081-7/+7
|
* Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison2009-04-151-13/+12
| | | | | | | What a difference a name makes... :-). Just because something is missnamed SAMR_ACCESS_OPEN_DOMAIN, when it should actually be SAMR_ACCESS_LOOKUP_DOMAIN, don't automatically use it for a security check in _samr_OpenDomain(). Jeremy.
* libnetapi_open_pipe does not need to return cli_stateVolker Lendecke2009-01-181-37/+0
| | | | | | | | | | The user session key is also available in rpccli->auth->user_session_key Guenther, please check! Thanks, Volker
* s3: fix various samr callers.Günther Deschner2008-10-151-2/+2
| | | | Guenther
* netapi: make libnetapi_open_ipc_connection static.Günther Deschner2008-08-141-37/+21
| | | | | | Guenther (cherry picked from commit 0259914f8ff04514a8395d8e1af61aadd50c5efb) (This used to be commit 7edc671cc1007ae216e7efdbcdb9cfa1e547dca5)
* netapi: make non-implemented local calls default to remote "localhost" calls.Günther Deschner2008-08-141-9/+9
| | | | | | Guenther (cherry picked from commit aa70e588803e3767796dc958b139f4ee464d8626) (This used to be commit 9927ac6eec9fe1fecfedb97b61c4f93379fc8722)
* netapi: let libnetapi_samr_lookup_and_open_alias return NTSTATUS.Günther Deschner2008-08-141-85/+77
| | | | | | Guenther (cherry picked from commit dcf6d879a14a70ce5795eb8dcfbfe2fc5a8ad859) (This used to be commit 8ac6a2739be870f286d19dc6bf8f0054a559b43b)
* netapi: implement NetLocalGroupSetMembers_r().Günther Deschner2008-08-111-7/+69
| | | | | Guenther (This used to be commit bb52ba58e47364d7c7ed38862a007e8e3d9dc104)
* netapi: implement NetLocalGroupDelMembers_r().Günther Deschner2008-08-111-5/+36
| | | | | Guenther (This used to be commit bd31d8f9ec9a24ca68e1d5441c0cafd98132060f)
* netapi: implement NetLocalGroupAddMembers_r().Günther Deschner2008-08-111-2/+260
| | | | | Guenther (This used to be commit 53dc9a11810b93a1771304fbfbf4ae84f551612b)
* netapi: add skeleton for NetLocalGroup*Member calls.Günther Deschner2008-08-111-0/+73
| | | | | Guenther (This used to be commit 563fb06107d2d3279e08c5c801a940f03229131b)
* netapi: in NetLocalGroupAdd_r() only set description if necessary.Günther Deschner2008-07-311-1/+1
| | | | | Guenther (This used to be commit 7e9fa2c5396d3663e83ffbf90475473fdb509871)
* netapi: use "buffer" in libnetapi.Günther Deschner2008-07-301-5/+5
| | | | | Guenther (This used to be commit 80957bc1bc1462a2478b3eea64f5cb7a84d08677)
* netapi: fix NetLocalGroupAdd.Günther Deschner2008-07-301-0/+17
| | | | | Guenther (This used to be commit d4594a7a03381fb251c9f8caf4c70e1ed97674b6)
* Refactoring: libnetapi_open_pipe takes an interface instead of pipe_idxVolker Lendecke2008-07-211-5/+10
| | | | (This used to be commit 726e56c72fdb685ab5eddefd2fd8b043dc38d6ad)
* netapi: add caching of samr policy handles.Günther Deschner2008-07-181-42/+46
| | | | | Guenther (This used to be commit bf8453da9af1be788955204cc581c5143a854072)
* netapi: let libnetapi_samr_lookup_and_open_alias compose lsa string.Günther Deschner2008-07-181-17/+13
| | | | | Guenther (This used to be commit f93090037798ffb4d9b875a4320f970ae10a64b6)
* netapi: implement NetLocalGroupEnum_r.Günther Deschner2008-07-181-1/+165
| | | | | Guenther (This used to be commit 2cd91e7d4d4847e1daef2585b09da4e6da6c9d11)
* netapi: add skeleton for NetLocalGroupEnum().Günther Deschner2008-07-181-0/+18
| | | | | Guenther (This used to be commit 71bd0109d6c393d4361729b514e63fab113bf78a)
* netapi: make map_alias_info_to_buffer suitable for arrays in the buffer.Günther Deschner2008-07-181-11/+20
| | | | | Guenther (This used to be commit dc0f737bd5e86369b2bbfbef420a095205c2d3cb)
* netapi: add libnetapi_samr_open_alias_queryinfo.Günther Deschner2008-07-181-0/+44
| | | | | Guenther (This used to be commit 401d6ce210817d9ab6915ed838e1495ae220559a)
* netapi: fix some build warnings.Günther Deschner2008-06-031-3/+3
| | | | | Guenther (This used to be commit 45cd78030f18a792d0761160bb96116d19801109)
* netapi: use libnetapi_samr_lookup_and_open_alias().Günther Deschner2008-06-031-127/+59
| | | | | Guenther (This used to be commit d8fad6bf442ac6f218c1c4572da9f1e9932c9cee)
* netapi: add libnetapi_samr_lookup_and_open_alias().Günther Deschner2008-06-031-0/+46
| | | | | Guenther (This used to be commit 890d63f31c0ff3931b8efb627c3a375850a59a9a)
* netapi: use libnetapi_samr_open_builtin_domain().Günther Deschner2008-06-031-64/+28
| | | | | Guenther (This used to be commit d1bf8c5ae6f4e3ade2000dd884c8384fb4b9f12c)
* netapi: let libnetapi_samr_open_domain return WERROR.Günther Deschner2008-06-031-40/+35
| | | | | Guenther (This used to be commit 3d037a07e015a3af75dde054cef4c0bb7795fbb5)
* netapi: Implement NetLocalGroupSetInfo().Günther Deschner2008-06-031-4/+195
| | | | | Guenther (This used to be commit f991b4d58ed660e648f29c3f25195072f91643ba)
* netapi: add NetLocalGroupSetInfo() skeleton.Günther Deschner2008-06-031-0/+20
| | | | | Guenther (This used to be commit 325f419636a69c40ee25c068787866384ef52279)
* netapi: implement NetLocalGroupGetInfo().Günther Deschner2008-06-031-2/+188
| | | | | Guenther (This used to be commit d735ee79fa5b9b7ec409ea387e4ff10357e417e7)
* netapi: add NetLocalGroupGetInfo() skeleton.Günther Deschner2008-06-031-1/+19
| | | | | Guenther (This used to be commit f70e37a7fe1915f557e194237a8bb26bcf9635d7)
* netapi: Implement NetLocalGroupDel().Günther Deschner2008-06-031-2/+137
| | | | | Guenther (This used to be commit d2426f53fabaf75d130fb99216b71299f4371253)
* netapi: add NetLocalGroupDel() skeleton.Günther Deschner2008-06-031-0/+20
| | | | | Guenther (This used to be commit 4234c87c6c30434bc5bcfcc003fdaa0114e9d74a)