function setDNProp($propName, $propValue, $type = 'utf8String')
    {
        if (empty($this->dn)) {
            $this->dn = array('rdnSequence' => array());
        }

        if (($propName = $this->_translateDNProp($propName)) === false) {
            return false;
        }

        foreach ((array) $propValue as $v) {
            if (!is_array($v) && isset($type)) {
                $v = array($type => $v);
            }
            $this->dn['rdnSequence'][] = array(
                array(
                    'type' => $propName,
                    'value'=> $v
                )
            );
        }

        return true;
    }
function setDNProp($propName, $propValue, $type = 'utf8String')
    {
        if (empty($this->dn)) {
            $this->dn = array('rdnSequence' => array());
        }

        if (($propName = $this->_translateDNProp($propName)) === false) {
            return false;
        }

        foreach ((array) $propValue as $v) {
            if (!is_array($v) && isset($type)) {
                $v = array($type => $v);
            }
            $this->dn['rdnSequence'][] = array(
                array(
                    'type' => $propName,
                    'value'=> $v
                )
            );
        }

        return true;
    }
function setDNProp ( $ propName , $ propValue , $ type = 'utf8String' ) { if ( empty ( $ this -> dn ) ) { $ this -> dn = array ( 'rdnSequence' => array ( ) ) ; } if ( ( $ propName = $ this -> _translateDNProp ( $ propName ) ) === false ) { return false ; } foreach ( ( array ) $ propValue as $ v ) { if ( ! is_array ( $ v ) && isset ( $ type ) ) { $ v = array ( $ type => $ v ) ; } $ this -> dn [ 'rdnSequence' ] [ ] = array ( array ( 'type' => $ propName , 'value' => $ v ) ) ; } return true ; }
Set a Distinguished Name property

@param string $propName
@param mixed $propValue
@param string $type optional
@access public
@return bool
Set a Distinguished Name property