Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

x500::rdn(3) [suse man page]

RDN(3)							User Contributed Perl Documentation						    RDN(3)

NAME
X500::RDN - handle X.500 RDNs (Relative Distinguished Names), parse and format them SYNOPSIS
use X500::RDN; my $rdn = new X500::RDN ('c'=>'DE'); my $c = $rdn->getAttributeValue ('c'); DESCRIPTION
This module handles X.500 RDNs (Relative Distinguished Names). This is a supporting module for X500::DN. Methods o $object = new X500::RDN ('type'=>'value', 'type'=>'value', ...); Creates an RDN object from argument pairs, each pair an attribute type and value. With more than one pair as arguments, you will get a multi-valued RDN. o $object->isMultivalued(); Returns whether the RDN is multi-valued. o $object->getAttributeTypes(); Returns the RDN's attribute types, a list of strings. o $object->getAttributeValue (type); Returns the RDN attribute's value. o $object->getRFC2253String(); Returns the RDN as a string formatted according to RFC 2253 syntax. o $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!? o $object->getOpenSSLString(); Returns the RDN as a string formatted according to one of openssl's syntaxes. Croaks on multi-valued RDNs. 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
X500::DN, perl. perl v5.12.1 2007-07-08 RDN(3)

Check Out this Related Man Page

LDAP_MODRDN(3)						     Library Functions Manual						    LDAP_MODRDN(3)

NAME
ldap_modrdn, ldap_modrdn_s, ldap_modrdn2, ldap_modrdn2_s - Perform an LDAP modify RDN operation SYNOPSIS
#include <ldap.h> int ldap_modrdn(ld, dn, newrdn) LDAP *ld; char *dn, *newrdn; int ldap_modrdn_s(ld, dn, newrdn) LDAP *ld; char *dn, *newrdn; int ldap_modrdn2(ld, dn, newrdn, deleteoldrdn) LDAP *ld; char *dn, *newrdn; int deleteoldrdn; int ldap_modrdn2_s(ld, dn, newrdn, deleteoldrdn) LDAP *ld; char *dn, *newrdn; int deleteoldrdn; DESCRIPTION
The ldap_modrdn() and ldap_modrdn_s() routines perform an LDAP modify RDN operation. They both take dn, the DN of the entry whose RDN is to be changed, and newrdn, the new RDN to give the entry. The old RDN of the entry is never kept as an attribute of the entry. ldap_mod- rdn() is asynchronous, returning the message id of the operation it initiates. ldap_modrdn_s() is synchronous, returning the LDAP error code indicating the success or failure of the operation. Use of these routines is deprecated. Use the versions described below instead. The ldap_modrdn2() and ldap_modrdn2_s() routines also perform an LDAP modify RDN operation, taking the same parameters as above. In addi- tion, they both take the deleteoldrdn parameter which is used as a boolean value to indicate whether the old RDN values should be deleted from the entry or not. ERRORS
The synchronous (_s) versions of these routines return an LDAP error code, either LDAP_SUCCESS or an error if there was trouble. The asyn- chronous versions return -1 in case of trouble, setting the ld_errno field of ld. See ldap_error(3) for more details. SEE ALSO
ldap(3), ldap_error(3) ACKNOWLEDGEMENTS
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan LDAP 3.3 Release. OpenLDAP 2.0.27-Release 22 September 1998 LDAP_MODRDN(3)
Man Page