summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/netapi.c
AgeCommit message (Collapse)AuthorFilesLines
2012-07-18source3/netapi: fix only caller which doesn't set up a talloc_stackframe()Rusty Russell1-0/+4
libnetapi_free() needs a stackframe too; looked like Andrew and Günther missed this in a37de9a95974c138d264d9cb0c7829bb426bb2d6. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-10-26s3-netapi: remove pointless use_memory_krb5_ccache.Günther Deschner1-14/+0
This breaks the ABI. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 26 13:23:58 CEST 2011 on sn-devel-104
2011-09-21s3-netapi: allow to use default krb5 credential cache for libnetapi users.Günther Deschner1-8/+17
Guenther
2011-07-28s3:libnetapi: use lp_load_global()Michael Adam1-1/+1
2011-06-09s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
2011-05-20s3: Fix Coverity ID 2573: UNUSED_VALUEVolker Lendecke1-2/+3
Andrew B., please check!
2011-05-13s3-netapi Initialise global variables in libnetapiAndrew Bartlett1-1/+1
It is important to initalise the global variables when loading this configuration for the potentially first time. Andrew Bartlett
2011-05-13s3-libnetapi Don't create a talloc_stackframe() in a global variableAndrew Bartlett1-13/+31
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
2011-04-13s3-lib Move isvalid83_w to mangle_hash.cAndrew Bartlett1-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>
2011-02-18lib/util/charset Add back setlocale(), but only when called from binariesAndrew Bartlett1-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
2010-11-24s3-libnetapi Load case tables earlierAndrew Bartlett1-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
2010-11-24s3-libnetapi Add function header commentsAndrew Bartlett1-0/+3
Andrew Bartlett
2010-11-24s3-netapi Add libnetapi_net_init(), don't double-init common Samba subsystemsAndrew Bartlett1-12/+34
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
2010-11-02s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() insteadAndrew Bartlett1-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
2010-11-02s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett1-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
2010-08-26s3-build: only include krb5 environment variables where required.Günther Deschner1-0/+1
Guenther
2010-08-05s3-secrets: only include secrets.h when needed.Günther Deschner1-0/+1
Guenther
2010-01-24s3: add libnetapi_set_use_ccache()Volker Lendecke1-0/+6
2009-07-15Remove gencache_init/shutdownVolker Lendecke1-1/+0
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've been very lazy calling gencache_shutdown, so this seems not really required.
2009-06-29Fix bug 6514: net gives unhelpful "lp_load failed" when it's missing smb.confDavid Markey1-1/+1
2008-08-11netapi: add NetApiBufferAllocate.Günther Deschner1-0/+27
Guenther (This used to be commit 99cc8f023b4ad9210b677e11371f404048752031)
2008-07-18netapi: add libnetapi_samr_free().Günther Deschner1-0/+2
Guenther (This used to be commit 3228088a0954ac25584d06a681f4e0615dee425c)
2008-07-18netapi: add libnetapi_private_ctx and init function.Günther Deschner1-0/+28
Guenther (This used to be commit 45fff2d37ae21c76d100f66d9154f6add446f380)
2008-06-17netapi: Fix Bug #5545 (libnetapi_init without $USER)Günther Deschner1-2/+6
Based on patch from Erik van Pienbroek. Guenther (This used to be commit 71f4cf773022525ba617f09c495dbff97f8eb2d5)
2008-04-17libnetapi: Disable talloc_enable_leak_report.Günther Deschner1-1/+1
Guenther (This used to be commit 4ba98dd0cc13984a8dc54e4d4935487fc8938039)
2008-04-16libnetapi: do not overwrite status in libnetapi_get_error_string().Günther Deschner1-2/+3
Guenther (This used to be commit 143e2b573043dd04a6404fc91d781e8a727bd092)
2008-04-13libnetapi: add libnetapi_set_use_kerberosGünther Deschner1-0/+9
Don't unconditionally set the kerberos flag for authentication. Guenther (This used to be commit 15bef5ae413adf278cccc0e547c4b8ccd180eca2)
2008-04-13libnetapi: don't to try to free NULL struct.Günther Deschner1-0/+4
Guenther (This used to be commit eb33d30d80ab2fe770e248f5b2a70a83a43dd156)
2008-04-12libnetapi: fix interactive logging by preventing setup_logging from closing ↵Michael Adam1-0/+3
stderr. Michael (This used to be commit 563b837b76e3a6086051fc56e0522b841939d37f)
2008-04-10Use libnetapi_open_ipc_connection in libnetapi.Günther Deschner1-0/+2
Guenther (This used to be commit d9f19fc61586d606393368799dee9757c169d602)
2008-04-08Prefill in username in libnetapi ctx.Günther Deschner1-1/+9
Guenther (This used to be commit 394bdb89ef350db0ab6aca093054e1048a8ffe1f)
2008-03-06In libnetapi, point out that lp_load has failed.Günther Deschner1-0/+1
Guenther (This used to be commit be673bfc61559f661040c6fb1ba7d2e4552967f2)
2008-02-28Only set DEBUGLEVEL to 0 in libnetapi when not set already.Günther Deschner1-1/+3
Guenther (This used to be commit 3ace1601ac5b5d87d6bfd8aa0afe0c75858b6990)
2008-01-25No need to close registry on libnetapi_free() anymore.Günther Deschner1-1/+0
Guenther (This used to be commit 6bf75652ef07f5a534cef5034b7aad4fdcbcd265)
2008-01-18Improve libnetapi_set_error_string().Günther Deschner1-3/+8
Guenther (This used to be commit 96f645553ae5c75aabfe588e1a67f3d4bfacb5cb)
2008-01-11Refactor libnetapi error string functions a bit.Günther Deschner1-4/+17
Guenther (This used to be commit 3b450a8bcc97b6d03c4b7b9373a3a382c0fcea30)
2008-01-08Add NetApiBufferFree() to libnetapi.Günther Deschner1-0/+14
Guenther (This used to be commit c49196954d38f0c2851abbfe25086cd6fe660a2e)
2008-01-08Fix crash bug when strequal is used too late in libnetapi_free.Günther Deschner1-5/+8
Guenther (This used to be commit ba2b8a310e1d6f78116350e24c17ae4db08b9bed)
2008-01-07Enable talloc reporting in libnetapi if DEVELOPER compiled.Günther Deschner1-0/+3
Guenther (This used to be commit 01e9151546a83e0c772a144efa85437ca0c8a307)
2008-01-07Add libnetapi_set_error_string and libnetapi_get_error_string.Günther Deschner1-2/+25
Guenther (This used to be commit f8806bad8134d544229c426f58bee143ba752cf8)
2008-01-07Let libnetapi use it's own krb5 cred cache in memory if necessary.Günther Deschner1-0/+33
Guenther (This used to be commit 863fb30038e384585502f0154a742481594b99d0)
2008-01-07Close registry in libnetapi_free().Günther Deschner1-0/+1
Guenther (This used to be commit e7258a4408e40686ff090d0f8e120ce78acbd097)
2008-01-07Add NET_API_STATUS_SUCCESS define.Günther Deschner1-9/+9
Guenther (This used to be commit a72ad63163a8c642ea762087a739e6d63c37647a)
2008-01-07Fix two memleaks in libnetapi.Günther Deschner1-1/+4
Guenther (This used to be commit d73bde99e8518607bb78b5625ce5fb1991d8e402)
2007-12-21Make libnetapi_errstr use our NTSTATUS and WERROR error string macros.Günther Deschner1-46/+3
Guenther (This used to be commit e46aa35d432e930835206b9ce7583f46933015d8)
2007-12-21Add error string for access denied in libnetapi.Günther Deschner1-0/+3
Guenther (This used to be commit 4df868e3c366958c64ed8445489c8d1e8a28e50b)
2007-12-21Add libnetapi_errstr().Günther Deschner1-0/+50
Guenther (This used to be commit 465e61a3599a277366ada6ecda3a1e6ddb1f2490)
2007-12-21Add static libnetapi_ctx.Günther Deschner1-3/+25
Guenther (This used to be commit 97449ea341539a709953a57869570cf13be0f44e)
2007-12-21Use full string based debug_parse_levels in libnetapi.Günther Deschner1-3/+22
Guenther (This used to be commit 78d8f0e41aa3db0060596a7b345c2f04261986e0)
2007-12-21Add basic credential functions for libnetapi.Günther Deschner1-0/+33
Guenther (This used to be commit 7c38f706b5dc17f15708ac932c84d863a0cc713e)