親愛的 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 的擴展,它可以為關聯的對應程式提供一個指示,表明每個搜尋結果的回應都不同。 (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 每日快照可用於測試和開發目的
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,後者會在幕後處理所有此類依賴項。
從哪裡開始
從上面的連結下載發行版本。 發行版本包含廣泛的 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>
每日快照可從 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>