1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/rpc_server/mdssvc
Alexander Bokovoy c7a4578d06 s3: pass DCE RPC handle type to create_policy_hnd
Various RPC services expect policy handles of a specific type.

s3 RPC server did not allow to create policy handles with a specific
type while actually requiring that policy handle type itself in some
places.

Make sure we are able to specify the policy on-wire handle type when
creating the policy handle. The changes follow s4 DCE RPC server
implementation.

The original logic to always set on-wire handle type to 0 can be tracked
down to commit fdeea341ed when we didn't
really know about differences in on-wire handle types.

All but LSA trusted domain RPC calls do not check the on-wire handle
type in s3 RPC server.

Fixes trusted domain operations when Samba RPC client attempts to call
s3 RPC server to perform lsa_lsaRSetForestTrustInformation in FreeIPA.
This fix is a pre-requisite for FreeIPA-FreeIPA forest trust.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Apr 28 22:55:29 UTC 2020 on sn-devel-184
2020-04-28 22:55:29 +00:00
..
dalloc.c mdssvc: Fix the clang build 2019-08-09 07:34:04 +00:00
dalloc.h s3:mdssvc: mds_dalloc_dump() -> dalloc_dump() 2019-08-08 20:24:31 +00:00
elasticsearch_mappings.json s3:mdssvc: add Elasticsearch backend 2019-10-09 14:35:29 +00:00
es_lexer.l s3:mdssvc: add Elasticsearch backend 2019-10-09 14:35:29 +00:00
es_mapping.c s3:mdssvc: add Elasticsearch backend 2019-10-09 14:35:29 +00:00
es_mapping.h s3:mdssvc: add Elasticsearch backend 2019-10-09 14:35:29 +00:00
es_parser_test.c s3:mdssvc: make use of lp_parm_const_string() 2019-11-27 10:25:31 +00:00
es_parser.y s3:mdssvc: add Elasticsearch backend 2019-10-09 14:35:29 +00:00
marshalling.c s3:mdssvc: fix unmarshalling of empty CNID array 2019-08-08 20:24:32 +00:00
marshalling.h s3-mdssvc: (un)marshalling Spotlight RPC blob 2015-07-07 17:34:28 +02:00
mdssvc_es.c s3:mdssvc: make use of lp_parm_const_string() 2019-11-27 10:25:31 +00:00
mdssvc_es.h s3:mdssvc: add Elasticsearch backend 2019-10-09 14:35:29 +00:00
mdssvc_noindex.c s3:mdssvc: add noindex backend 2019-08-08 20:24:32 +00:00
mdssvc_noindex.h s3:mdssvc: add noindex backend 2019-08-08 20:24:32 +00:00
mdssvc_tracker.c s3-mdssvc: factor out Tracker backend logic 2019-08-08 20:24:31 +00:00
mdssvc_tracker.h s3-mdssvc: factor out Tracker backend logic 2019-08-08 20:24:31 +00:00
mdssvc.c s3:mdssvc: add Elasticsearch backend 2019-10-09 14:35:29 +00:00
mdssvc.h s3:mdssvc: remove unused snum from struct sl_query 2019-10-09 14:35:28 +00:00
README s3-mdssvc: lexer and parser for Spotlight queries 2015-07-07 17:34:28 +02:00
sparql_lexer.l s3:mdssvc: fix flex compilation error 2019-05-28 11:49:06 +00:00
sparql_mapping.c s3/rpc_server/mdssvc: add attribute "kMDItemContentType" 2017-02-15 06:20:52 +01:00
sparql_mapping.h s3-mdssvc: Spotlight attribute mappings 2015-07-07 17:34:28 +02:00
sparql_parser_test.c s3-mdssvc: factor out Tracker backend logic 2019-08-08 20:24:31 +00:00
sparql_parser.y s3-mdssvc: factor out Tracker backend logic 2019-08-08 20:24:31 +00:00
srv_mdssvc_nt.c s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
srv_mdssvc_nt.h s3-mdssvc: main Spotlight code 2015-07-07 17:34:28 +02:00
test_mdsparser_es.c s3:mdssvc: add unit tests for the Spotlight to Elasticsearch parser 2019-10-09 14:35:29 +00:00

Introduction:
=============
This directory contains source code for the metadata search service
aka Spotlight.

Bison and flex:
===============
Not yet integrated into the waf buildsystem, run these by hand:

$ bison -d -o sparql_parser.c sparql_parser.y
$ flex -o sparql_lexer.c sparql_lexer.l

or use the bundled Makefile.