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...
Luke_Lehman
Employee
Nov 11, 2010Joe,
I'm just coming back around to this after a bit of a hiatus. We are looking to upgrade to v10 and the auth issue is a bit of a bump in the road.
The application is kind of a one stop shop. Basically, put in an IP or Servername and it queries all LTMs and GTMs for membership. That being said, the web_ltmview may be updated for a different LTM upon each server lookup. I don't think I've instantiated the web_ltmview object at all (but maybe I have...sorry).
private void btn_nodeView_Click(object sender, EventArgs e) // EVENT - Opens GUI with Node Page on IP Address
{
if (txt_serverIp.Text != "")
{
if (authenticated == true)
{
if (ltmDerived != "")
{
getDeviceVersion(ltmDerived);
if (swVersion.Contains("v9"))
{
// v9 Syntax
// Example for Node 10.10.10.10 - https://LTMname/tmui/Control/jspmap/tmui/locallb/node/properties.jsp?addr=10.10.10.10
web_ltmview.Url = new Uri(
"https://" +
txt_username.Text +
":" +
System.Web.HttpUtility.UrlEncode(txt_password.Text) +
"@" +
ltmDerived +
".company.com/" +
"tmui/Control/jspmap/tmui/locallb/node/properties.jsp?addr=" +
txt_serverIp.Text
);
}
else
{
// v10 Syntax
// Example for Node 10.10.10.10 = https://LTMname/tmui/Control/jspmap/tmui/locallb/node/properties.jsp?addr=10.10.10.10
web_ltmview.Url = new Uri(
"https://" +
txt_username.Text +
":" +
System.Web.HttpUtility.UrlEncode(txt_password.Text) +
"@" +
ltmDerived +
".company.com/" +
"tmui/Control/jspmap/tmui/locallb/node/properties.jsp?addr=" +
txt_serverIp.Text
);
}
}
else
{
MessageBox.Show("Node not defined to LTM. \r\n" +
"\r\n" +
"Can't Open Network Map for Undefined Node.",
"F5 Service.Hub - General Error", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
}
else
{
MessageBox.Show("Perform 'Server Lookup' First.",
"F5 Service.Hub - Network Map Error", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
}
else
{
MessageBox.Show("No Server Name and / or IP Specified!", "F5 Service.Hub - No Server Name Entered", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
}
The v9 code works, but the v10 does not.
Thanks again - Luke
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