It's all about the answers!

Ask a question

Can't create Example project in AD/LDAP/Oracle


Jirong Hu (1.5k9295258) | asked Aug 05 '11, 2:16 p.m.
The server is connected to a read-only user registry.
The Team Concert example project can't be created becuase hte user registry does not allow creating new users.


I am in a all-in-one env on my laptop with AD/WAS7 installed locally as well. I got the above error when trying to create the JUnit Example project. Is there a workaround?

Thanks
Jirong

8 answers



permanent link
Ralph Schoon (63.7k33648) | answered Aug 08 '11, 4:24 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please create the users in your user registry and then create the sample project. A small test system on tomcat would allow you to identify the required users and their ID's.

permanent link
Jirong Hu (1.5k9295258) | answered Aug 10 '11, 2:03 p.m.
Please create the users in your user registry and then create the sample project. A small test system on tomcat would allow you to identify the required users and their ID's.


I've created all users below in my local AD and imported them into RTC, still getting the exact same error message. I even restarted WAS. What else shall I do?

http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.concert.doc/topics/tut_junit_intro.html

Bill Cassavelli bill / bill JUnit team lead. Bill is the component lead for the JUnit team. He set up the plans and is the owner of several high level work items for the release.
Build build / build Special user for running the builds
Freddy Freund freddy / freddy
Jason Mitchell jason / jason JUnit team member. A number of work items are assigned to Jason.
Jennifer Ginness jennifer / jennifer
Markus Kent markus / markus JUnit team member. A number of work items are assigned to Markus.
Marlene Stamp marlene / marlene
Rick Yuen rick / rick

permanent link
Ralph Schoon (63.7k33648) | answered Aug 11 '11, 8:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,

not sure. i have to try with LDAP myself. The issue is that LDAP does not allow RTC to create the users and maybe RTC does not look for them. Alternatively you could create the sample app before switching to LDAP. I will try to setup with LDAP and verify. Then create a work item.

permanent link
Ralph Schoon (63.7k33648) | answered Aug 11 '11, 12:08 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I just tried (with tomcat) but for the CLM Sample application. I had the users in LDAP already and added them to the user list in JTS before I ran the creation. The admin user was an admin user and had all required licenses applied (the wizard mentions that). All went well.

permanent link
Ralph Schoon (63.7k33648) | answered Aug 11 '11, 12:26 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The JUnit Example setup does not work because of the user registry.

I would switch to tomcat without LDAP, create the examples, switch back to WAS and LDAP.

Please note the sample projects are only suggested for Test Repositories.

permanent link
Ralph Schoon (63.7k33648) | answered Aug 11 '11, 12:29 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As an afterthought, the "Money That Matters" sample in https://<server>:<port>/admin/web#/sample is also more complete. It worked with LDAP as mentioned above.

permanent link
Harry Koehnemann (30125238) | answered Mar 26 '12, 12:37 p.m.
Hi Ralph. How does one "switch to tomcat without LDAP"? Can we rerun the front part of jts/setup where we setup the user registry? Or is there a way to set the server's Advanced Properties. Thanks.

The JUnit Example setup does not work because of the user registry.

I would switch to tomcat without LDAP, create the examples, switch back to WAS and LDAP.

Please note the sample projects are only suggested for Test Repositories.

permanent link
Ralph Schoon (63.7k33648) | answered Mar 27 '12, 3:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Harry,

I am not sure why you want to do that. The issue is, you need a valid tomcat-users.xml file. You need at least one administrative user that can log in. (I think you should be able to just edit the file, but I am not sure if you can just put in a blank password. You could try).

Since I am not sure, this is what I would do for a complete move from LDAP to Tomcat:
1. Set up a test server on tomcat without LDAP similar to your current one with some administrative user that matches the admin users you use with LDAP.
2. Export the users from the current server with repotools.
3. Import the users into your experimental server
4. Back up the resulting tomcat-users.xml.
5. Look into the teamserver.properties file(s) and compare them to your current one.
6. Shut down the current server
7 Back up your teamserver.properties file and comment out the LDAP settings. I think com.ibm.team.repository.user.registry.type=DETECT does the trick and needs to be in the properties file.
8 Place the tomcat-users.xml into the Tomcat/conf folder of your server.
9. Bring up the server

To switch back you would replace the manipulated teamserver.properties files with your backup and bring up the server.

If you just want to deploy the example, I would suggest to rather use the money that matters sample in a test server. You can always start with a tomcat/non LDAP test server. If you use LDAP and actually want to log in with the different users of the sample you would have to add them to LDAP.

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.