summaryrefslogtreecommitdiff
path: root/source3/rpc_server
AgeCommit message (Collapse)AuthorFilesLines
2019-03-18rpc_server: Give mdssd its header fileVolker Lendecke2-0/+32
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-03-18rpc_server: Give fssd its header fileVolker Lendecke2-0/+32
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-03-18rpc_server: Give lsasd its header fileVolker Lendecke2-3/+32
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-03-18rpc_server: Give epmd its header fileVolker Lendecke2-3/+32
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-02-22s3:rpc_server: Remove unused arcfour.h from netlogonAndreas Schneider1-1/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-02-11s3:srv_samr_chgpasswd: export SAMBA_CPS_{ACCOUNT,USER_PRINCIPAL,FULL}_NAME ↵Stefan Metzmacher3-1/+25
for check password script This is keep compatibility with the AD DC usage. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-02-08build: Get rid of hardcoded 'bin/default' in includesAliaksei Karaliou1-2/+2
Removed occurrences of bin/default used in #include directive for auto-generated headers residing in build directory. Build system is capable of resolving path to such headers by itself without extra hardcoded path to build directory. Signed-off-by: Aliaksei Karaliou <akaraliou@panasas.com> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: David Mulder <dmulder@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org>
2018-12-20samr: Use dom_sid_str_bufVolker Lendecke1-48/+91
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2018-12-20lsasrv: Use dom_sid_str_bufVolker Lendecke1-4/+9
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2018-12-20spoolss: Use dom_sid_str_bufVolker Lendecke1-4/+9
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2018-12-20wkssvc: Use dom_sid_str_bufVolker Lendecke1-5/+13
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2018-12-11rpc_server3: Use dom_sid_str_bufVolker Lendecke2-3/+6
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-11-28s3:rpc_server: Use #ifdef instead of #if for config.h definitionsAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2018-11-27s3:smbd: add twrp args to filename_convert()Ralph Boehme1-0/+2
All existing callers pass NULL, no change in behaviour. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13455 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-10-19lib: Remove gencache.h from proto.hVolker Lendecke1-0/+1
It's a pain to recompile the world if gencache.h changes Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Oct 19 18:52:50 CEST 2018 on sn-devel-144
2018-10-11auth: move copy_session_info() from source3 into the global auth contextBjörn Baumbach1-0/+1
Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Volker Lendecke <vl@samba.org>
2018-09-14mdssvc: Move a variable declaration closer to its useVolker Lendecke1-3/+4
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Sep 14 10:48:47 CEST 2018 on sn-devel-144
2018-09-14mdssvc: Move a variable declaration closer to its useVolker Lendecke1-1/+2
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-09-14mdssvc: Move a variable declaration closer to its useVolker Lendecke1-2/+5
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-09-14mdssvc: Simplify sl_unpack_loopVolker Lendecke1-3/+4
Move a variable declaration closer to its use, avoid a redundant ?true:false; Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-09-07s3: Rename server_messaging_context() to global_messaging_context()Christof Schmitt3-4/+4
This reflects that the messaging context is also used outside of the server processes. The command used for the rename: find . -name '*.[hc]' -print0 | xargs -0 sed -i 's/server_messaging_context/global_messaging_context/' Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-09-07s3: Rename server_event_context() to global_event_context()Christof Schmitt4-15/+15
This reflects that the event context is also used outside of the server processes. The command used for the rename: find . -name '*.[hc]' -print0 | xargs -0 sed -i 's/server_event_context/global_event_context/' Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-08-17lib: Pass mem_ctx to lock_path()Volker Lendecke1-1/+1
Fix a confusing API: Many places TALLOC_FREE the path where it's not clear you have to do it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2018-07-26smbd: Pass "share_mode_data" to share_entry_forall callbackVolker Lendecke1-30/+28
Quite a bit of the contents have been passed explicitly anyway. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-07-10s3/rpc_server: Character Encode Spotlight QueriesRalph Boehme1-3/+13
Fix path escaping in Spotlight so paths with spaces or special characters can be properly matched to tracker paths. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12688 Based-on-a-patch-from: Mike M Pestorich <mmpestorich@gmail.com> (similar to github.com/netatalk/netatalk/commit/90aa43d) Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jul 10 23:17:20 CEST 2018 on sn-devel-144
2018-06-14s3:rpc_server/srvsvc: _srvsvc_NetSetFileSecurity form_junctions() to use ↵Stefan Metzmacher1-16/+7
create_conn_struct_tos_cwd() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-06-14s3:rpc_server/srvsvc: _srvsvc_NetGetFileSecurity() to use ↵Stefan Metzmacher1-16/+7
create_conn_struct_tos_cwd() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-06-14s3:rpc_server/srvsvc: add an explicit talloc_stackframe() to ↵Stefan Metzmacher1-7/+6
_srvsvc_NetSetFileSecurity() This makes further changes simpler. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-06-14s3:rpc_server/srvsvc: add an explicit talloc_stackframe() to ↵Stefan Metzmacher1-7/+6
_srvsvc_NetGetFileSecurity() This makes further changes simpler. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-06-14s3:rpc_server/fss: make use of create_conn_struct_tos()Stefan Metzmacher1-52/+20
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-06-14s3:rpc_server/fss: use talloc_stackframe() for temporary memoryStefan Metzmacher1-93/+68
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-06-14printing: remove unused arguments from delete_and_reload_printers()Stefan Metzmacher2-3/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-05-12Fix spelling s/receving/receiving/Mathieu Parent2-6/+6
Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2018-05-12Fix spelling s/openened/opened/Mathieu Parent1-1/+1
Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2018-04-11rpc_server: Init local_server_* in make_internal_rpc_pipe_socketpairVolker Lendecke3-24/+43
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13370 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Apr 11 15:19:19 CEST 2018 on sn-devel-144
2018-04-11libsmb: Give dsgetdcname.c its own headerVolker Lendecke1-0/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-04-11libsmb: Give namequery.c its own headerVolker Lendecke1-0/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-04-06source3: initilize_password_db after a fork.Gary Lockyer1-0/+3
This is required because we need a new pointer for LDB after the fork, and with LMDB we can not longer rely on tdb_reopen_all() to do that for us. This can not be done in reinit_after_fork() due to the dependency loop this would create. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-04-03s3:spoolss: Fix size typesAndreas Schneider1-1/+1
This fixes compilation with -Wstrict-overflow=2. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-03-20s3:rpc_server: Fix size types in spoolssAndreas Schneider1-4/+4
This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-03-20s3:rpc_server: Fix size types in srvsvcAndreas Schneider1-4/+4
This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-03-19Revert "Use "localhost" to be ipv6 only friendly"Simo Sorce3-4/+4
This reverts commit 54548f6dde3cf74f0e90ef577a55fd720dca6d93.
2018-03-19Use "localhost" to be ipv6 only friendlySimo Sorce3-4/+4
Signed-off-by: Simo Sorce <idra@samba.org>
2018-03-15s3:rpc_server: make use of make_session_info_anonymous()Stefan Metzmacher1-6/+3
For unauthenticated connections we should default to a session info with an anonymous nt token. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13328 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-03-13CVE-2018-1050: s3: RPC: spoolss server. Protect against null pointer derefs.Jeremy Allison1-0/+13
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11343 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Mar 13 16:06:10 CET 2018 on sn-devel-144
2018-03-01s3:spoolss: Remove incorrect fall through comment in srv_spoolss_nt.cAndreas Schneider1-1/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-03-01s3:lsa: Add FALL_THROUGH statements in srv_lsa_nt.cAndreas Schneider1-2/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-03-01s3:rpc_server: Add FALL_THROUGH statements in rpc_server.cAndreas Schneider1-1/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-02-13srvsvc: Avoid a dependency on share_mode_entry->idVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-02-13smbd: Pass "file_id" explicitly into share_mode_entry_to_message()Volker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>