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

[defect]: rlm_python3 setting attributes to array/tuple values doesn't work #5477

Open
darrellenns opened this issue Dec 11, 2024 · 0 comments
Labels
defect category: a defect or misbehaviour

Comments

@darrellenns
Copy link

What type of defect/bug is this?

Unexpected behaviour (obvious or verified by project member)

How can the issue be reproduced?

In rlm_perl, the value of an attribute can be set to an array. This can used to give (for example) a RADIUS reply with multiple attributes having the same name and different values.

In rlm_python3, this does not work. If an attribute is value set to an array or tuple, then the attribute is simply not set at all.

For example:

def post_auth(p):
    update_dict={
        "reply": (
            ("Some-Attribute",("one","two","three")),
        )
    }

Would be expected to set reply attributes:

Some-Attribute: one
Some-Attribute: two
Some-Attribute: three

Instead, it does not set anything.

Log output from the FreeRADIUS daemon

N/A

Relevant log output from client utilities

No response

Backtrace from LLDB or GDB

No response

@darrellenns darrellenns added the defect category: a defect or misbehaviour label Dec 11, 2024
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
Projects
None yet
Development

No branches or pull requests

1 participant