如何在嵌入式Spring ldap服务器中启用其他架构?

时间:2018-12-05 12:13:15

标签: java spring spring-security ldap spring-ldap

我正在将Spring 4.3.10与Spring Security 3.2.9一起使用。我试图将当前设置更改为使用嵌入式ldap服务器,之前我们是从war文件中部署了自定义服务器。我已经能够成功设置嵌入式ldap并加载ldif。 但是,当我尝试任何形式的修改请求时,都会遇到一个问题,我认为是由于未启用NIS模式而导致的,如下所示:

https://github.com/spring-projects/spring-ldap/pull/20

我无法访问LdapTestUtils,因为我们的版本降低了。这是我得到的错误:

 Caused by: javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16 - NO_SUCH_ATTRIBUTE: failed for     Modify Request
        Object : 'cn=userName_1544009893937,ou=6630d92e-d7f4-4b1f-9572-eb0488124123,ou=orgs,ou=oec,dc=opsource,dc=net'
            Modification[0]
                Operation :  add
                Modification
    homeDirectory: /opt/workspace/orgs/6/66/6630d92e-d7f4-4b1f-9572-eb0488124123
            Modification[1]
                Operation :  replace
                Modification
    userPassword: '0x7B 0x53 0x53 0x48 0x41 0x7D 0x46 0x69 0x50 0x66 0x6D 0x50 0x32 0x34 0x57 0x47 ...'
: attributeType w/ OID 1.3.6.1.1.1.1.3 not registered!]; remaining name 'cn=userName_1544009893937,ou=6630d92e-d7f4-4b1f-9572-eb0488124123,ou=orgs'

1.3.6.1.1.1.1.3映射到NIS模式中的homeDirectory属性。我对ldap的理解很基础。有没有什么方法可以通过ldif启用此模式,或者我可以尝试其他方法吗?

0 个答案:

没有答案