summaryrefslogtreecommitdiffstats
path: root/source3/lib/netapi
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* s3: Fix Coverity ID 2573: UNUSED_VALUEVolker Lendecke2011-05-201-2/+3
| | | | Andrew B., please check!
* s3-netapi Initialise global variables in libnetapiAndrew Bartlett2011-05-131-1/+1
| | | | | | | It is important to initalise the global variables when loading this configuration for the potentially first time. Andrew Bartlett
* s3-libnetapi Don't create a talloc_stackframe() in a global variableAndrew Bartlett2011-05-132-16/+37
| | | | | | | | | | This also ensures that libnetapi_free() invalidates the global stat_ctx variable, and changes the API so that the behaviour of the error string routines is to consistently return a allocated string. Pair-Programmed-With: Günther Deschner <gd@samba.org> Andrew Bartlett
* s3-libnetapi/libnetjoin: fix uninitialized variables after the libsmbconf ↵Günther Deschner2011-05-131-1/+1
| | | | | | changes. Guenther
* libsmbconf: Convert smbconf_set_parameter() to sbcErr.Andreas Schneider2011-05-101-1/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_init() to sbcErr.Andreas Schneider2011-05-101-2/+7
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* More const fixes for compiler warnings from the waf build.Jeremy Allison2011-05-052-2/+2
|
* s3-proto: remove duplicate prototypes.Günther Deschner2011-04-291-0/+2
| | | | Guenther
* s3-netapi: Fix Coverity CID #2302: FORWARD_NULLGünther Deschner2011-04-271-1/+1
| | | | Guenther
* 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: Use \0 instead of NULL when 0-terminating a stringVolker Lendecke2011-04-171-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 17 12:26:15 CEST 2011 on sn-devel-104
* s3-rpc_client: add and use rpc_client/rpc_client.h.Günther Deschner2011-04-133-0/+3
| | | | Guenther
* s3-netapi: remove two shadowed variables.Günther Deschner2011-04-131-2/+0
| | | | Guenther
* s3-lib Move isvalid83_w to mangle_hash.cAndrew Bartlett2011-04-131-1/+0
| | | | | | | | | | | | This means that there is no need for the 'valid.dat' table to be loaded by anything other than smbd, so the unloader is also removed. The concept of a 'valid dos character' has been replaced by the hash2 mangle method. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-netapi: use dcerpc_try_samr_connects().Günther Deschner2011-04-121-4/+18
| | | | Guenther
* s3-netapi: use libnetapi_get_binding_handle().Günther Deschner2011-04-126-108/+54
| | | | Guenther
* s3-netapi: add libnetapi_get_binding_handle().Günther Deschner2011-04-122-0/+27
| | | | Guenther
* s3-netapi: fix memoryleak while not using talloc_tos() in ↵Günther Deschner2011-03-252-6/+6
| | | | | | | | | | | 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-242-6/+53
| | | | Guenther
* s3-build: use HAVE_ADS define in some more places.Günther Deschner2011-03-191-1/+1
| | | | Guenther
* s3: Fix Coverity ID 2231, REVERSE_INULLVolker Lendecke2011-03-161-2/+3
| | | | | | | No point in checking for !ctx after dereferencing it Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 16 22:51:52 CET 2011 on sn-devel-104
* s3-libds: use already existing ../libds/common/flag_mapping.h header.Günther Deschner2011-03-021-0/+1
| | | | Guenther
* s3-rpc_client: Move client pipe functions to own header.Andreas Schneider2011-02-282-0/+2
|
* lib/util/charset Add back setlocale(), but only when called from binariesAndrew Bartlett2011-02-181-1/+1
| | | | | | | | | | When called from a library, we don't want to call this, as we may overwrite some of our calling program's context. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 18 09:29:35 CET 2011 on sn-devel-104
* libndr: share some uuid helpers.Günther Deschner2011-02-081-3/+3
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Feb 8 09:52:56 CET 2011 on sn-devel-104
* 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/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-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/samr.c.Günther Deschner2011-02-011-14/+48
| | | | Guenther
* s3-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/localgroup.c.Günther Deschner2011-02-011-50/+151
| | | | Guenther
* s3-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/group.c.Günther Deschner2011-02-011-120/+367
| | | | Guenther
* s3-rpc_client: remove some more obsolete cli_X.h header files.Günther Deschner2011-01-281-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Jan 28 11:18:44 CET 2011 on sn-devel-104
* s3-libnetapi: prefer dcerpc_srvsvc_X functions.Günther Deschner2011-01-133-15/+86
| | | | | | Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-libnetapi: prefer dcerpc_netr_X functions.Günther Deschner2011-01-132-13/+32
| | | | | | Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-libnetapi: add missing error check after switchting to dcerpc_wkssvc_X ↵Günther Deschner2011-01-121-0/+4
| | | | | | functions. Guenther
* s3-initshutdown: prefer dcerpc_initshutdown_X functions.Günther Deschner2011-01-111-3/+9
| | | | Guenther
* s3-wkssvc: prefer dcerpc_wkssvc_X functions.Günther Deschner2011-01-111-6/+21
| | | | Guenther
* 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
* s3-libnetapi Load case tables earlierAndrew Bartlett2010-11-241-2/+3
| | | | | | | | | | If we don't load the case tables as the 'first' thing we do, we will segfault on the first case insensitive string comparison. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Nov 24 09:21:05 CET 2010 on sn-devel-104
* s3-libnetapi Add function header commentsAndrew Bartlett2010-11-241-0/+3
| | | | Andrew Bartlett
* s3-netapi Add libnetapi_net_init(), don't double-init common Samba subsystemsAndrew Bartlett2010-11-243-12/+60
| | | | | | | | | | | | | The issue here is that libnet and net were both trying to load the smb.conf files, the case tables and set the debug levels. The set of the debug levels caused problems, because it would force the level to 0, not (say) 10 as requested on the command line. This regression was apparently introduced in cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb when eliminating AllowDebugChange. Andrew Bartlett
* s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() insteadAndrew Bartlett2010-11-021-11/+2
| | | | | | | | | By removing this global variable, the API between the two different debug systems is made more similar. Both s3 and s4 now have lp_set_cmdline() which ensures that the smb.conf cannot overwrite these the user-specified log level. Andrew Bartlett
* s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett2010-11-021-4/+1
| | | | | | | | This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-125-3/+5
| | | | | | | | | | | | | | 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-0211-136/+295
| | | | | | | 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-dsgetdcname: always pass in messaging context.Günther Deschner2010-09-233-4/+22
| | | | | | Volker, please check. Guenther
* s3: Remove a global variable in bugfix for bug 7665Volker Lendecke2010-09-212-7/+11
| | | | Signed-off-by: Günther Deschner <gd@samba.org>