0

I want to create a java client (on eclipse) to connect to WSO2 Identity Server 5.1.0 using the API to autenticate, create, save and manage users.

So my idea to configurate the identity server as ldap and to test it with an example of client in java that can authenticate and manage users with API...

I tried to use the example in https://docs.wso2.com/display/IS510/Managing+Users+and+Roles+with+APIs, but i think that the new version of server do not support this example.

Community
  • 1
  • 1
ciao_jo
  • 11
  • 3

1 Answers1

1

apparently you are mixing several things (and the WSO2 documentation is misleading in that point too):

I want to create a java client (on eclipse) to connect to WSO2 Identity Server 5.1.0 using the API to autenticate, create, save and manage users

The web page you refer provides 2 ways to call the admin services:

  1. admin web services - you may create or generate a web service client and use the web service to connect to the WSO2 IS remotely. How to get the WSDL files is described in this post. That should work with all (even older) versions of the WSO2 IS. I would suggest to use this approach.

  2. The code snippet you have provided should works (I haven't try it myself though). I use the default admin web services.

If you are unable to create a client or connect, you should provide more details where / with what you have the problem.

So my idea to configurate the identity server as ldap...

WS2 Identity Server is not an LDAP server. It may have an LDAP configured as a user store (it has an embedded OpenLDAP instance by default). But you can use the web services or the OAuth2 endpoint to authenticate users against configured user stores.

gusto2
  • 11,210
  • 2
  • 17
  • 36
  • thanks for ur reply. Can you please show me an example of the configuration as ldap server and an example of using the server to authenticate user using ldap protocol?? – ciao_jo Apr 01 '16 at 10:32
  • As I mentioned, the WSO2 IS itself is NOT an LDAP server. You can authenticate the users using the OAuth2 or SAML2 protocol. Example: http://wso2.com/library/articles/2014/02/securing-your-web-service-with-oauth2-using-wso2-identity-server-1/ For connecting to LDAP directly search this forum, there's already enough posts http://stackoverflow.com/questions/19089848/what-is-best-java-api-to-connect-to-ldap-server) – gusto2 Apr 01 '16 at 21:38