A valid Server Authentication Authentication Name must be sp
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
EXAMPLE 1 -- CREATING EVERYTHING FOR A SIMPLE PROJECT 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 |
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
|
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. 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 |
EXAMPLE 1 -- CREATING EVERYTHING FOR A SIMPLE PROJECT 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. |
Hi, 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 |
I would like the updated example script as I am having this same trouble.
Thanks, Kyle Echols Hi, 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
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.