Skip to content

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

Open
@darrellenns

Description

@darrellenns

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectcategory: a defect or misbehaviour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions