summaryrefslogtreecommitdiffstats
path: root/source3/lib/netapi/user.c
Commit message (Collapse)AuthorAgeFilesLines
* Change expired password flag indicatorGabriel Buades2014-11-031-1/+1
| | | | | | Signed-off-by: Gabriel Buades <gbuades@soffid.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Jim McDonough <jmcd@samba.org>
* 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/+56
| | | | | | | 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-11/+11
| | | | | | | | 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: Add missing break in NetUserSetInfo_r().Andreas Schneider2012-12-211-0/+1
| | | | | | | Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* s3-netapi: Initialize group_handle of NetUserSetGroups_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>
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-091-3/+3
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3: fix some -Wunused-but-set-variable build warnings.Günther Deschner2011-05-301-2/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon May 30 17:41:18 CEST 2011 on sn-devel-104
* More const fixes for compiler warnings from the waf build.Jeremy Allison2011-05-051-1/+1
|
* s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()Stefan Metzmacher2011-04-241-1/+1
| | | | | | | | | | | | | Most fault codes have a NTSTATUS representation, so use that. This brings the fault handling in common with the source4/librpc/rpc code, which make it possible to share more highlevel code, between source3 and source4 as the error checking can be the same now. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Apr 24 10:44:53 CEST 2011 on sn-devel-104
* s3-netapi: fix memoryleak while not using talloc_tos() in ↵Günther Deschner2011-03-251-2/+2
| | | | | | | | | | | cli_get_session_key() usage. Thanks Volker! Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Mar 25 18:21:18 CET 2011 on sn-devel-104
* s3-netapi: use cli_get_session_key() in netapi.Günther Deschner2011-03-241-2/+17
| | | | Guenther
* s3-libds: use already existing ../libds/common/flag_mapping.h header.Günther Deschner2011-03-021-0/+1
| | | | Guenther
* s3-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/user.c.Günther Deschner2011-02-011-130/+377
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Feb 1 13:41:42 CET 2011 on sn-devel-104
* s3:lib/netapi: don't set SAMR_FIELD_FULL_NAME if we just want to set the ↵Stefan Metzmacher2010-12-301-3/+0
| | | | | | | | | account name (bug #7896) metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Dec 30 18:09:13 CET 2010 on sn-devel-104
* 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-40/+40
| | | | | | | 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-7/+8
| | | | Guenther
* s3-lsa: separate out init_lsa headers.Günther Deschner2010-08-251-0/+1
| | | | Guenther
* samr.idl:UserInfo structures - fix some names according to MS-SAMR documentationMatthias Dieter Wallnöfer2010-07-051-2/+2
| | | | See MS-SAMR section "FULL IDL"
* s3-libads: only include libds flags where needed.Günther Deschner2010-07-011-0/+1
| | | | Guenther
* s3-security: use shared "Standard access rights.".Günther Deschner2010-06-031-2/+2
| | | | Guenther
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-1/+1
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3-rpc_client: move protos to init_samr.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/+1
| | | | | | samba. Guenther
* Revert "s3: Make libnetapi_open_pipe take strings instead of a ↵Volker Lendecke2009-11-081-11/+11
| | | | | | ndr_interface_table" This reverts commit 5fc9d93408effe75abcd231c45cbc14656692ebe.
* s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_tableVolker Lendecke2009-11-081-11/+11
|
* s3-netapi: Fix Coverity #668: FORWARD_NULL.Günther Deschner2009-09-161-1/+1
| | | | Guenther
* s3-netapi: Fix Coverity #669 FORWARD_NULL.Günther Deschner2009-09-161-1/+1
| | | | Guenthe
* s3-netapi: Fix Coverity #670: FORWARD_NULL.Günther Deschner2009-09-161-1/+1
| | | | Guenther
* libds: merge the UF<->ACB flag mapping functions.Günther Deschner2009-07-131-1/+1
| | | | Guenther
* Fix some dead code warnings from SUN StudioVolker Lendecke2009-06-261-2/+2
|
* s3-netapi: Fix Bug #6451: net/libnetapi user rename using wrong access bits.Günther Deschner2009-06-161-0/+2
| | | | Guenther
* Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison2009-04-151-15/+15
| | | | | | | 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-net: Fix Bug #6102. NetQueryDisplayInformation could return wrong ↵Günther Deschner2009-03-261-6/+12
| | | | | | information. Guenther
* s3-netapi: Fix Coverity #774 (REVERSE_INULL).Günther Deschner2009-03-201-6/+3
| | | | Guenther
* s3-netapi: Fix Coverity #775 (REVERSE_INULL).Günther Deschner2009-03-201-6/+3
| | | | Guenther
* s3: remove POLICY_HND.Günther Deschner2009-03-181-2/+2
| | | | Guenther
* libnetapi_open_pipe does not need to return cli_stateVolker Lendecke2009-01-181-68/+2
| | | | | | | | | | The user session key is also available in rpccli->auth->user_session_key Guenther, please check! Thanks, Volker
* s3-samr: avoid all init_samr_user* functions.Günther Deschner2009-01-061-29/+35
| | | | Guenther
* s3-samr: fix SAMR_FIELD_PASSWORD callers.Günther Deschner2008-12-051-1/+1
| | | | Guenther
* netapi: fix access bits in netapi.Günther Deschner2008-10-281-1/+1
| | | | Guenther
* netapi: fix add_GROUP_USERS_INFO_X_buffer.Günther Deschner2008-10-231-4/+12
| | | | Guenther
* netapi: fix NetUserGetGroups_r returning partial results.Günther Deschner2008-10-231-2/+3
| | | | Guenther
* netapi: start supporting NetUserSetInfo level 3.Günther Deschner2008-09-251-7/+46
| | | | Guenther
* netapi: fix NetUserGetLocalGroups.Günther Deschner2008-09-121-2/+0
| | | | | Guenther (This used to be commit 5d91c9184c27def47f20fc089cc127d780387ed8)
* netapi: fix NetUserSetGroups.Günther Deschner2008-09-121-20/+22
| | | | | Guenther (This used to be commit e8b27b69f33fb33c670026b3a24ed95a2f0099fe)
* netapi: implement NetUserGetLocalGroups_r.Günther Deschner2008-09-111-0/+238
| | | | | Guenther (This used to be commit 969bc7ce3d3f266bf07784a980ea35ab458e6eae)
* netapi: add NetUserGetLocalGroups skeleton.Günther Deschner2008-09-111-0/+18
| | | | | Guenther (This used to be commit b31209e4495de31140c57338a891569b3436d91e)