Spring LDAP 1.3.1 釋出

釋出 | Ulrik Sandberg | 2010年11月30日 | ...

尊敬的 Spring 社群:

我們很高興地宣佈 Spring LDAP 1.3.1 版本已經發布。這是一個更新版本,添加了一個新的 LDIF 解析庫、一個物件目錄對映 (ODM) 框架,並修復了 1.3.0 中的一些問題。 下載 | 更新日誌

更重要更改的摘要

  • 添加了一個物件目錄對映 (ODM) 框架,用於 LDAP 和 Java 物件之間基於註解的對映;非常像 Hibernate 或 JPA,但用於 LDAP。感謝 Paul Harvey 的貢獻。(文件)
  • 添加了一個 LDIF 解析庫,並可選擇與 Spring Batch 整合。感謝 Keith Barlow 的貢獻。(文件)
  • 添加了 ContextMapperCallbackHandler 的一個擴充套件,它可以向關聯的 mapper 提供一個指示,即對於每個搜尋結果,響應都是不同的。(LDAP-185)
  • 現在支援 DIGEST-MD5 SASL 身份驗證機制。由 Marvin S. Addison 貢獻。(LDAP-173)
  • AbstractTlsDirContextAuthenticationStrategy 現在提供了一個 setter,用於自定義用於 TLS 協商的 SSLSocketFactory。(LDAP-180)
  • 添加了透過 AuthenticationErrorCallback 提供可能的身份驗證異常的身份驗證方法。(LDAP-192)

在此處獲取最新的 Spring LDAP 版本

Ulrik Sandberg 和 Mattias Hellborg-Arthursson, Jayway
Spring LDAP 團隊

關於

Spring LDAP 是一個 Java 庫,用於簡化 LDAP 操作,基於 Spring 的 JdbcTemplate 模式。該框架減輕了使用者的常見任務,例如查詢和關閉上下文、迴圈遍歷結果、編碼/解碼值和過濾器等等。

LdapTemplate 類封裝了傳統 LDAP 程式設計中涉及的所有底層工作,例如建立 DirContext、迴圈遍歷 NamingEnumerations、處理異常和清理資源。這讓程式設計師可以處理重要的事情 - 在哪裡查詢資料(DN 和過濾器)以及如何處理資料(對映到域物件和從域物件對映、繫結、修改、解除繫結等),就像 JdbcTemplate 解放了程式設計師,使其只關注實際的 SQL 以及資料如何對映到域模型一樣。

除此之外,Spring LDAP 還提供事務支援、一個池庫、一個物件目錄對映 (ODM) 框架、一個帶有 Spring Batch 整合的 LDIF 解析庫、從 NamingExceptions 到映象的未經檢查的異常層次結構的異常轉換,以及幾個用於處理過濾器、LDAP 路徑和屬性的實用程式。

Spring LDAP 需要 J2SE 1.4 或更高版本才能執行,並且可以與 Spring Framework 2.0.x、2.5.x 以及 3.0.x 一起使用。需要 J2SE 1.4 或更高版本才能從源構建釋出二進位制檔案。 對於 1.2.1 版本,從原始碼構建時還需要安裝 JavaCC 4.0 。這對於 1.3.x 版本來說是不必要的,因為它使用了 Maven2,Maven2 在後臺處理所有此類依賴項。

從哪裡開始

從上面的連結下載發行版。該發行版包含廣泛的 JavaDoc 文件以及完整的參考文件和一個示例應用程式,說明了使用 Spring LDAP 的不同方法。

支援

可以在 Spring LDAP 支援論壇 上獲得支援
錯誤報告、增強請求和補丁應提交到 JIRA 問題跟蹤器

原始碼

原始碼可在 Spring Framework Subversion 儲存庫中找到
http://src.springframework.org/svn/spring-ldap/trunk (最新原始碼)
http://src.springframework.org/svn/spring-ldap/tags/spring-ldap-1.3.1.RELEASE (1.3.1 原始碼)

Maven 使用者

所有生產版本的 Artifacts 將從中央 Maven 儲存庫中獲得。或者,您可以指定 SpringSource 釋出儲存庫

<repositories>
    <repository>
        <id>spring-release</id>
        <url>http://maven.springframework.org/release</url>
    </repository>
</repositories>

1.3.1.RELEASE 中的依賴項是

<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-core</artifactId>
    <version>1.3.1.RELEASE</version>
</dependency>
<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-core-tiger</artifactId>
    <version>1.3.1.RELEASE</version>
</dependency>
<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-odm</artifactId>
    <version>1.3.1.RELEASE</version>
</dependency>
<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-ldif-core</artifactId>
    <version>1.3.1.RELEASE</version>
</dependency>
<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-ldif-batch</artifactId>
    <version>1.3.1.RELEASE</version>
</dependency>

釋出候選版本和里程碑版本可從 Spring Source 里程碑儲存庫獲得

<repositories>
    <repository>
        <id>spring-milestone</id>
        <url>http://maven.springframework.org/milestone</url>
    </repository>
</repositories>

Nightly snapshots 可從 Spring Source snapshot 儲存庫獲得

<repositories>
    <repository>
        <id>spring-snapshot</id>
        <url>http://maven.springframework.org/snapshot</url>
    </repository>
</repositories>

1.3.2.CI-SNAPSHOT 的依賴項是
<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-core</artifactId>
    <version>1.3.2.CI-SNAPSHOT</version>
</dependency>
<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-core-tiger</artifactId>
    <version>1.3.2.CI-SNAPSHOT</version>
</dependency>
<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-odm</artifactId>
    <version>1.3.2.CI-SNAPSHOT</version>
</dependency>
<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-ldif-core</artifactId>
    <version>1.3.2.CI-SNAPSHOT</version>
</dependency>
<dependency>
    <groupId>org.springframework.ldap</groupId>
    <artifactId>spring-ldap-ldif-batch</artifactId>
    <version>1.3.2.CI-SNAPSHOT</version>
</dependency>

獲取 Spring 新聞資訊

透過 Spring 新聞資訊保持聯絡

訂閱

更上一層樓

VMware 提供培訓和認證,以加速您的進步。

瞭解更多

獲得支援

Tanzu Spring 在一個簡單的訂閱中提供對 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位制檔案。

瞭解更多

即將舉行的活動

檢視 Spring 社群中所有即將舉行的活動。

檢視全部