How to return dynamic vlan-id ?
Bill Yuan
bycn82 at gmail.com
Wed Sep 14 02:03:04 UTC 2022
which means injecting the attribute into the reply message during the
authorization.
On Tue, 13 Sept 2022 at 22:29, Alan DeKok <aland at deployingradius.com> wrote:
> On Sep 13, 2022, at 3:22 AM, 网络时代 via Freeradius-Users <
> freeradius-users at lists.freeradius.org> wrote:
> > System version: freeradius-server-3.0.21
>
> I'd suggest upgrading to 3.2.0.
>
> > I follow this article“
> https://wiki.freeradius.org/guide/Active-Directory-direct-via-winbind
> ”Guide and verify the ad domain user successfully; Now I want to return
> different VLAN IDs for different domain user groups. Can I do this? Are
> there any related reference articles?
>
> There are no articles which document every possible scenario. Instead,
> there is documentation which describes how the server works. It's up to
> you to put the pieces together.
>
> If you want to assign VLAN ID based on groups, you should configure the
> "ldap" module, and do group checking there. Then, do:
>
>
> if (LDAP-Group == "group1") {
> // send VLAN 1 reply
> }
> elsif (LDAP-Group == "group2") {
> // send VLAN 2 reply
>
> etc.
>
> Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
More information about the Freeradius-Users
mailing list