<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="font: inherit;"><div>Aaaaah.. thanks!  Wouldn't have figured that out on my own...<br /><br />A.</div></td></tr></table>            <div id="_origMsg_">
                <div style="font-family:arial, helvetica, sans-serif:font-size:10pt">
                    <br />
                    <div style="font-family:times new roman, new york, times, serif;font-size:12pt">
                        <font size="2" face="Tahoma">
                            <hr size="1">
                            <b>
                                <span style="font-weight:bold;">From:</span>
                            </b>
                            Alan DeKok <aland@deployingradius.com>;                            <br>
                            <b>
                                <span style="font-weight:bold:">To:</span>
                            </b>
                            Adam Track <adamtrack@rocketmail.com>; FreeRadius users mailing list <freeradius-users@lists.freeradius.org>;                                                                                                     <br>
                            <b>
                                <span style="font-weight:bold:">Subject:</span>
                            </b>
                            Re: Multi-valued LDAP attribute                            <br>
                            <b>
                                <span style="font-weight:bold;">Sent:</span>
                            </b>
                            Fri, Dec 23, 2011 2:32:02 PM                            <br>
                            </font>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top" style="font:inherit;">Adam Track wrote:<BR>> In a continuation to my previous issue about how to reference an LDAP<BR>> attribute in post-auth, I am now wondering how to iterate through a<BR>> multi-valued attribute in a perl script I call from post-auth.  In the<BR>> debug you can see all three values are returned:<BR><BR>  Multi-value attributes are an array in Perl.<BR><BR>> I'm no perl expert, but shouldn't I be able to reference all three<BR>> values with $RAD_REPLY{'Person-Type'}?<BR><BR>  No.  That entry is an array.  You need @{$RAD_REPLY{'Person-Type'}},<BR>and then de-reference each entry from there.<BR><BR>  See the Perl documentation for more information.<BR><BR>  Alan DeKok.<BR></td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>