diff options
author | Günther Deschner <gd@samba.org> | 2019-09-12 23:27:13 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2019-09-20 01:14:42 +0000 |
commit | a7e49897c4ad84a5d7710ac78a09802fe66f9d16 (patch) | |
tree | 54fc89bffff3f66809584fbbd5ff65a3db02eaa0 /examples | |
parent | 7ba90c17343cc9921e1d44a5055d39602dbb6ba1 (diff) | |
download | samba-a7e49897c4ad84a5d7710ac78a09802fe66f9d16.tar.gz |
misc: fix AD trust attributes in adssearch
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/misc/adssearch.pl | 17 |
1 files changed, 12 insertions, 5 deletions
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 { |