[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Multi-valued LDAP attribute
From:       Adam Track <adamtrack () rocketmail ! com>
Date:       2011-12-24 0:48:31
Message-ID: 1324687711.45709.YahooMailMobile () web125208 ! mail ! ne1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Aaaaah.. thanks!  Wouldn&#39;t have figured that out on my own...

A.
[Attachment #5 (text/html)]

<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="font: \
inherit;"><div>Aaaaah.. thanks!  Wouldn&#39;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 &lt;aland@deployingradius.com&gt;;             \
<br>  <b>
                                <span style="font-weight:bold:">To:</span>
                            </b>
                            Adam Track &lt;adamtrack@rocketmail.com&gt;; FreeRadius \
users mailing list &lt;freeradius-users@lists.freeradius.org&gt;;                     \
<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>&gt; In a continuation to my previous issue about how to reference an \
LDAP<BR>&gt; attribute in post-auth, I am now wondering how to iterate through \
a<BR>&gt; multi-valued attribute in a perl script I call from post-auth.&nbsp; In \
the<BR>&gt; debug you can see all three values are returned:<BR><BR>&nbsp; \
Multi-value attributes are an array in Perl.<BR><BR>&gt; I'm no perl expert, but \
shouldn't I be able to reference all three<BR>&gt; values with \
$RAD_REPLY{'Person-Type'}?<BR><BR>&nbsp; No.&nbsp; That entry is an array.&nbsp; You \
need @{$RAD_REPLY{'Person-Type'}},<BR>and then de-reference each entry from \
there.<BR><BR>&nbsp; See the Perl documentation for more information.<BR><BR>&nbsp; \
Alan DeKok.<BR></td>  </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>



-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic