Authentication Failed using build BuildForge Agent v8.0.0.1-1-0021
export JAZZ_USER=<user>
export JAZZ_PASSWORD_FILE=<password_file>
Everything worked correctly. I could do remote build requests via the RTC build definition. These builds would complete and return proper build information.
I was then directed to upgrade the build forge agent due to the vulnerabilities in OpenSSL=>
https://www-304.ibm.com/support/docview.wss?uid=swg21670165
I downloaded and installed the fix =>BuildForge Agent v8.0.0.1-1-0021
However now I have an authentication problem when I attempt to connect to the agent via the build engine I get the following =>
Message: Socket created successfully.
AUTH Unable to set user account to *AuthUnknownUser ("beifler")
Authentication Failed.
The only thing changed is the build agent. The startbfa.sh script is the same. The password file is the same.
So I am guessing that something about the build forge fix requires a new password file to be generated.
However the jbe.sh is from the 4.0.1 toolkit. So It is likely I will need to generate a new password file to match the new agent. So what tool should I use to perform this task? Or am I mistaken?
I would appreciate any help in this matter.
Thanks
3 answers
Comments
The userId/pw pair used to generate the password file and the RTC userID/pw used to define the build engine are identical.
Neither of these is the AIX user.
The telent command gives this=>
$ telnet localhost 5555
Trying...
Connected to loopback.
Escape character is '^]'.
200 HELLO - BuildForge Agent v8.0.0.1-1-0021
username beifler
password
cmd ping
go
320 AUTH AuthFail[*AuthUnknownUser,"beifler"]
251 RESULT 1
260 EOR
I just realized that in your example above you used the AIX userId/pw.
My telnet session above used my RTC userId/pw.
So I repeated the telnet session using my AIX userId/pw however it fails in the same way=>AuthUnknownUser
So this test shows that it's not a problem in the RTC / Build Agent integration, but rather that the expected credentials are not working against the agent itself. It could be that there was previously a change made to the bfagent.conf file (usually found under /etc) to define the authentication scheme (perhaps using the same LDAP as RTC) that was overridden when the agent was upgraded.
You could try editing bfagent.config to have:
I edited the bfagent.conf. First I tried the literal string you offered "magic_login build:buildpw". I performed "bfagent -s". Then I tried the telnet test and it failed as before. Then I un-commented
the default magic_login line so now it reads=>
"magic_login build:eca0b7f2f4fbf110f7df570c70df844e1658744a4871934a"
Then I performed "bfagent -s".
Then I performed the telnet test.
However I get the same error => 320 AUTH AuthFail[*AuthUnknownUser,"beifler"]
So perhaps I am misunderstanding the usage of the magic_login. Please advise.
Sorry I wasn't clear. If you set the magic_login to build:buildpw, then you need to specify that username and password in the telnet session. And yes, the magic_login line needs to be uncommented for it to take effect. Without this, it normally uses the OS login creds.
I edited the bfagent.conf file with the update => magic_login <username>:<password>
then restarted the agent.
However I get the same error => 320 AUTH AuthFail[*AuthUnknownUser,"beifler"]
I am using the same username/password for the telnet session as in the magic_login update above.
Comments
Just to be clear, the commands I sent after telnet 5555 were:
I encoded the password in the magic_login then restarted the bfagent.
Now I can authenticate via the telnet test. Also I can perform a build from my remote client.
Additionally I had a different user successful perform a build as well.
So I am good for now. The big question at this point is why the authentication changed at all. I figure we can run like this for development purposes however I don't think magic_login is supposed to be used for standard operations.
> The big question at this point is why the authentication changed at all.
Thanks for your help!