how to return multiple attributes from ldap?

Dusty Doris freeradius at mail.doris.cc
Tue Aug 9 18:03:18 CEST 2005


On Tue, 9 Aug 2005, kevin wrote:

> What?  So, should I change the ldap attribute values with "+=" ???
> Any other way?
>

Yep, it works.

I did a test, with this DN only one filter-id was returned.

dn: uid=dustytest,ou=users,ou=radius,dc=test,dc=com
objectClass: radiusprofile
userPassword:: ZHVzdHl0ZXN0
radiusGroupName: dial
radiusGroupName: adsl
uid: dustytest
radiusFilterId: filter1
radiusFilterId: filter2

Received response ID 210, code 2, length = 59
        Framed-Routing = None
        Framed-IP-Netmask = 255.255.255.0
        Framed-Protocol = PPP
        Service-Type = Framed-User
        Filter-Id = "filter1"


With this dn, both were returned (note there were no quotes in it - that
didn't work)

dn: uid=dustytest,ou=users,ou=radius,dc=test,dc=com
objectClass: radiusprofile
userPassword:: ZHVzdHl0ZXN0
radiusGroupName: dial
radiusGroupName: adsl
uid: dustytest
radiusFilterId: += filter1
radiusFilterId: += filter2

Received response ID 214, code 2, length = 68
        Framed-Routing = None
        Framed-IP-Netmask = 255.255.255.0
        Framed-Protocol = PPP
        Service-Type = Framed-User
        Filter-Id = "filter1"
        Filter-Id = "filter2"




More information about the Freeradius-Users mailing list