Giter Club home page Giter Club logo

unboundid-spring's Introduction

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.

unboundid-spring's People

Contributors

jirutka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.