Forum Discussion
iControl Rest Api Authentication/Authorization with Active Directory
Hello,
I noticed that when f5 is set to use remote authentication (active directory), I cannot authenticate to the rest api. I get "no user name {username} found.". But when its change to authenticate locally, the rest api is fine and i can authenticate. Is this a known bug? If so .. any dates to a fix?
Thank you.
9 Replies
- Arnaud_Lemaire
Employee
Working on my side with 11.5.1 HF2. Do you have a remote role configuration ? if no what is your default external users configuration for role and terminal in the configuration ?
- Richard_Tocci_7Historic F5 Account
I've been trying to get something like this to work for my customer, with no success. I tried manipulating the Authorization header, keeping BigIP credentials and AD credentials the same, but while my logic appears sound, I don't think the BigIP is allowing me. I'm using an APM profile to do the auth, but it's just not yet working. I'll post more on DevCentral later if I get it working.
- stackempty_1218
Nimbostratus
@arnaud
Yes i have remote role configuration. The user trying to access the rest API is an administrator. Any ideas why this is happening.?
Regards.
- Arnaud_Lemaire
Employee
quick update on this one, there is an existing bug opened for it. remote user authentication is currently working for Icontrol SOAP but not for Icontrol REST.
- StephanManthey
Nacreous
Hi,
there is a workaround in case you are using the REST API not via the management interface.
A virtual server rewrites the Auth header (it´s a basic authentication) to "admin" (passphrase is b64 encoded with basic authentication) after validating the users credentials inside the iRule. This approach will also allow to add client cert based user authentication and a source IP based ACL for REST API access. The request will be forwarded to a self-IP (via node command in iRule).
Thanks, Stephan - Nigel_Benns_660
Nimbostratus
any update to the status of the ticket referenced in this article?
- Arnaud_Lemaire
Employee
Hello Nigel, having a look internaly it seems to be corrected for next upcoming major release. - stackempty_1218
Nimbostratus
any ideas to when this major release is coming?
- Stefan_Dorobek_
Nimbostratus
Hey everyone,
If someone facing this problems, there is an workaround in version 12.
You need to create the User first local on the device, after that you can use that user to make REST call's just with basic auth. So you need no Post to the login or/and an login reference.
There is a dokumentation with authentication token, but I don't managed to get this to work on an bigip (https://devcentral.f5.com/wiki/icontrol.authentication_with_the_f5_rest_api.ashx) maybe it's only for bigiq.
Regards Stefan
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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