It's all about the answers!

Ask a question

A valid Server Authentication Authentication Name must be sp


0
1
Jirong Hu (1.5k9295258) | asked Aug 31 '10, 3:43 p.m.
EXAMPLE 1 -- CREATING EVERYTHING FOR A SIMPLE PROJECT

BuildForge::Ex::APIException: A valid Server Authentication Authentication Name must be specified.

I got the above error when try to run the BuildForgePerlAPIDemo.pl found here:http://www.ibm.com/developerworks/rational/downloads/08/bf_api_basictasks/

The error is from this line of code:
my $serverAuth = Example_Functions::createServerAuth($conn, "Demo Administrator", "root", "root", 6);

I tried root/root, Administrator/<password>, same error, they are both created as an id within BF. What's required for this id/password?

Thanks
Jirong

6 answers



permanent link
Brent Ulbricht (2.5k11) | answered Aug 31 '10, 10:45 p.m.
JAZZ DEVELOPER
EXAMPLE 1 -- CREATING EVERYTHING FOR A SIMPLE PROJECT

BuildForge::Ex::APIException: A valid Server Authentication Authentication Name must be specified.

I got the above error when try to run the BuildForgePerlAPIDemo.pl found here:http://www.ibm.com/developerworks/rational/downloads/08/bf_api_basictasks/

The error is from this line of code:
my $serverAuth = Example_Functions::createServerAuth($conn, "Demo Administrator", "root", "root", 6);

I tried root/root, Administrator/<password>, same error, they are both created as an id within BF. What's required for this id/password?

Thanks
Jirong


Hi Jirong,

What version of Build Forge are you using? The example script that you are following was written for 7.0.2.x . I can get you past the first error you're seeing, but you'll just run into others. The example script could have been written better to not use what I would consider internal implementation details (specific parameter names referenced instead of using API methods/functions) that have changed in later releases.

Is there a specific scenario you're looking to use the API for or are you just trying to get an overall idea of the API? If you're just trying to get general concepts of the API, I would suggest looking at the PerlDoc reference ( http://:/clients ) for the objects that you're interested in working with.

bju

permanent link
Jirong Hu (1.5k9295258) | answered Sep 01 '10, 10:32 a.m.
It's 7.1 both for Mgmt Console and Schema version. I am trying to learn the Perl Client API in general and a sample likes this helps a lot. Do you have a new release of this example for 7.1? Can you send me a copy? Sure I can look into the DOCs, for I already see some samples in the beginning of each object.

Thanks for your help.
Jirong


Hi Jirong,

What version of Build Forge are you using? The example script that you are following was written for 7.0.2.x . I can get you past the first error you're seeing, but you'll just run into others. The example script could have been written better to not use what I would consider internal implementation details (specific parameter names referenced instead of using API methods/functions) that have changed in later releases.

Is there a specific scenario you're looking to use the API for or are you just trying to get an overall idea of the API? If you're just trying to get general concepts of the API, I would suggest looking at the PerlDoc reference ( http://:/clients ) for the objects that you're interested in working with.

bju

permanent link
Brent Ulbricht (2.5k11) | answered Sep 01 '10, 10:38 p.m.
JAZZ DEVELOPER
It's 7.1 both for Mgmt Console and Schema version. I am trying to learn the Perl Client API in general and a sample likes this helps a lot. Do you have a new release of this example for 7.1? Can you send me a copy? Sure I can look into the DOCs, for I already see some samples in the beginning of each object.

Thanks for your help.
Jirong


Hi,

Let me take a closer look at the script. I worked through the first few problems but will have to see how much more work it will take.

bju

permanent link
Geoffroy Braem (21) | answered Sep 08 '10, 4:27 a.m.
EXAMPLE 1 -- CREATING EVERYTHING FOR A SIMPLE PROJECT

BuildForge::Ex::APIException: A valid Server Authentication Authentication Name must be specified.

I got the above error when try to run the BuildForgePerlAPIDemo.pl found here:http://www.ibm.com/developerworks/rational/downloads/08/bf_api_basictasks/

The error is from this line of code:
my $serverAuth = Example_Functions::createServerAuth($conn, "Demo Administrator", "root", "root", 6);

I tried root/root, Administrator/<password>, same error, they are both created as an id within BF. What's required for this id/password?

Thanks
Jirong



Just to clarify, the credentials to be used when you create a ServerAuth are those of an account on the machine you try to connect to via the agent. This account is unrelated to BF user accounts.
Note that ServerAuths are not validated unless you associate them with a server definition, so this is not the cause of your error.

It is likely that the error comes from the fact that the ServerAuth already exists. This is something you should double check using the web interface.

permanent link
Brent Ulbricht (2.5k11) | answered Sep 09 '10, 9:48 a.m.
JAZZ DEVELOPER
Hi,

Let me take a closer look at the script. I worked through the first few problems but will have to see how much more work it will take.

bju


I've updated the Perl demo files for 7.1.x and am trying to contact developerWorks to make them available for download. In the interim, if someone would like the new files - post in this thread or send a message.

bju

permanent link
Kyle Echols (6) | answered Nov 21 '11, 5:30 p.m.
I would like the updated example script as I am having this same trouble.
Thanks,
Kyle Echols

Hi,

Let me take a closer look at the script. I worked through the first few problems but will have to see how much more work it will take.

bju


I've updated the Perl demo files for 7.1.x and am trying to contact developerWorks to make them available for download. In the interim, if someone would like the new files - post in this thread or send a message.

bju

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.