Hi all,

I had a thought about addressing this issue but unsure how it could be 
implemented. I'm thinking that the $EXEC feautre of the XML and some 
custom code could be used to solve this problem but I need the group's 
input:

         <input>
           <name>cn</name>
           <label>Subject Name</label>
           <type>textfield</type>
           <charset>UTF8_LETTERS</charset>
<value>$EXEC::concatName($ADDITIONAL_ATTRIBUTE_FIRSTNAME,$ADDITIONAL_ATTRIBUTE_MIDDLEINITIAL,$ADDITIONAL_ATTRIBUTE_LASTNAME,$ADDITIONAL_ATTRIBUTE_SUFFIX)</value>
           <minlen>3</minlen>
           <required>YES</required>
         </input> 


Here is the code I would think would be added to one of the libs (or a 
custom lib):

sub concatName {

        my $first=shift;
        my $middle=shift;
        my $last=shift;
        my $suffix=shift;
        my $name="";

        $name=$first;
        if ($middle ne "") {
                $name=$name . " " . $middle;
        }
        $name=$name . " " . $last;
        if ($suffix ne "") {
                $name=$name . " " . $suffix;
        }
        return $name;
}


This is an e-mail from General Dynamics Land Systems. It is for the intended 
recipient only and may contain confidential and privileged information.  No one 
else may read, print, store, copy, forward or act in reliance on it or its 
attachments.  If you are not the intended recipient, please return this message 
to the sender and delete the message and any attachments from your computer. 
Your cooperation is appreciated.

------------------------------------------------------------------------------
_______________________________________________
Openca-Users mailing list
Openca-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to