From: Günther Deschner Date: Thu, 12 Sep 2019 21:27:13 +0000 (+0200) Subject: misc: fix AD trust attributes in adssearch X-Git-Tag: talloc-2.3.1~759 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7e49897c4ad84a5d7710ac78a09802fe66f9d16;p=thirdparty%2Fsamba.git misc: fix AD trust attributes in adssearch Guenther Signed-off-by: Guenther Deschner Reviewed-by: Stefan Metzmacher --- diff --git a/examples/misc/adssearch.pl b/examples/misc/adssearch.pl index 7c3570abd6e..fc24811b626 100755 --- a/examples/misc/adssearch.pl +++ b/examples/misc/adssearch.pl @@ -285,10 +285,17 @@ my %ads_sdeffective = ( ); my %ads_trustattrs = ( - "TRUST_ATTRIBUTE_NON_TRANSITIVE" => 1, - "TRUST_ATTRIBUTE_TREE_PARENT" => 2, - "TRUST_ATTRIBUTE_TREE_ROOT" => 3, - "TRUST_ATTRIBUTE_UPLEVEL_ONLY" => 4, + "TRUST_ATTRIBUTE_NON_TRANSITIVE" => 0x00000001, + "TRUST_ATTRIBUTE_UPLEVEL_ONLY" => 0x00000002, + "TRUST_ATTRIBUTE_QUARANTINED_DOMAIN" => 0x00000004, + "TRUST_ATTRIBUTE_FOREST_TRANSITIVE" => 0x00000008, + "TRUST_ATTRIBUTE_CROSS_ORGANIZATION" => 0x00000010, + "TRUST_ATTRIBUTE_WITHIN_FOREST" => 0x00000020, + "TRUST_ATTRIBUTE_TREAT_AS_EXTERNAL" => 0x00000040, + "TRUST_ATTRIBUTE_USES_RC4_ENCRYPTION" => 0x00000080, + "TRUST_ATTRIBUTE_CROSS_ORGANIZATION_NO_TGT_DELEGATION" => 0x00000200, + "TRUST_ATTRIBUTE_PIM_TRUST" => 0x00000400, + "TRUST_ATTRIBUTE_CROSS_ORGANIZATION_ENABLE_TGT_DELEGATION" => 0x00000800, ); my %ads_trustdirection = ( @@ -1283,7 +1290,7 @@ sub dump_sdeffective { } sub dump_trustattr { - return dump_bitmask_equal(@_,%ads_trustattrs); + return dump_bitmask_and(@_,%ads_trustattrs); } sub dump_trusttype {