LDAP filter by OU Group

Albert K alberk at gmail.com
Thu Dec 8 05:07:49 CET 2016


Hi,

Yes, that was a type when I cut and paste into notepad.   The config file
setting looks ok, just that it is not recognizing the OU.  Is there any
setting the ldap that I need to set ?  Thanks.

On Thu, Dec 8, 2016 at 11:20 AM, Matt Brennan <brennanma at gmail.com> wrote:

> Well, to start, you have two commas after your OU=. I believe that is
> likely a typo.
>
> On Wed, Dec 7, 2016 at 9:57 PM, Albert K <alberk at gmail.com> wrote:
>
> > Hi,
> >
> >
> > I need some help to assign VLAN to users from a particular OU of Active
> > Directory. It does not seems to work.  The code below is the post-auth in
> > the inner-tunnel.  At the moment, the filter does not work as always get
> > assigned the VLAN 40.
> >
> > What else should i do to get the filtering to work?.    Thanks.
> >
> >
> >
> >
> > post-auth {
> >
> > ldap
> >
> >         if (LDAP-Group == "OU=hod,,dc=mycompay,dc=com") {
> >
> > update reply {
> >
> >                        Tunnel-Type = VLAN
> >
> >                        Tunnel-Medium-Type = IEEE-802
> >
> >                        Tunnel-Private-Group-Id = "30"
> >
> >     }
> >
> >       }
> >
> > else {
> >        update reply  {
> >
> >                        Tunnel-Type = VLAN
> >
> >                        Tunnel-Medium-Type = IEEE-802
> >
> >                        Tunnel-Private-Group-Id = "40"
> >
> >                        }
> >
> >        }
> > }
> > -
> > List info/subscribe/unsubscribe? See http://www.freeradius.org/
> > list/users.html
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html


More information about the Freeradius-Users mailing list