why does the RTC scheduled builds run with account "ADMIN"?
![]()
Karthik Krishnan (878●5●111●158)
| asked Aug 26 '13, 3:54 a.m.
retagged Aug 27 '13, 6:52 p.m. by Te-Hsin Shih (285●4)
In the scheduled builds in RTC, when I print the user "${buildRequesterUserId}" I see user "ADMIN"
Any reason why?
Example scenario:
We are executing some scripts via ANT which are placed in network share. The useid running the build (jbe and scheduled task) has access to this share. I guess the builds are running as user "ADMIN", the build has no access to this share.
We have disabled ADMIN user and using LDAP for authentication.
I have noticed this in RTC 3.0.1, RTC 4.0.0 and in in RTC 4.0.2. We are using RTC 4.0.2
I have checked this http://www-01.ibm.com/support/docview.wss?uid=swg21639021 but not of use in my case
|
Accepted answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Aug 29 '13, 8:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Karthik, based on my understanding and experience, you need to try to understand the two different user contexts you are talking about here. LDAP does not play any role here. The ADMIN user also does not play a role in the build process, other than that it is the one used to request the build.
Karthik Krishnan selected this answer as the correct answer
Comments PS, dependent on how the operating system user starts the JBE more or less of the OS settings and environment might be exported. This depends on the OS, I guess.
|
One other answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Aug 28 '13, 4:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
It should be unimportant who requests the build. The JBE runs with a Build user (that you used to start the JBE) and you should use that user ID in ANT tasks.
Comments Hi Ralph, reason why I am asking is because there are scripts which are executed as part of the build. These scripts are placed in share location and when the build runs it has no access to these scripts from the network share. Of course the network shares are not accessible by "Everyone" by governed via access control
What I have noticed is when the build is requested by a user who has access to the share, this problem does not happen
Note: The build user as well as the user with which JBE is started has access to the network share
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Karthik, (comment does not work, so new answer)
The best way to verify if this problem is caused by the OS user and its privilege to access share drive is to print out the OS user in your script.
Hi Ralph,
(Too big for comments )
Thanks for the detailed answer.
Note: We use LDAP authentication
Like I mentioned, the JBE user has access to these files. I still can't figure out the reason. I have seen this in RTC 3.0.1, RTC 4.0.0 and RTC 4.0.2
Another example is that we have some tools which are executed as part of the build. These tools needs license and the license manger is hosted in another server (Ex; QA-C).
When I login a PC with as the build user I am able to run the tool and the tool is able to fetch the license.
When the same tool is executed as the part of the build, the tool is unable to fetch the license. My assumption is that, since the build is run as build user, the processes created via the build would also be by the build user. But when I print the user, I only see "ADMIN"
Of course I can use "Runas" but we would have to provide the password as plain text
Somehow something is not clear for me about why the build reports as "ADMIN"
|
Comments
Are you talking about that Jazz user or the OS user?
I guess it's the Jazz user