NAME

X500::DN::Marpa::Actions - Methods triggered by 'action' clauses in the grammar

Synopsis

See "Synopsis" in X500::DN::Marpa.

Description

X500::DN::Marpa::Action provides a wrapper for actions which are called by Marpa as it processes the grammar declared in X500::DN::Marpa.

End users will never call methods in this module.

See instead "Description" in X500::DN::Marpa.

Distributions

This module is available as a Unix-style distro (*.tgz).

See http://savage.net.au/Perl-modules/html/installing-a-module.html for help on unpacking and installing distros.

Installation

Install X500::DN::Marpa as you would any Perl module:

Run:

cpanm X500::DN::Marpa

or run:

sudo cpan X500::DN::Marpa

or unpack the distro, and then either:

perl Build.PL
./Build
./Build test
sudo ./Build install

or:

perl Makefile.PL
make (or dmake or nmake)
make test
make install

Methods

attribute_type($t)

For a DN such as 'UID=12345, OU=Engineering, CN=Kurt Zeilenga+L=Redwood Shores', returns the lower-case version of the attribute type, e.g. 'uid'.

Where the type is a standard long form, e.g. 'OrganizationalUnitName', returns the corresponding abbreviation, here 'ou'.

attribute_value($t)

For a DN such as 'UID=12345, OU=Engineering, CN=Kurt Zeilenga+L=Redwood Shores', returns the original-case version of the attribute value, e.g. 'Engineering'.

Functions

decode_result($result)

Returns a string.

Processes the $result passed by Marpa to both "attribute_type($t)" and "attribute_value($t)", which will be a structure of arbitrarily nested scalars, hashrefs and arrayrefs.

Machine-Readable Change Log

The file Changes was converted into Changelog.ini by Module::Metadata::Changes.

Version Numbers

Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions.

Repository

https://github.com/ronsavage/X500-DN-Marpa

Support

Email the author, or log a bug on RT:

https://rt.cpan.org/Public/Dist/Display.html?Name=X500::DN::Marpa.

Author

X500::DN::Marpa was written by Ron Savage <ron@savage.net.au> in 2015.

Marpa's homepage: http://savage.net.au/Marpa.html.

My homepage: http://savage.net.au/.

Copyright

Australian copyright (c) 2015, Ron Savage.

All Programs of mine are 'OSI Certified Open Source Software';
you can redistribute them and/or modify them under the terms of
The Artistic License 2.0, a copy of which is available at:
http://opensource.org/licenses/alphabetical.