Forum Discussion
GavinW_29074
Jun 01, 2012Nimbostratus
Modify Dataclass with iRule
Hi there,
I've been tasked with investigating if it's possible to get an iRule to modify a dataclass on the F5's...
The background is that we've implemented HTTP Basic authentication within some of our iRules which references a dataclass.
We'd prefer not to have to drop into the gui to add/delete/modify user entries in this dataclass, and instead have a VIP on the F5's which serves an iRule which allows users to change their current password/add users/remove users/etc...
So is it possible to modify a dataclass from an iRule???
Cheers
Gavin
- hooleylistCirrostratusHi Gavin,
- GavinW_29074NimbostratusAaron
- hooleylistCirrostratusYou could set up a web app that makes iControl calls to modify the data group to avoid any client compatibility issues.
- GavinW_29074NimbostratusThat could be another option, with a virtual app server sat behind the F5's...
- GavinW_29074NimbostratusOk, I've done a bit more digging around making an iControl call from within an iRule, and it looks like that's a no-go, as the Sideband functionality doesn't appear to support basic authentication...
- Joel_MosesNimbostratusGavinW: Well, that's not ENTIRELY true. Think of a sideband connection as a total "clean slate".
set username "user" set password "pass" HTTP::header insert Authorization "Basic [b64encode "${username}:${password}]"
- hooleylistCirrostratusYou could also open a sideband connection to another virtual that has an HTTP profile and then use HTTP:: iRule commands to modify the requests.
- GavinW_29074NimbostratusAhh, cheers for the heads up...
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects