草庐IT

contextSource

全部标签

java - Spring LDA : Problem with contextSource Bean

我正在编写一个使用LDAP的Spring应用程序。这是我的beans文件。这是我的beans创建代码:ApplicationContextfac=newClassPathXmlApplicationContext("a/b/c/ldap.xml");HelloLdaphello=(HelloLdap)fac.getBean("helloLdap");这是我的错误信息:Exceptioninthread"main"org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'contex

javax.命名.AuthenticationException : [LDAP: error code 49 - Invalid Credentials]

我是ldap的新手,我正在尝试我认为是一个简单的例子来测试springldap模块,其中有人已经为测试设置了一个ldap实例。关于我正在使用的ldap实例的详细信息可以在这里找到:http://blog.stuartlewis.com/2008/07/07/test-ldap-service/comment-page-3/我使用了ldap浏览器/管理工具(SofterraLDAPAdmin),我可以毫无问题地访问该目录。当我尝试使用java和spring-ldap(2.0.1)时,我得到了上面提到的身份验证异常。在设置我自己的ldap实例以尝试进一步解决此问题之前,我想在这里检查一下,

java - 使用 Spring Security 和 JavaConfig 进行身份验证时出现 PartialResultException

我目前正在使用SpringBoot创建一个新的Web应用程序,并开始集成SpringSecurity以进行身份​​验证。成功后基于SpringBootLDAPtutorial,我想将基于JavaConfig的配置指向我的ActiveDirectory实例。我的应用程序现在可以按预期处理错误的凭据,但现在有效的凭据会导致javax.naming.PartialResultException:UnprocessedContinuationReference(s);remainingname''这是一个常见问题--有一个numberofplaces遇到这个问题的地方。解决方案似乎是将Cont

java - 通过注释而不是 XML 配置 Spring LdapTemplate 的最佳实践?

对于一个SpringBoot应用程序,我使用annotations成功配置了一个SpringLdapTemplate,包括LdapContextSource依赖与@Values来自application.properties。(Woot!我找不到示例,所以也许这对其他人有帮助。)片段(如下)设置上下文源,将其注入(inject)LdapTemplate,然后将其Autowiring到我的DirectoryService中。有没有更好/更简洁的方法在SpringBoot应用中设置ContextSource?application.properties(在类路径上):ldap.url=ld

java - 通过注释而不是 XML 配置 Spring LdapTemplate 的最佳实践?

对于一个SpringBoot应用程序,我使用annotations成功配置了一个SpringLdapTemplate,包括LdapContextSource依赖与@Values来自application.properties。(Woot!我找不到示例,所以也许这对其他人有帮助。)片段(如下)设置上下文源,将其注入(inject)LdapTemplate,然后将其Autowiring到我的DirectoryService中。有没有更好/更简洁的方法在SpringBoot应用中设置ContextSource?application.properties(在类路径上):ldap.url=ld