Forum Discussion
patrickmamaid_1
Nimbostratus
17 years agoldap auth, bigip client app
Hi I am building a bigip-client-management java console app
and i am getting the following error when i run it:
Exception in thread "main" Axis...
17 years ago
yes I replaced those values using my own login and pass and I can log in to bigip through https://10.20.10.10 using them.
hmm.. Is it even possible to write a console application that communicates with bigip without a broswer?
It is absolutely possible to write a console app using java as that is what all the samples in the SDK are.
actually for my password i have a couple of "" characters so i replaced it with a url safe "%23" could this be the problem then?
You shouldn't have to do anything to your password as it is not sent in the URI. A WWW-Authenticate header is passed with the digest of the username and password.
I'm not sure what's going on on your end but I just copied you code into a Main.java file, changed the hostname, username, and password to my BIG-IP's info, compiled and ran the app and it correctly executed the get_list method and returned the list to the console.
The one thing I did find in your code was that there was a compile error on the initialize line
if (interfaces.initialize("theboss", (long)443, "admin", "admin") {
You are missing a closing parenthesis around the if. Could it be that your compile is failing and you are running an old version of the compiled file?
I changed the line to the following:
if (interfaces.initialize("mybigip", (long)443, "myusername", "mypassword") ) {
To get it to compile and run.
-Joe