X500::DN - handle X.500 DNs, parse and format them


NAME

X500::DN - handle X.500 DNs (Distinguished Names), parse and format them


SYNOPSIS

  use X500::DN;
  my $dn = X500::DN->ParseRFC2253 ('cn=John Doe, o=Acme\\, Inc., c=US') or die;
  print $dn->getRFC2253String(), "\n";
  $dn = new X500::DN (new X500::RDN ('c'=>'US'), new X500::RDN ('cn'=>'John Doe'));
  my $rdn0 = $dn->getRDN (0);
  my $c = $rdn0->getAttributeValue ('c');


NOTE

The RFC 2253 syntax is explicitely backwards in relation to the ASN.1 SEQUENCE.

So the RFC 2253 string cn=John Doe, c=US has the same meaning as the X.500 string c=US, cn=John Doe. The X500::DN objects keep the RDNs in X.500 order!


DESCRIPTION

This module handles X.500 DNs (Distinguished Names). Currently, it parses DN strings formatted according to RFC 2253 syntax into an internal format and produces RFC 2253 formatted string from it.

Methods

EXPORT

None.


BUGS


AUTHOR

Robert Joop <yaph-070708@timesink.de>


COPYRIGHT

Copyright 2002 Robert Joop. All Rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


SEE ALSO

the X500::RDN manpage, the perl manpage.


HISTORY

Early 2002: First idea, discussed on comp.lang.perl.moderated
April 2002: First public release, 0.15

 X500::DN - handle X.500 DNs, parse and format them