summaryrefslogtreecommitdiffstats
path: root/source3/lib/netapi/group.c
Commit message (Collapse)AuthorAgeFilesLines
* CVE-2013-4408:s3:Ensure LookupRids() replies arrays are range checked.Jeremy Allison2013-12-091-0/+16
| | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10185 Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Mon Dec 9 09:00:41 CET 2013 on sn-devel-104
* CVE-2013-4408:s3:Ensure LookupNames replies arrays are range checked.Jeremy Allison2013-12-091-0/+82
| | | | | | | 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-9/+9
| | | | | | | | 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: Initialize group_handle of NetGroupSetUsers_r().Andreas Schneider2012-12-121-0/+1
| | | | | | | Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4-netapi: Initialize group_handle of NetGroupGetUsers_r().Andreas Schneider2012-12-121-0/+1
| | | | | 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-4/+4
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-rpc_client: add and use rpc_client/rpc_client.h.Günther Deschner2011-04-131-0/+1
| | | | Guenther
* s3-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/group.c.Günther Deschner2011-02-011-120/+367
| | | | 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
* samr: for correctness, rename samr_RidTypeArray to samr_RidAttrArray.Günther Deschner2010-10-071-3/+3
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Oct 7 12:04:32 UTC 2010 on sn-devel-104
* s3: Attempt to fix bug 7665Volker Lendecke2010-10-021-56/+56
| | | | | | | 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: use shared dom_sid_dup.Günther Deschner2010-09-201-2/+3
| | | | Guenther
* s3-lsa: separate out init_lsa headers.Günther Deschner2010-08-251-0/+1
| | | | Guenther
* s3:netapi: remove unused variableBjörn Jacke2010-01-261-2/+0
|
* s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner2009-11-261-0/+1
| | | | | | samba. Guenther
* Revert "s3: Make libnetapi_open_pipe take strings instead of a ↵Volker Lendecke2009-11-081-9/+9
| | | | | | ndr_interface_table" This reverts commit 5fc9d93408effe75abcd231c45cbc14656692ebe.
* s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_tableVolker Lendecke2009-11-081-9/+9
|
* w32err: WERR_GROUP_NOT_FOUND renamed to WERR_GROUPNOTFOUNDKamen Mazdrashki2009-09-301-4/+4
| | | | | | | | | In Win 32 we have NERR_GroupNotFound which maps to WERR_GROUP_NOT_FOUND currently and we have ERROR_GROUP_NOT_FOUND which maps to nothing, so it is to be added Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
* Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison2009-04-151-9/+9
| | | | | | | 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.
* s3-netapi: Fix Coverity #776 (REVERSE_INULL).Günther Deschner2009-03-201-7/+3
| | | | Guenther
* s3: remove POLICY_HND.Günther Deschner2009-03-181-6/+6
| | | | Guenther
* libnetapi_open_pipe does not need to return cli_stateVolker Lendecke2009-01-181-54/+0
| | | | | | | | | | The user session key is also available in rpccli->auth->user_session_key Guenther, please check! Thanks, Volker
* netapi: NetGroupEnum_r needs to handle servers with no groups.Günther Deschner2008-10-231-1/+1
| | | | Guenther
* s3: fix various samr callers.Günther Deschner2008-10-151-1/+1
| | | | Guenther
* netapi: fix NetGroupGetUsers (only enumerates users).Günther Deschner2008-09-121-1/+6
| | | | | Guenther (This used to be commit a94318be4656a668be0295988ed0743105d830c9)
* netapi: fix NetGroupSetUsers.Günther Deschner2008-09-121-20/+22
| | | | | Guenther (This used to be commit 735bc2e425ce629745495190cd1c721ccb583d24)
* netapi: implement NetGroupGetUsers_r.Günther Deschner2008-09-111-1/+136
| | | | | Guenther (This used to be commit 7b77dacde5f667d36868a2a8474cf719d9cce331)
* netapi: implement NetGroupSetUsers_r.Günther Deschner2008-09-111-1/+227
| | | | | Guenther (This used to be commit 0ba0ffdb3023cd0bb6aa5c479309c871ff15ed0c)
* netapi: add skeleton for NetGroupSetUsers.Günther Deschner2008-09-111-0/+18
| | | | | Guenther (This used to be commit 4d92d000a1676d2da45e8113ade60250c6c7eebe)
* netapi: make libnetapi_open_ipc_connection static.Günther Deschner2008-08-141-42/+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-8/+8
| | | | | | Guenther (cherry picked from commit aa70e588803e3767796dc958b139f4ee464d8626) (This used to be commit 9927ac6eec9fe1fecfedb97b61c4f93379fc8722)
* netapi: add NetGroupGetUsers skeleton.Günther Deschner2008-07-301-0/+18
| | | | | GUenther (This used to be commit 0b4e2687ae8fb48faacceb4078d61f9fd2acea9d)
* netapi: use "buffer" in libnetapi.Günther Deschner2008-07-301-12/+12
| | | | | Guenther (This used to be commit 80957bc1bc1462a2478b3eea64f5cb7a84d08677)
* Refactoring: libnetapi_open_pipe takes an interface instead of pipe_idxVolker Lendecke2008-07-211-7/+14
| | | | (This used to be commit 726e56c72fdb685ab5eddefd2fd8b043dc38d6ad)
* netapi: add caching of samr policy handles.Günther Deschner2008-07-181-38/+35
| | | | | Guenther (This used to be commit bf8453da9af1be788955204cc581c5143a854072)
* netapi: fix NetGroupGetInfo() against NT4.Günther Deschner2008-07-181-1/+11
| | | | | Guenther (This used to be commit c0fea9c4d0d3d297972c052c17b9be6d0530e098)
* netapi: fix NetGroupDel() against NT4.Günther Deschner2008-07-181-1/+3
| | | | | Guenther (This used to be commit 55035d7240bd163abb155239029a03f399c8f41f)
* netapi: fill in NetGroupEnum_r().Günther Deschner2008-07-171-2/+259
| | | | | Guenther (This used to be commit 64700e09ce9417c0b0128cc016abd34ab92f3695)
* netapi: fix map_group_info_to_buffer for GROUP_INFO_3 change.Günther Deschner2008-07-171-4/+6
| | | | | Guenther (This used to be commit f2875677194f440ffebf18e6f5171be948114353)
* netapi: add skeleton for NetGroupEnum().Günther Deschner2008-07-171-0/+18
| | | | | Guenther (This used to be commit 21a0d9d254d5c21c4bc9fe305e9df2126476f3f4)
* netapi: fix some build warnings.Günther Deschner2008-06-031-4/+4
| | | | | Guenther (This used to be commit 45cd78030f18a792d0761160bb96116d19801109)
* netapi: let libnetapi_samr_open_domain return WERROR.Günther Deschner2008-06-031-55/+49
| | | | | Guenther (This used to be commit 3d037a07e015a3af75dde054cef4c0bb7795fbb5)
* netapi: use libnetapi_samr_open_domain().Günther Deschner2008-06-031-361/+51
| | | | | Guenther (This used to be commit b07445e86f43d6e9e45b7c502ab7998bca4db14f)
* netapi: Implement NetGroupDelUser().Günther Deschner2008-06-031-2/+166
| | | | | Guenther (This used to be commit 10f69b3ce58be06d95e4dfd5782d9481f4af76bf)
* netapi: implement NetGroupAddUser().Günther Deschner2008-06-031-2/+167
| | | | | Guenther (This used to be commit c727a49519b2da6c5eb9ccc5025ab844fe8330ad)
* netapi: add dummy implementation for NetGroupAddUser() and NetGroupDelUser().Günther Deschner2008-06-031-0/+36
| | | | | Guenther (This used to be commit 6eba84edc60829f0cdf3508520625e66fe88afde)
* netapi: Implement NetGroupGetInfo_r().Günther Deschner2008-06-031-2/+213
| | | | | Guenther (This used to be commit a8baa45aecc22763a9f86e722ca1c6b7bc88b150)
* netapi: add dummy implementation of NetGroupGetInfo().Günther Deschner2008-06-031-0/+18
| | | | | Guenther (This used to be commit 88d03b1645d78334eb6f1fee52838a08539a6aba)
* netapi: implement NetGroupSetInfo_r().Günther Deschner2008-06-031-2/+225
| | | | | Guenther (This used to be commit 4d11c32874f4cbc64c7bcb2092970fa5c07b1d0e)
* netapi: Add dummy implementation of NetGroupSetInfo().Günther Deschner2008-06-031-0/+18
| | | | | Guenther (This used to be commit 7e47bdc0829d7ac856028a99389310f721a265ce)