summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/examples
AgeCommit message (Collapse)AuthorFilesLines
2025-07-29s3:lib: Fix CID 1497484 use-after-free.Vinit Agnihotri1-0/+1
p was not set to NULL after being free'd, this can cause a use-after-free situation. This fixes coverity issue#1497484 Signed-off-by: Vinit Agnihotri <vagnihot@redhat.com> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Tue Jul 29 15:01:42 UTC 2025 on atb-devel-224
2023-09-11s3:lib: Fix code spellingJoseph Sutton1-1/+1
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-07-13s3:lib: Fix code spellingAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
2022-05-23s3:lib: Fix use_after_free: Using freed pointer "p"Pavel Filipenský1-0/+1
Found by covscan. Signed-off-by: Pavel Filipenský <pfilipen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2021-12-15s3:lib: Do not close fd = -1 on fail in netapi exampleAndreas Schneider1-1/+3
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2021-12-15s3:lib: Fix memory leak in netapi examplesAndreas Schneider1-2/+6
Found by covscan. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2021-07-14s3-libnetapi: add djoin toolGünther Deschner2-0/+167
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2021-07-14s3-libnetapi: add NetRequestOfflineDomainJoin example codeGünther Deschner2-0/+98
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2021-07-14s3-libnetapi: add NetProvisionComputerAccount example codeGünther Deschner2-0/+123
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2021-07-14s3-libnetapi: add netapi_save_file_ucs2() to example codeGünther Deschner2-0/+59
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2021-07-14s3-libnetapi: add netapi_read_file helperGünther Deschner2-0/+90
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2021-03-24s3:netapi: Use public getters in getjoinableous exampleAndreas Schneider1-2/+17
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2021-03-24s3:netapi: Use public getters in remote_machine exampleAndreas Schneider1-2/+17
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2019-01-28s3:netapi: Use C99 initializer for poptOption in netapi exampleAndreas Schneider1-6/+35
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2019-01-28s3:lib: Use C99 initializer for poptOption in netapi nltestAndreas Schneider1-30/+247
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2017-02-22Correct "occured" typos.Chris Lamb1-2/+2
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2016-09-28werror: replace WERR_UNKNOWN_LEVEL with WERR_INVALID_LEVEL in ↵Günther Deschner1-1/+1
source3/lib/netapi/ Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-11-06Fix various spelling errorsMathieu Parent1-1/+1
Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Nov 6 13:43:45 CET 2015 on sn-devel-104
2014-11-25s3:lib/netapi/examples: fix pointer from integer error in nltest.cStefan Metzmacher1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-10-24s3-netapi: add DS_8 and WS flags to libnetapi and nltest.Günther Deschner1-1/+4
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2014-04-02s3:lib/netapi/examples: remove unused variablesStefan Metzmacher4-30/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-04-02s3:lib/netapi/examples: fix const warnings in netlogon_control2.cStefan Metzmacher1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-04-02s3:lib/netapi/examples: fix invalid pointer value warnings in ↵Stefan Metzmacher1-5/+6
getjoininformation.c Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-09-25build: get rid of vars=locals() in source3/lib/netapi/examples/wscript_buildMichael Adam1-2/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Sep 25 00:51:31 CEST 2013 on sn-devel-104
2013-05-28Remove lib/netapi autoconf build system, this is now build with wafAndrew Bartlett1-364/+0
Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2012-06-03s3-libnetapi: Cope with popt versions without POPT_TABLEENDAndrew Bartlett1-0/+4
2012-02-09s3-build: remove EXEEXT from MakefilesAndrew Bartlett1-104/+104
As far as I am aware, we do not actually build on any platforms that require this. The last Stratos VOS release on ftp://ftp.stratus.com/vos/samba/samba.html was 3.0.5 Andrew Bartlett
2011-10-21s3-waf: only compile common.c in netapi examples code once.Günther Deschner1-2/+8
Guenther
2011-10-21s3-netapi: fix missing include in examples code.Günther Deschner1-0/+2
Guenther
2011-10-21build: compile (but do not install) netapi examplesAndrew Bartlett1-0/+64
The only example not yet built is the GTK domain join gui. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Oct 21 01:31:55 CEST 2011 on sn-devel-104
2011-04-17s3: Use \0 instead of NULL when 0-terminating a stringVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 17 12:26:15 CEST 2011 on sn-devel-104
2010-09-19s3-nltest: add dsregdns command to nltest.Günther Deschner1-1/+21
Guenther
2010-09-15s3-nltest: add dsgetdc command.Günther Deschner1-3/+181
Guenther
2010-09-15s3-nltest: convert server input argument into --server.Günther Deschner1-24/+19
Guenther
2010-09-15s3-nltest: rename print_result to print_netlogon_info_result.Günther Deschner1-4/+17
Guenther
2010-06-08s3-netdomjoin-gui: Fix Bug #7500. Fix 'not a string literal' warning in ↵Günther Deschner1-1/+1
netdomjoin-gui. Patch from Buchan Milne <bgmilne@mandriva.org>. Thanks! Guenther
2010-02-25s3-nltest: fix uninitialized query level.Günther Deschner1-1/+1
Guenther
2009-10-16s3-libnetapi: add nltest tool.Günther Deschner2-1/+258
Guenther
2009-10-16s3-libnetapi: add I_NetLogonControl{2} example code.Günther Deschner3-1/+303
Guenther
2009-06-16s3-netapi: add NetGetJoinInformation example code.Günther Deschner2-0/+110
Guenther
2009-05-15s3-netdomjoin-gui: allow to switch between workgroups/domains with the same ↵Günther Deschner1-2/+4
name. Guenther
2009-05-15s3-netdomjoin-gui: cosmetic fix for empty hostnames.Günther Deschner1-0/+1
Guenther
2009-05-15s3-netdomjoin-gui: only gray out labels when not root and not connecting toGünther Deschner1-3/+3
remote machines. Guenther
2009-05-14s3-netapi: add example code for NetShutdownInit and NetShutdownAbort.Günther Deschner3-1/+183
Guenther
2009-05-13s3-netdomjoin-gui: prepare to call out for NetRenameMachineInDomain() to ↵Günther Deschner1-1/+48
rename computers in domains. Guenther
2009-05-12s3-netdomjoin-gui: Fix join prompt dialog test.Günther Deschner1-1/+1
Guenther
2009-05-12s3-netdomjoin-gui: use NetServerGetInfo() level 101 to get hostname.Günther Deschner1-2/+7
Guenther
2009-05-12s3-netdomjoin-gui: inspect the correct computername string beforeGünther Deschner1-1/+1
enabling/disabling the change button. Guenther
2009-04-30s3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.Günther Deschner1-1/+2
Found by David Markey <admin@dmarkey.com>. Thanks! Guenther
2009-04-14netdomjoin-gui: make sure to grey out change fields when not running as root.Günther Deschner1-0/+15
Guenther