1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

31 Commits

Author SHA1 Message Date
Noel Power
a3b9986fac s3/lib/netapi: clang: Fix 'Value stored during initialization is never read'
Fixes:

source3/lib/netapi/getdc.c:173:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
        NTSTATUS status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
                 ^~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-09-26 18:41:27 +00:00
Volker Lendecke
1643c334db libsmb: Give dsgetdcname.c its own header
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2018-04-11 01:06:39 +02:00
Günther Deschner
db1c5d721b werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/lib/netapi/
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:18 +02:00
Günther Deschner
fa37bbd9d0 s3-libnetapi: pass down ndr_interface_table to libnetapi_get_binding_handle().
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-08-05 10:29:59 +02:00
Günther Deschner
81435bf26b s3-netapi: use NetApiBufferAllocate() for returned buffer in getdc calls.
Guenther
2011-10-21 11:07:25 +02:00
Günther Deschner
3acd6bde58 s3-netapi: use libnetapi_get_binding_handle().
Guenther
2011-04-12 12:20:43 +02:00
Günther Deschner
425753ebe3 s3-libnetapi: prefer dcerpc_netr_X functions.
Guenther

Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:21:08 +01:00
Volker Lendecke
13756d0e80 s3: Attempt to fix bug 7665
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.
2010-10-02 12:02:02 +02:00
Günther Deschner
ffdfcfb514 s3-dsgetdcname: always pass in messaging context.
Volker, please check.

Guenther
2010-09-23 10:26:25 -07:00
Günther Deschner
bbdbb0cbcc s3-libnetapi: try using netr_DsRGetDCNameEx() in DsGetDcName().
Guenther
2010-09-15 10:16:01 +02:00
Günther Deschner
0f8e032628 s3-netlogon: remove global include of netlogon.h.
This reduces precompiled headers by another 4 MB and also slightly speeds up the
build.

Guenther
2010-08-06 15:46:16 +02:00
Günther Deschner
c6ebab846d s3: only include gen_ndr headers where needed.
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:

ccache build w/o patch
real    4m21.529s
ccache build with patch
real    3m6.402s

pch build w/o patch
real    4m26.318s
pch build with patch
real    3m6.932s

Guenther
2010-05-06 00:22:59 +02:00
Günther Deschner
3d679a3b5f s3-rpc: Avoid including every pipe's client and server stubs everywhere in samba.
Guenther
2009-11-26 20:03:17 +01:00
Volker Lendecke
6a650d7d16 Revert "s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_table"
This reverts commit 5fc9d93408effe75abcd231c45cbc14656692ebe.
2009-11-08 19:43:46 +01:00
Volker Lendecke
5fc9d93408 s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_table 2009-11-08 13:12:16 +01:00
Volker Lendecke
a9542ddcb7 libnetapi_open_pipe does not need to return cli_state
The user session key is also available in rpccli->auth->user_session_key

Guenther, please check!

Thanks,

Volker
2009-01-18 20:10:06 +01:00
Volker Lendecke
8670235f2a Fix some missing error handlings 2008-10-05 14:02:34 +02:00
Günther Deschner
fcd10d26a4 netapi: make libnetapi_open_ipc_connection static.
Guenther
(cherry picked from commit 0259914f8ff04514a8395d8e1af61aadd50c5efb)
(This used to be commit 7edc671cc1007ae216e7efdbcdb9cfa1e547dca5)
2008-08-14 12:22:11 +02:00
Günther Deschner
87b9c9ade2 netapi: make non-implemented local calls default to remote "localhost" calls.
Guenther
(cherry picked from commit aa70e588803e3767796dc958b139f4ee464d8626)
(This used to be commit 9927ac6eec9fe1fecfedb97b61c4f93379fc8722)
2008-08-14 12:22:02 +02:00
Volker Lendecke
798b56edae Refactoring: libnetapi_open_pipe takes an interface instead of pipe_idx
(This used to be commit 726e56c72fdb685ab5eddefd2fd8b043dc38d6ad)
2008-07-21 14:36:27 +02:00
Günther Deschner
67c644aa59 dsgetdcname: use existing messaging_context if possible.
Guenther
(This used to be commit 7889516a384c155a9045aad4409c041fddd0d98d)
2008-05-09 14:59:20 +02:00
Günther Deschner
ef6ed54765 Use libnetapi_open_pipe in netapi functions.
Guenther
(This used to be commit 5804d8b112e1da022988c635284eb4799974d4c7)
2008-04-10 22:44:00 +02:00
Günther Deschner
aeb7f7db40 Use libnetapi_open_ipc_connection in libnetapi.
Guenther
(This used to be commit d9f19fc61586d606393368799dee9757c169d602)
2008-04-10 22:04:04 +02:00
Günther Deschner
8ab9696bfb Split out private headers in libnetapi.
Guenther
(This used to be commit dd6251d51472a96bfc5ba3d62ea788c8924d4c6b)
2008-04-10 21:52:03 +02:00
Günther Deschner
af19343df8 Try to use kerberos in libnetapi.
Guenther
(This used to be commit 9cfce2229508c2145c3527074ac76520544e5d25)
2008-04-08 19:42:26 +02:00
Günther Deschner
05202a5d4e Add DsGetDcName call to libnetapi library.
Guenther
(This used to be commit 27780e984152e38c8f80e1c67ddf13b73a2b220d)
2008-04-08 19:40:47 +02:00
Günther Deschner
ba35a8c8dd Restructure inner workings of libnetapi a bit.
Guenther
(This used to be commit a4e3bc2bade8bf74696e1c6ced74da563ff2df7b)
2008-04-08 03:08:49 +02:00
Günther Deschner
2e0a1fcf3f Re-run make idl.
Guenther
(This used to be commit b658270518140c457536b0c7db06a646d7077529)
2008-01-31 14:10:22 +01:00
Günther Deschner
b1424846c6 Cosmetics and error string reporting for libnetapi.
Guenther
(This used to be commit 4ca33928512bd71268bafd41d2b608e814a7295f)
2008-01-18 02:55:10 +01:00
Günther Deschner
d1abd4d866 Use new pidl-generated netlogon client calls in NetApi GetDcName().
Guenther
(This used to be commit 733e07a06ce3c903ff5837df6a5119f6d6e3eccb)
2008-01-17 16:54:46 +01:00
Günther Deschner
eddd190921 Add basic remote NetGetDCName and NetGetAnyDCName versions to libnetapi.
Guenther
(This used to be commit 5bc49546a32abb4524133b9f2916cdd51d4eb462)
2007-12-21 15:51:00 +01:00