RDN(3pm)
π RDN(3pm) β the X500::RDN situation π
User Contributed Perl Documentation bestie, and today we're talking about X500::RDN β the module that handles X.500 RDNs (Relative Distinguished Names), parsing them and formatting them. She's a supporting character but she eats every time. π
β¨ NAME β¨
X500::RDN β handle X.500 RDNs (Relative Distinguished Names), parse and format them. That's it, that's the whole job description, and she does it flawlessly. π
πΈ SYNOPSIS πΈ
okay so here's the vibe, look:
use X500::RDN;
my $rdn = new X500::RDN ('c'=>'DE');
my $c = $rdn->getAttributeValue ('c');
you make one, you pull a value out of it, you move on with your day. iconic behaviour, no notes. β¨
π¦ DESCRIPTION π¦
This module handles X.500 RDNs (Relative Distinguished Names). It's a supporting module for X500::DN β think of her as the bestie who shows up with the aux cord and absolutely delivers. π«Ά
π Methods π
$object = new X500::RDN ('type'=>'value', 'type'=>'value', ...);
Creates an RDN object from argument pairs, where each pair is an attribute type and a value. Heads up bestie: if you pass more than one pair as arguments, you will get a multi-valued RDN. she's got range, fr fr. π
$object->isMultivalued();
Returns whether the RDN is multi-valued. yes/no energy. vibe check for your RDN. β
$object->getAttributeTypes();
Returns the RDN's attribute types, as a list of strings. all of them. the whole roster. π
$object->getAttributeValue (type);
Returns the RDN attribute's value. you name the type, she hands over the value. easy. π
$object->getRFC2253String();
Returns the RDN as a string formatted according to RFC 2253 syntax. the classic. the standard. the moment. β¨
$object->getX500String();
Returns the RDN as a string formatted according to X.500 syntax.
NOTE: This is a hack, there is no definition for a X.500 string syntax!? π not me finding out it's held together with tape and hope. still slays though.
$object->getOpenSSLString();
Returns the RDN as a string formatted according to one of openssl's syntaxes. Croaks on multi-valued RDNs β so if you feed her a multivalued one, she WILL make a sound. consider yourself warned, bestie. π
π EXPORT π
None. nothing. zero. she gives you nothing for free and honestly? respect. π
π BUGS π
crickets π¦ β there is literally nothing written here. no known bugs listed, no reports, just a beautiful empty void. so either she's perfect or nobody's checked. iykyk. π
π AUTHOR π
Robert Joop <yaph-070708@timesink.de> β the legend, the main character, the one who wrote this whole thing. π«Ά
β 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. same terms as Perl itself, periodt. π
πΈ SEE ALSO πΈ
X500::DNβ her supporting module era, go show some love πperlβ yeah. the whole thing. the mothership. π§
okay that's the whole page bestie, no cap, every last detail preserved β¨ β and this little manual page is brought to you by perl v5.36.0, dated 2022-12-12, filed under RDN(3pm). mwah, go forth and parse your RDNs. π ππ¦
π¦ where this page comes from
- debian bookworm: libx500-dn-perl 0.29-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libx500-dn-perl 0.29-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libx500-dn-perl 0.29-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libx500-dn-perl 0.29-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libx500-dn-perl 0.29-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms