Spring LDAP 1.3.1 已發佈
親愛的 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 版本
- Spring LDAP 1.3.1.RELEASE 是目前的正式版本
- Spring LDAP 1.3.x nightly snapshots 可用於測試和開發目的
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>
Release candidates 和里程碑可從 Spring Source 里程碑儲存庫獲得
<repositories> <repository> <id>spring-milestone</id> <url>http://maven.springframework.org/milestone</url> </repository> </repositories>
Nightly snapshots 可從 Spring Source 快照儲存庫獲得
<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>