Forum Discussion
Sharon_Lucas_55
Nimbostratus
Apr 28, 2010Problem authenticating if password contains a @
I'm using the iControl SDK to create a Java application that automates configuring BIG-IP.
If my admin password for BIG-IP does not contain a @, authentication to the BIG-IP host via my Jav...
Jul 14, 2010
The setPassword() method does not take an encoded password, it uses the clear text version and then builds the Authentication header by base64 encoding the username:password values. By you passing in a base64 encoded string, it's essentially base64 encoding your URL encoded value. I would recommend removing all username and password from the "https://bigip/iConrol/iControlPortal.cgi" URI and using the setUsername() and setPassword() methods with the clear text values
m_systemInfo.setUsername(username);
m_systemInfo.setPassword("XXXXXXX@XXXX");
m_systemInfo.get_system_information()
Since the username and password are not in the URI anymore, there is no reason to URL encode it.
For more examples, download the iControl Library for Java from the iControl Assembly labs project. There are a few sample test applications in there that illustrate how to use the library with authentication. Let me know if you have trouble finding it, and I can post an example here to this thread.
Hope this helps...
-Joe
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