Forum Discussion
iControl - RemoteRole User Permissions
Will this function work for remoterole users? If so we can look to implement it rather than the current code which grabs the user and attempts to look them up on the device.
- John_Gruber_432Historic F5 AccountThe Management::UserManagement.get_my_permissions does indeed work on the current logged in role/partition. This is true even if the user is logged in with a remote authentication source and the role is mapped via remote roles.
- Jason_47442Nimbostratus
So, I have this working, sort of.....
I'm initializing and iControl Interface, but I'm getting some strange behavior I believe it's because I'm not properly tearing down the connection but I'm not sure.
So basically we're moving to RemoteRoles using RADIUS to ease administrative burdens, but we have an iControl app that we need to ensure works after the transition. So during testing of the iControl I'm switching the radius attributes returned for my login to simulate several user roles.
Setting a breakpoint at the User permissions I've noticed that once I connect and get a permission set, even if I close the application i keep getting the same permissions. If I chage the RADIUS attributed to get another role, when i re-launch the application and initialize the interface my User Permissions reflect the old role until some (unknown to me) timeout occurs, but the LTM GUI would reflect the new role immediately (ruling out and delay between RADIUS attribute changes vs. returned attributes). Once this timeout has elapsed (maybe 15 minutes?) and I re-initialize the iControl Interface the proper permissions are present.
How should I be tearing down / logging out of iControl when I'm finished with the interface? Currently I'm just setting it to null as I don't see a close / logout method.
- John_Gruber_432Historic F5 AccountThe remote AuthZ are not performed by the SOAP server controller process or its interface handlers, but by the web server hosting the iControl applicaiton. If you do a tcpdump of your iControl calls you will see an 'Authorization' header in each HTTP request. If you change the authorization header credentials you will see login work differently. So there is no 'logout' method as each reaquest comes with its own username:password combination.
- Jason_47442NimbostratusIt's a .Net client application utilizing iControll.dll so a lot of the stack specifics are hidden from me (thankfully). The application is used as an administration tool that is installed on a machine and allows us to perform advanced maintenance across our infrastructure from one interface.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com