ramakrishnach04 / vt-middleware

Automatically exported from code.google.com/p/vt-middleware
0 stars 0 forks source link

ldaptive: LDAPI support #206

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is an enhancement request.

The request is for ldaptive to support connections to LDAP servers using LDAPI 
so that if a Java application is running on the same host as the LDAP server 
than no TCP connection is necessary.

My suggestion is that this is a low priority enhancement request since one can 
always bind the LDAP server to 127.0.0.1 and use ldap://localhost:389, which of 
course still uses TCP but does not go out over the network.

Thank you for your consideration.

Original issue reported on code.google.com by skora...@gmail.com on 4 Feb 2014 at 6:56

GoogleCodeExporter commented 8 years ago

Original comment by dfis...@gmail.com on 4 Feb 2014 at 6:57

GoogleCodeExporter commented 8 years ago
Take a look at r2968.

You'll need to install jars from https://code.google.com/p/junixsocket/ into 
your local maven repo.

Original comment by dfis...@gmail.com on 16 Apr 2014 at 2:24

GoogleCodeExporter commented 8 years ago
I'd like to close this issue.
Can you take a look at this functionality and see if it meets your needs?

Original comment by dfis...@gmail.com on 5 May 2014 at 8:22

GoogleCodeExporter commented 8 years ago
Hello,

I am not sure how to build the code and conduct a useful test.

I did the following:

svn checkout http://vt-middleware.googlecode.com/svn/ldaptive/ldapi
mvn package

but it will not build.

I am grateful you added the feature and I would like to help test but
I am not a full time Java developer and so if you could provide a
general outline of what I need to do to get a jar I can drop into,
say, a Shibboleth IdP or CAS server distribution and try it with my
LDAP server then I can run a test.

Original comment by skora...@gmail.com on 6 May 2014 at 12:06

GoogleCodeExporter commented 8 years ago
I attached the ldapi jar to this issue so you don't have to build it.

You'll need to download the junixsocket jar and add it to your classpath:
https://code.google.com/p/junixsocket/

Two switches need to be set when you start your JVM:
-Djava.library.path=/path/to/junixsocket.so
-Dorg.ldaptive.ldapi.socketFile-/path/to/domain/socket

Ldaptive needs to be configured to use a custom socket factory.
(Only the JNDI provider is supported at this time)
So a provider property needs to be set:
  "java.naming.ldap.factory.socket", "org.ldaptive.ldapi.AFUnixSocketFactory"

Any valid URL can be provided, it is ignored.
I would recommend something like: "ldap://domainsocket"

Let me know if you have any more questions.

Original comment by dfis...@gmail.com on 7 May 2014 at 6:44

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by dfis...@gmail.com on 1 Jul 2014 at 3:10