Hello, First of all, thank you for this post: https://blog.sys4.de/freeradius-clients-netbox-en.html We are in the process of integrating netbox into our infra and this post got me pretty excited. Followed this guide and i was able to see the request as expected https://wiki.freeradius.org/modules/Rlm_python (0) [preprocess] = ok *** authorize *** *** radlog call in authorize *** (('User-Name', 'myusername'), ('User-Password', 'mysecretpassword'), ('NAS-IPv6-Address', 'xxx:xxx:xx:xxx:21c:2eff:fe57:cd00'), ('NAS-Identifier', 'myswitchname'), ('NAS-Port-Type', 'Virtual'), ('Service-Type', 'NAS-Prompt-User'), ('Message-Authenticator', '0xasdfasdfasdf231234512asdfasd'), ('MS-RAS-Vendor', '11'), ('Calling-Station-Id', 'xx:xxx:xxx:12'), ('Event-Timestamp', 'Jan 26 2022 13:34:21 EST'), ('Huntgroup-Name', 'switch')) {} (0) [python3] = ok According to the python code on the netbox post, i should be able to store the secret into netbox. Since im still in my testing phase, I wanted to see the secret. I thought it would show by print(p) but it does not. So my question, where is the secret ? How can i see it if possible? Thank you again for the very interesting posts! Best, Dave
oh my.... Just realized something. I missed setting the dynamic clients for this client.... Ok, let me do that. I'll report back. Apologies ahead of time if making unnecessary noise. On Wed, Jan 26, 2022 at 5:13 PM Dave Macias <davama@gmail.com> wrote:
Hello,
First of all, thank you for this post: https://blog.sys4.de/freeradius-clients-netbox-en.html We are in the process of integrating netbox into our infra and this post got me pretty excited.
Followed this guide and i was able to see the request as expected https://wiki.freeradius.org/modules/Rlm_python
(0) [preprocess] = ok *** authorize *** *** radlog call in authorize ***
(('User-Name', 'myusername'), ('User-Password', 'mysecretpassword'), ('NAS-IPv6-Address', 'xxx:xxx:xx:xxx:21c:2eff:fe57:cd00'), ('NAS-Identifier', 'myswitchname'), ('NAS-Port-Type', 'Virtual'), ('Service-Type', 'NAS-Prompt-User'), ('Message-Authenticator', '0xasdfasdfasdf231234512asdfasd'), ('MS-RAS-Vendor', '11'), ('Calling-Station-Id', 'xx:xxx:xxx:12'), ('Event-Timestamp', 'Jan 26 2022 13:34:21 EST'), ('Huntgroup-Name', 'switch'))
{} (0) [python3] = ok
According to the python code on the netbox post, i should be able to store the secret into netbox. Since im still in my testing phase, I wanted to see the secret. I thought it would show by print(p) but it does not.
So my question, where is the secret ? How can i see it if possible?
Thank you again for the very interesting posts!
Best, Dave
Had some good progress here. Main issue here was that my virtual server in default was receiving the Access-Request packets and i also did not have a listen section in my dynamic_clients file. Now i can see all the packet info which i can do whatever I want with python. Thanks, Dave On Jan 26, 2022, 5:16 PM -0500, Dave Macias <davama@gmail.com>, wrote:
oh my....
Just realized something. I missed setting the dynamic clients for this client.... Ok, let me do that. I'll report back.
Apologies ahead of time if making unnecessary noise.
On Wed, Jan 26, 2022 at 5:13 PM Dave Macias <davama@gmail.com> wrote:
Hello,
First of all, thank you for this post: https://blog.sys4.de/freeradius-clients-netbox-en.html We are in the process of integrating netbox into our infra and this post got me pretty excited.
Followed this guide and i was able to see the request as expected https://wiki.freeradius.org/modules/Rlm_python
(0) [preprocess] = ok *** authorize *** *** radlog call in authorize ***
(('User-Name', 'myusername'), ('User-Password', 'mysecretpassword'), ('NAS-IPv6-Address', 'xxx:xxx:xx:xxx:21c:2eff:fe57:cd00'), ('NAS-Identifier', 'myswitchname'), ('NAS-Port-Type', 'Virtual'), ('Service-Type', 'NAS-Prompt-User'), ('Message-Authenticator', '0xasdfasdfasdf231234512asdfasd'), ('MS-RAS-Vendor', '11'), ('Calling-Station-Id', 'xx:xxx:xxx:12'), ('Event-Timestamp', 'Jan 26 2022 13:34:21 EST'), ('Huntgroup-Name', 'switch'))
{} (0) [python3] = ok
According to the python code on the netbox post, i should be able to store the secret into netbox. Since im still in my testing phase, I wanted to see the secret. I thought it would show by print(p) but it does not.
So my question, where is the secret ? How can i see it if possible?
Thank you again for the very interesting posts!
Best, Dave
participants (1)
-
Dave Macias