Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在嵌入式SpringLDAP服务器中启用其他模式?_Java_Spring_Spring Security_Ldap_Spring Ldap - Fatal编程技术网

Java 如何在嵌入式SpringLDAP服务器中启用其他模式?

Java 如何在嵌入式SpringLDAP服务器中启用其他模式?,java,spring,spring-security,ldap,spring-ldap,Java,Spring,Spring Security,Ldap,Spring Ldap,我正在使用Spring 4.3.10和Spring security 3.2.9。我正在尝试将当前设置移动到使用嵌入式ldap服务器,之前我们从war文件部署了自定义服务器。我已经成功地设置了嵌入式ldap并加载了ldif。 但是,当我尝试任何类型的修改请求时,我遇到了一个问题,我认为这是由于没有启用NIS架构(如下所述)导致的: 我无法访问LdapTestUtils,因为我们的版本已降低。这就是我得到的错误: 原因:javax.naming.directory.NoSuchAttribute

我正在使用Spring 4.3.10和Spring security 3.2.9。我正在尝试将当前设置移动到使用嵌入式ldap服务器,之前我们从war文件部署了自定义服务器。我已经成功地设置了嵌入式ldap并加载了ldif。 但是,当我尝试任何类型的修改请求时,我遇到了一个问题,我认为这是由于没有启用NIS架构(如下所述)导致的:

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

原因:javax.naming.directory.NoSuchAttributeException:[LDAP:错误代码16-无此类属性:修改请求失败 对象:“cn=userName_15440098937,ou=6630d92e-d7f4-4b1f-9572-eb0488124123,ou=orgs,ou=oec,dc=opsource,dc=net” 修改[0] 操作:添加 修改 homeDirectory:/opt/workspace/orgs/6/66/6630d92e-d7f4-4b1f-9572-eb0488124123 修改[1] 操作:更换 修改 用户密码:“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.3未注册!];剩余名称“cn=userName_15440098937,ou=6630d92e-d7f4-4b1f-9572-eb0488124123,ou=orgs”

1.3.6.1.1.1.1.3映射到NIS架构中的homeDirectory属性。我对ldap的理解相当基本。是否有任何方法可以通过ldif启用此模式,或者是否有其他方法可以尝试

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'