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

Support for attributes specified multiple times #147

Open
jamesharr opened this issue Oct 26, 2020 · 0 comments
Open

Support for attributes specified multiple times #147

jamesharr opened this issue Oct 26, 2020 · 0 comments

Comments

@jamesharr
Copy link

jamesharr commented Oct 26, 2020

Certain attributes are specified multiple times in a RADIUS packet. A common example is Cisco-AVPair, but many network vendors do similar things.

Example data from pyrad:

Attributes returned form server (using `pkt.keys()` and `pkt[k]`):
 Service-Type: ['NAS-Prompt-User']
 Cisco-AVPair: ['shell:priv-lvl=15', 'shell:tasks=#root-system,#cisco-support']
Attributes returned form server (using `pkt.items()`):
 6: [b'\x00\x00\x00\x07']
 (9, 1): [b'shell:priv-lvl=15', b'shell:tasks=#root-system,#cisco-support']

Example data from radclient to the same radius server:

Sent Access-Request Id 114 from 0.0.0.0:52476 to REDACTED:1812 length 47
        User-Name = "REDACTED"
        User-Password = "REDACTED"
        Cleartext-Password = "REDACTED"
Received Access-Accept Id 114 from REDACTED:1812 to REDACTED:52476 length 98
        Service-Type = NAS-Prompt-User
        Cisco-AVPair = "shell:priv-lvl=15"
        Cisco-AVPair = "shell:tasks=#root-system,#cisco-support"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant