- 浏览: 170999 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
liujianche11:
客户端收到消息后封装回来的IQ应该是拿不到那个id的吧 你在 ...
openfire消息回执插件 -
向奕昌:
解决了,几天tomcat启动都是这问题
java.io.EOFException解决 -
xfei6868:
在spring-ldap 1.3的文档中也有同样的例子,没有找 ...
SpringLDAP-Reference(中文文档)(五) -
youchengLin:
问题解决了,多谢
java.io.EOFException解决 -
xihuan&java:
谢谢问题解决
java.io.EOFException解决
声明:本文系我自己翻译的,留作参考,本人英语较差,错误是难免的...各位看者以此为准产生后果概不负责。^_^
附件中为SpringLDAP1.3英文文档。
SpringLDAP-ReferenceDocumentation
Preface............................................................................................................................................iv
1.Introduction..................................................................................................................................1
1.1.Overview...........................................................................................................................1
1.2.Packagingoverview...........................................................................................................3
1.3.Packagestructure...............................................................................................................3
1.3.1.org.springframework.transaction.compensating.........................................................3
1.3.2.org.springframework.ldap........................................................................................4
1.3.3.org.springframework.ldap.core.................................................................................4
1.3.4.org.springframework.ldap.core.support.....................................................................4
1.3.5.org.springframework.ldap.core.simple......................................................................4
1.3.6.org.springframework.ldap.pool.................................................................................4
1.3.7.org.springframework.ldap.pool.factory.....................................................................4
1.3.8.org.springframework.ldap.pool.validation.................................................................4
1.3.9.org.springframework.ldap.support............................................................................5
1.3.10.org.springframework.ldap.authentication.................................................................5
1.3.11.org.springframework.ldap.control...........................................................................5
1.3.12.org.springframework.ldap.filter..............................................................................5
1.3.13.org.springframework.ldap.transaction.compensating................................................5
1.3.14.org.springframework.ldap.transaction.compensating.manager..................................5
1.3.15.org.springframework.ldap.transaction.compensating.support....................................5
1.4.Support..............................................................................................................................6
2.BasicOperations...........................................................................................................................7
2.1.SearchandLookupUsingAttributesMapper........................................................................7
2.2.BuildingDynamicFilters....................................................................................................8
2.3.BuildingDynamicDistinguishedNames..............................................................................9
2.4.BindingandUnbinding.....................................................................................................10
2.4.1.BindingData.........................................................................................................10
2.4.2.UnbindingData.....................................................................................................10
2.5.Modifying.......................................................................................................................10
2.5.1.Modifyingusing rebind ........................................................................................11
2.5.2.Modifyingusing modifyAttributes .......................................................................11
2.6.Sampleapplications..........................................................................................................11
3.SimplerAttributeAccessandManipulationwithDirContextAdapter.............................................12
3.1.Introduction.....................................................................................................................12
3.2.SearchandLookupUsingContextMapper.........................................................................12
3.2.1.TheAbstractContextMapper..................................................................................13
3.3.BindingandModifyingUsingDirContextAdapter..............................................................13
3.3.1.Binding.................................................................................................................13
3.3.2.Modifying.............................................................................................................14
3.4.ACompletePersonDaoClass...........................................................................................15
4.AddingMissingOverloadedAPIMethods....................................................................................17
4.1.ImplementingCustomSearchMethods..............................................................................17
4.2.ImplementingOtherCustomContextMethods...................................................................18
5.ProcessingtheDirContext...........................................................................................................20
5.1.CustomDirContextPre/Postprocessing..............................................................................20
5.2.ImplementingaRequestControlDirContextProcessor........................................................20
5.3.PagedSearchResults........................................................................................................21
6.TransactionSupport....................................................................................................................23
6.1.Introduction.....................................................................................................................23
6.2.Configuration...................................................................................................................23
6.3.JDBCTransactionIntegration...........................................................................................24
6.4.LDAPCompensatingTransactionsExplained....................................................................24
SpringLDAP(1.3.0.RELEASE)ii6.4.1.RenamingStrategies..............................................................................................26
7.Java5Support............................................................................................................................27
7.1.SimpleLdapTemplate.......................................................................................................27
8.Configuration.............................................................................................................................28
8.1.ContextSourceConfiguration............................................................................................28
8.1.1.LDAPServerURLs...............................................................................................28
8.1.2.BaseLDAPpath....................................................................................................28
8.1.3.DirContextAuthentication.....................................................................................28
8.1.4.NativeJavaLDAPPooling....................................................................................31
8.1.5.AdvancedContextSourceConfiguration.................................................................31
8.2.LdapTemplateConfiguration............................................................................................31
8.2.1.IgnoringPartialResultExceptions............................................................................31
8.3.ObtainingareferencetothebaseLDAPpath.....................................................................32
9.PoolingSupport..........................................................................................................................33
9.1.Introduction.....................................................................................................................33
9.2.DirContextValidation......................................................................................................33
9.3.PoolProperties.................................................................................................................33
9.4.Configuration...................................................................................................................35
9.4.1.ValidationConfiguration.......................................................................................36
9.5.KnownIssues..................................................................................................................36
9.5.1.CustomAuthentication..........................................................................................36
10.UserAuthenticationusingSpringLDAP....................................................................................38
序言............................................................................................................................................iv
1.引言..................................................................................................................................1
1.1.概述...........................................................................................................................1
1.2.包概述...........................................................................................................3
1.3.包结构...............................................................................................................3
1.3.1.org.springframework.transaction.compensating.........................................................3
1.3.2.org.springframework.ldap........................................................................................4
1.3.3.org.springframework.ldap.core.................................................................................4
1.3.4.org.springframework.ldap.core.support.....................................................................4
1.3.5.org.springframework.ldap.core.simple......................................................................4
1.3.6.org.springframework.ldap.pool.................................................................................4
1.3.7.org.springframework.ldap.pool.factory.....................................................................4
1.3.8.org.springframework.ldap.pool.validation.................................................................4
1.3.9.org.springframework.ldap.support............................................................................5
1.3.10.org.springframework.ldap.authentication.................................................................5
1.3.11.org.springframework.ldap.control...........................................................................5
1.3.12.org.springframework.ldap.filter..............................................................................5
1.3.13.org.springframework.ldap.transaction.compensating................................................5
1.3.14.org.springframework.ldap.transaction.compensating.manager..................................5
1.3.15.org.springframework.ldap.transaction.compensating.support....................................5
1.4.支持..............................................................................................................................6
2.基本操作...........................................................................................................................7
2.1.搜索和查找用户属性........................................................................7
2.2.构建动态过滤器....................................................................................................8
2.3.构造动态卓越的名字集合..............................................................................9
2.4.绑定与反绑定.....................................................................................................10
2.4.1.绑定数据.........................................................................................................10
2.4.2.反绑定数据.....................................................................................................10
2.5.修改.......................................................................................................................10
2.5.1.利用rebind修改 ........................................................................................11
2.5.2.利用 modifyAttributes 修改.......................................................................11
2.6.示例应用..........................................................................................................11
3.通过DirContextAdapter实现简单属性接口运用.............................................12
3.1.介绍.....................................................................................................................12
3.2.利用ContextMapper进行搜索查询.........................................................................12
3.2.1.The AbstractContextMapper..................................................................................13
3.3.利用DirContextAdapter绑定和修改..............................................................13
3.3.1.绑定.................................................................................................................13
3.3.2.修改.............................................................................................................14
3.4.一个完整的person操作类...........................................................................................15
4.Adding Missing Overloaded API Methods....................................................................................17
4.1.实现自定义的查询方法..............................................................................17
4.2.实现其它自定义的查询方法...................................................................18
5.DirContext配置...........................................................................................................20
5.1.自定义DirContextPre/Postprocessing..............................................................................20
5.2.实现一个请求控制的DirContextProcessor........................................................20
5.3.查询分页........................................................................................................21
6.事务支持....................................................................................................................23
6.1.介绍.....................................................................................................................23
6.2.配置...................................................................................................................23
6.3.JDBC事务集成...........................................................................................24
6.4.LDAP事务说明....................................................................24
6.4.1.重命名策略..............................................................................................26
7.Java5支持............................................................................................................................27
7.1.simpleLdapTemplate.......................................................................................................27
8.配置.............................................................................................................................28
8.1.ContextSource配置............................................................................................28
8.1.1.LDAPServer地址...............................................................................................28
8.1.2.BaseLDAPpath....................................................................................................28
8.1.3.DirContext验证.....................................................................................28
8.1.4.本地JavaLDAP连接池....................................................................................31
8.1.5.高级ContextSource配置.................................................................31
8.2.LdapTemplate 配置............................................................................................31
8.2.1.忽略PartialResultExceptions............................................................................31
8.3. base LDAP path通用参考.....................................................................32
9.连接池支持..........................................................................................................................33
9.1.介绍.....................................................................................................................33
9.2.DirContext 确认......................................................................................................33
9.3.Pool 属性.................................................................................................................33
9.4.配置...................................................................................................................35
9.4.1.验证配置.......................................................................................36
9.5.需要知道的问题..................................................................................................................36
9.5.1.自定义验证..........................................................................................36
10.利用SpringLDAP对用户验证....................................................................................38
- spring-ldap-reference.pdf (155.9 KB)
- 下载次数: 189
发表评论
-
spring ldap操作(二)简单的用户登录验证
2010-04-23 17:06 1128今天主要实验了下用户的登录验证,在PersonDaoImpl类 ... -
spring ldap操作(一)目录测试环境搭建
2010-04-22 16:50 3507Spring LDAP 是一个用于操作 LDAP 的 Java ... -
SpringLDAP-Reference(中文文档)(五)
2010-04-22 14:21 2740第五章 DirContext配制 5.1 自定义DirCon ... -
SpringLDAP-Reference(中文文档)(四)
2010-04-16 15:10 1720第四章 添加missing API方法重载 4.1自定 ... -
SpringLDAP-Reference(中文文档)(三)
2010-04-16 14:02 2901第三章 通过DirContextAdapt ... -
SpringLDAP-Reference(中文文档)(二)
2010-04-15 15:41 2099第二章 基本操作 在 ... -
SpringLDAP-Reference(中文文档)(一)
2010-04-14 17:03 2958序言 Ldap jndi类似于sql编程用jdb ... -
Novell eDirectory安装步骤(备忘)
2009-12-04 16:38 3641详见附件 第一步:查看硬件是否符合安装eDirecto ...
相关推荐
### Spring LDAP 参考文档详解 #### 前言 Spring LDAP 是一款为简化 LDAP (Lightweight Directory Access Protocol) 操作而设计的框架。它基于 Spring 框架,利用了 Spring 的强大功能来实现对 LDAP 目录的访问、...
由于提供的文件内容是关于Spring Security的参考资料,接下来将详细说明Spring Security 4.0.4.RELEASE版本中涉及的关键知识点。在展开知识点介绍之前,需要指出,由于原文件可能包含一些格式错误或 OCR 识别的问题...
Spring-LDAP是Spring框架的一部分,专注于提供与轻量级目录访问协议(LDAP)集成的功能。它简化了开发人员在Java应用程序中与LDAP服务器进行交互的过程,提供了一种更加面向对象的方式来处理LDAP操作。 ### 包装...
2. `spring-ldap-reference.pdf`:这个文件很可能是 Spring LDAP 的官方参考文档,包含了框架的所有类、接口和方法的详细介绍,以及示例代码。通过阅读此文档,你可以深入理解 Spring LDAP 的工作原理,学习如何配置...
- **LDAP (spring-security-ldap.jar)**:提供 LDAP 认证和授权支持。 - **ACL (spring-security-acl.jar)**:提供了基于访问控制列表 (ACL) 的权限管理。 - **CAS (spring-security-cas.jar)**:支持使用 CAS 单点...
- LDAP (`spring-security-ldap.jar`):提供 LDAP 集成支持。 - ACL (`spring-security-acl.jar`):提供基于权限的访问控制功能。 - CAS (`spring-security-cas.jar`):提供对 CAS 协议的支持。 - OpenID (`...
### Spring Security 参考文档概览 #### 一、引言与基础知识 ##### 1.1 什么是 Spring Security? Spring Security 是一个强大的、高度可定制的身份验证和访问控制框架。它为应用程序提供了一种机制来保护自身免...
### Spring Security Reference中文版知识点概览 #### 一、Spring Security 概述 - **Spring Security** 是一个强大的和高度可定制的身份验证和访问控制框架。它为基于Spring的应用提供了声明式的安全服务。 ####...
标题:springsecurity3.1.pdf 描述:springsecurity3.1.pdf 标签:spring security3.1 部分内容:SpringSecurity Reference Documentation by Ben Alex and Luke Taylor 3.1.4.RELEASE **一、Spring Security 3.1...
首先,"Apache_Shiro_reference(中文版).pdf"是Shiro的官方中文参考手册。这个文档详细介绍了Shiro的各种组件和API,包括核心概念如Subject、Realms、Caches等,以及认证、授权、会话管理和密码策略等具体功能。通过...
`Reference_Guide_en-US.pdf`是关于JBoss Portal全面技术细节的参考文档,包括API详解、配置选项、系统架构等深入内容,适合开发者和高级用户查阅。 **8. 用户指南** `User_Guide_en-US.pdf`可能专注于用户界面和...