summaryrefslogtreecommitdiff
path: root/libcli/lsarpc
AgeCommit message (Collapse)AuthorFilesLines
2025-04-03libcli/security: split trust_forest_info_* functions into samba-security-trustsStefan Metzmacher2-982/+0
This will avoid dependency loops in following commits. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: add trust_forest_info_match_tln_namespace()Stefan Metzmacher2-0/+23
This will be used by the namespace filtering part of sid filtering... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: let trust_forest_info_from_lsa2() handle BINARY and SCANNER ↵Stefan Metzmacher1-1/+68
records The tricky part is that we also need to upgrade LSA_FOREST_TRUST_BINARY_DATA records into FOREST_TRUST_SCANNER_INFO records. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: add trust_forest_info_lsa_2to2()Stefan Metzmacher2-0/+31
This normalizes LSA_FOREST_TRUST_BINARY_DATA in LSA_FOREST_TRUST_SCANNER_INFO. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: let trust_forest_{record_lsa_2to1,info_to_lsa}() handle ↵Stefan Metzmacher1-2/+33
SCANNER_INFO We need to convert the [LSA_]FOREST_TRUST_SCANNER_INFO record into a binary record, but with LSA_FOREST_TRUST_SCANNER_INFO as type. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: let trust_forest_{record_lsa_1to2,info_from_lsa}() handle ↵Stefan Metzmacher1-8/+126
BINARY and SCANNER records The tricky part is that it's all based on the sub_type within the binary data, if it's FOREST_TRUST_SCANNER_INFO the record is upgraded to an LSA_FOREST_TRUST_SCANNER_INFO, otherwise it's downgraded to a LSA_FOREST_TRUST_BINARY_DATA record. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: let trust_forest_record_to_lsa() handle BINARY and SCANNER ↵Stefan Metzmacher1-2/+45
records Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: let trust_forest_record_from_lsa() handle BINARY and SCANNER ↵Stefan Metzmacher1-2/+43
records Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22s4:dsdb/util_trusts: convert most functions from lsa_ForestTrustInformation ↵Stefan Metzmacher2-6/+6
to lsa_ForestTrustInformation2 We use trust_forest_info_lsa_{1to2,2to1}() where needed. This will make it possible to support FOREST_TRUST_BINARY_DATA and FOREST_TRUST_SCANNER_INFO later. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: add trust_forest_info_lsa_{1to2,2to1}()Stefan Metzmacher2-0/+62
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: add trust_forest_info_{from,to}_lsa2()Stefan Metzmacher2-0/+101
Note for now these will fail for FOREST_TRUST_BINARY_DATA and FOREST_TRUST_SCANNER_INFO. But this will still make the transition from lsa_ForestTrustInformation to lsa_ForestTrustInformation2 easier. Support for will FOREST_TRUST_BINARY_DATA and FOREST_TRUST_SCANNER_INFO will be added before we implement the forest trust background scanner job and the lsaRSetForestTrustInformation2 function. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: change trust_forest_record_to_lsa to lsa_ForestTrustRecord2Stefan Metzmacher1-2/+58
lsa_ForestTrustRecord2 is needed to represent all possible ForestTrustInfoRecord types including SCANNER_INFO in future. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: change trust_forest_record_from_lsa to lsa_ForestTrustRecord2Stefan Metzmacher1-2/+64
lsa_ForestTrustRecord2 is needed to represent all possible ForestTrustInfoRecord types including SCANNER_INFO in future. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: don't allocate in trust_forest_record_to_lsa()Stefan Metzmacher1-23/+14
It will help with the following changes to allocate lsa_ForestTrustRecord in the caller. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: change logic in trust_forest_record_to_lsa() to avoid default:Stefan Metzmacher1-12/+21
We should let the compiler warn us if a enum type is missing. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: split out trust_forest_record_from_lsaStefan Metzmacher1-67/+83
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: add trust_forest_info_tln[_ex]_match()Stefan Metzmacher2-0/+92
These are copies of dsdb_trust_find_tln[_ex]_match() in source4/dsdb/common/util_trusts.c, which gets replaced in the next commits. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: fix talloc hierarchy in trust_forest_info_from_lsa()Stefan Metzmacher1-5/+5
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: fix talloc hierarchy in trust_forest_record_to_lsa()Stefan Metzmacher1-4/+4
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: add trust_forest_info_{from,to}_lsa()Stefan Metzmacher3-1/+240
They will replace the dsdb_trust_forest_info_{from,to}_lsa() functions. They are just copied over. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-02-22libcli/lsarpc: add missing forward declarations for ↵Stefan Metzmacher1-0/+2
lsa_TrustDomainInfo{AuthInfo,Buffer} Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2014-04-02libcli/lsarpc: add struct trustAuthInOutBlob; forward declarationStefan Metzmacher1-0/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2012-02-17auth: Move the rest of the source4 gensec_ntlmssp code to the top levelAndrew Bartlett1-1/+1
The ntlmssp_server code will be in common shortly, and aside from a symbol name or two, moving the client code causes no harm and makes less mess. We will also get the client code in common very soon. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-12libcli: Remove an unused variableVolker Lendecke1-1/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Dec 12 23:21:49 CET 2011 on sn-devel-104
2011-12-12s4-lsarpc handle more info levels in SetInfoTrustedDomain callsAndrew Bartlett3-0/+402
This uses the very helpful conversion functions written for the s3 lsa server and places these in common. Andrew Bartlett