It's all about the answers!

Ask a question

Synchronize user LDAP with JTS using Java API


Dinh-Van Vo (112) | asked Feb 04 '19, 6:39 a.m.

 Hello,


I've already posted a question regarding the usage of the Java API to synchronize a user from LDAP with JTS:


I also implemented the approach from the following link:

But that approach does not seem to work. The other two possibilities are using "reptool -syncusers" or configure the synchronization frequency of the JTS, but I have some concerns regarding the performance since the LDAP contains thousands of users.

So my question is: Is there another possibility to use the Java API to trigger a synchronization of a certain user (or at last synchronization of a whole LDAP)?


Comments
Ralph Schoon commented Feb 05 '19, 2:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This is not an API that a lot of users would look at. In addition you seem to be unwilling to experiment and take risks on guidance that has already been provided.

You would have to look into the RTC SDK. The UI does stuff like that, however, if that is considered API or even external API is a completely different matter.


A colleague has created something for a completely different purpose: https://github.com/jamsden/LDAP-RTC-Synchronizer maybe that helps.

https://jazz.net/library/article/1000 will help you with the SDK. https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ can help if you are willing to search and investigate. 

One answer



permanent link
Guido Schneider (3.4k1383111) | answered Feb 15 '19, 4:54 p.m.

 we do it outside and have disabled the LDAP sync at all. It's much more robust, and we have better control about changes in user records.


This means, we have an external application, connecting to LDAP, take the user information from there based on the Jazz groups and updates/creates/archives etc. the user in JTS. The Interface to Jazz is done with repotools user commands.

Quite a simple foreach loop and no Jazz API required.


Your answer


Register or to post your answer.