UnboundID - Spring Factories

Spring Factory Beans for UnboundID LDAP SDK

License

License

MIT
GroupId

GroupId

cz.jirutka.spring
ArtifactId

ArtifactId

unboundid-spring
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

UnboundID - Spring Factories
Spring Factory Beans for UnboundID LDAP SDK
Project URL

Project URL

https://github.com/jirutka/unboundid-spring
Source Code Management

Source Code Management

https://github.com/jirutka/unboundid-spring

Download unboundid-spring

How to add to project

<!-- https://jarcasting.com/artifacts/cz.jirutka.spring/unboundid-spring/ -->
<dependency>
    <groupId>cz.jirutka.spring</groupId>
    <artifactId>unboundid-spring</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/cz.jirutka.spring/unboundid-spring/
implementation 'cz.jirutka.spring:unboundid-spring:1.0'
// https://jarcasting.com/artifacts/cz.jirutka.spring/unboundid-spring/
implementation ("cz.jirutka.spring:unboundid-spring:1.0")
'cz.jirutka.spring:unboundid-spring:jar:1.0'
<dependency org="cz.jirutka.spring" name="unboundid-spring" rev="1.0">
  <artifact name="unboundid-spring" type="jar" />
</dependency>
@Grapes(
@Grab(group='cz.jirutka.spring', module='unboundid-spring', version='1.0')
)
libraryDependencies += "cz.jirutka.spring" % "unboundid-spring" % "1.0"
[cz.jirutka.spring/unboundid-spring "1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.unboundid : unboundid-ldapsdk jar 2.1.0

provided (2)

Group / Artifact Type Version
org.springframework : spring-beans jar 3.0.0.RELEASE
org.springframework : spring-core jar 3.0.0.RELEASE

Project Modules

There are no modules declared in this project.

Spring Factory Beans for UnboundID LDAP SDK

Spring Factory Beans for UnboundID LDAP SDK – a fast, powerful, user-friendly, and free Java API for communicating with LDAP directory servers. UnboundID SDK also provides an in-memory LDAP server written in Java, excellent choice for integration tests.

Why to use the UnboundID in a Spring-based application instead of Spring LDAP anyway? Well, Spring LDAP has one major issue – it’s a layer on top of JNDI that has a poor performance and horrible API. See this question on StackOverflow.

Usage

<bean id="ldapConnection" class="cz.jirutka.spring.unboundid.LdapConnectionFactoryBean"
      p:url="ldaps://example.org:636"
      p:bindDN="cn=Directory Manager"
      p:password="top-secret"
      p:sslTrustAll="true" />
<bean id="inMemoryLdap" class="cz.jirutka.spring.unboundid.InMemoryDirectoryServerFactoryBean"
      p:baseDN="ou=People,dc=example,dc=org"
      p:schemaFile="classpath:example.schema"
      p:ldifFile="classpath:data.ldif"
      p:loadDefaultSchemas="false" />

Most of properties are optional.

Maven

Released versions are available in The Central Repository. Just add this artifact to your project:

<dependency>
    <groupId>cz.jirutka.spring</groupId>
    <artifactId>unboundid-spring</artifactId>
    <version>1.0</version>
</dependency>

However if you want to use the last snapshot version, you have to add the Sonatype OSS repository:

<repository>
    <id>sonatype-snapshots</id>
    <name>Sonatype repository for deploying snapshots</name>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>

TODO

  • tests

License

This project is licensed under MIT License.

Versions

Version
1.0