I loaded the source tarball, so do not provide a patch here - sorry.
I had to modify LDAP.java to make it work with both AD and ApacheDS
* add env.put(Context.REFERRAL, "follow");
* add public static LDAP newInstance( String url, String bindUser,
String bindPassword ) to bind a s a user
I also created a pom.xml to enable Maven - attached. Please note - if
you use eclipse:eclipse to generate eclipse project - remove M2_REPO/...
from the project's libraries; Eclipse maven plugin does not need that.
Thank,
Oleg
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.directory</groupId>
<artifactId>groovy-ldap</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>groovy</groupId>
<artifactId>groovy</artifactId>
<version>1.1-beta-2</version>
</dependency>
</dependencies>
</project>