Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case restriction logic incorrect #442

Closed
arr2036 opened this issue Oct 4, 2013 · 2 comments
Closed

Case restriction logic incorrect #442

arr2036 opened this issue Oct 4, 2013 · 2 comments
Labels
defect category: a defect or misbehaviour v3.x.x meta: relates to the v3.0.x branch

Comments

@arr2036
Copy link
Member

arr2036 commented Oct 4, 2013

#
# Switch between checks for vmware and vpn clients
#
ldap_user_response {
        if ("%{Client-Shortname}" =~ /([^\/]+)\/(.+)/) {
                switch "%{1}" {
                        case vpn {
                                ldap_user_assign_vpn_access_list
                                update reply {
                                        Service-Type := Framed-User
                                }
                        }

                        # Only assign groups for VPN (at least for now)
                        case vmware {
                                ok
                        }
                }
        }
}

/usr/local/etc/raddb/policy.d/otp[237]: "case" statements may only appear within a "switch" section
/usr/local/etc/raddb/policy.d/otp[237]: Failed to parse "case" subsection.
/usr/local/etc/raddb/policy.d/otp[236]: Failed to parse "switch" subsection.
/usr/local/etc/raddb/policy.d/otp[235]: Failed to parse "if" subsection.
/usr/local/etc/raddb/sites-enabled/default[260]: Failed to parse "ldap_user_response" entry.
/usr/local/etc/raddb/sites-enabled/default[252]: Errors parsing post-auth section.

@arr2036
Copy link
Member Author

arr2036 commented Oct 4, 2013

This may be a problem in 2.x.x and so should be investigated before releasing 2/3

@alandekok
Copy link
Member

I have a fix in the queue. Later today.

alandekok added a commit that referenced this issue Oct 4, 2013
alandekok added a commit that referenced this issue Oct 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect category: a defect or misbehaviour v3.x.x meta: relates to the v3.0.x branch
Projects
None yet
Development

No branches or pull requests

2 participants