Win32::SDDL - Parser for the Windows Security Descriptor Definition Language (SDDL)
version 0.07
use Win32::SDDL; my $sddl = Win32::SDDL->new( 'service' ); $sddl->Import( 'D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPLOCRRC;;;PU)' ); foreach my $mask( @{$sddl->{ACL}} ){ $trustees{ $mask->{Trustee} } = 1; } my @trustees = sort keys %trustees; print scalar( @{$sddl->{ACL}} )." entries found.\n";
This module was created to aid in interpreting SDDL strings commonly used in Windows to represent access control lists. SDDL stands for Security Descriptor Definition Language. Because SDDL uses many predefined constants, it can be difficult to read. This module provides an object-oriented interface for converting and using the information in SDDL strings.
NOTE: For resources relating to SDDL, see the SEE ALSO section of this document.
Example:
my $sddl = Win32::SDDL->new( 'service' );
Creates a new Win32::SDDL object. Optionally, an object type can be provided. The only optional type supported at present is 'service'. This will change the value of certain constants as they have a different meaning for services than they do for files, registry keys, or other objects.
my $sddl_string = 'D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPLOCRRC;;;PU)'; $sddl->Import( $sddl_string ) or die( "Error! Unable to import '$sddl_string'!\n" );
All Win32::SDDL objects have the following properties:
The currently loaded SDDL string
The type of SDDL string (changes the description of some constants).
An array of Win32::SDDL::ACE objects.
Each object has the following properties:
An array of flags translated into English.
An array of permissions translated into English.
The type of ACE (SYSTEM_AUDIT,ACCESS_ALLOW, or ACCESS_DENY).
A GUID representing the object type for the ACE (usually empty).
A GUID representing the parent object type if it exists.
The Trustee name.
As originally written, the module uses WMI to translate SIDs to account names. The intention is to allow support for arbitrary translators, with the following to be provided by this module: WMI, native API call, LDAP, Offline.
Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/Public/Dist/Display.html?Name=Win32-SDDL or by email to bug-win32-sddl at rt.cpan.org.
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
You can find documentation for this module with the perldoc command.
perldoc Win32::SDDL
The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.
MetaCPAN
A modern, open-source CPAN search engine, useful to view POD in HTML format.
http://metacpan.org/release/Win32-SDDL
Search CPAN
The default CPAN search engine, useful to view POD in HTML format.
http://search.cpan.org/dist/Win32-SDDL
RT: CPAN's Bug Tracker
The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
https://rt.cpan.org/Public/Dist/Display.html?Name=Win32-SDDL
CPAN Testers Matrix
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
http://matrix.cpantesters.org/?dist=Win32-SDDL
CPAN Testers Dependencies
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
http://deps.cpantesters.org/?module=Win32::SDDL
Please report any bugs or feature requests by email to bug-win32-sddl at rt.cpan.org, or through the web interface at https://rt.cpan.org/Public/Bug/Report.html?Queue=Win32-SDDL. You will be automatically notified of any progress on the request by the system.
bug-win32-sddl at rt.cpan.org
The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)
https://github.com/richardleach/Win32-SDDL
git clone https://github.com/richardleach/Win32-SDDL.git
Please see those modules/websites for more information related to this module.
http://windowssdk.msdn.microsoft.com/en-us/library/ms723280.aspx
Tim Johnson, Richard Leach
This software is copyright (c) 2016 by Richard Leach. This software is copyright (c) 2006 by Tim Johnson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Win32::SDDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::SDDL
CPAN shell
perl -MCPAN -e shell install Win32::SDDL
For more information on module installation, please visit the detailed CPAN module installation guide.