How can I query LDAP in GWT?

I am new to GWT and created a time management application. Until now, it was convenient to manually register / create users in the repository, which simplified testing. Now, in order to verify the login and automatically create users, I want to get usernames and passwords by querying the LDAP server. My problem is that I could not find any examples, tutorials or forum posts that helped me complete this task. My only hope so far for success was an example of using the javax.naming package, which was not supported by GWT. Now my question is: is there a database connection with LDAP supported by GWT? And if so: how can I get the data I need?

Thank you in advance!

+3
source share
1 answer

You will need to create a remote service that the GWT client is talking to, which communicates with your backends. There are several options to choose from, depending on your needs. See Communication DevGuide and RequestFactory DevGuide for introductory material.

GWT client <-- XHR request --> Remote Service-+--> LDAP
                                               |--> Other Database(s)
+3
source

All Articles