我对ldap和apacheds很陌生。我使用apacheds创建了嵌入式LDAP服务器。例如这里。但是看到了下面的问题。我是不是创建了一个错误的分区?会是什么样子?对ldif文件有任何更改吗?
导入ldif文件时看到的错误:
org.apache.directory.api.ldap.model.exception.LdapNoSuchAttributeException: ERR_04269 ATTRIBUTE_TYPE for OID samaccountname不存在!
Ldif文件:
dn: cn=Foo Bar,ou=people,o=foo,cn=ldaplookup,ou=dev,dc=foo,dc=bar
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: Foo Bar
sn: foo_bar
givenName: Foo
name: Foo Bar
displayName: Foo, Bar
sAMAccountName: foo_bar
userPrincipalName: foo_bar@foo.chicago.com
mail: mail_foo@foo.com服务启动时附加错误:
11:19:12.622 [ATDD] [main] ERROR o.a.d.s.c.p.i.b.AbstractBTreePartition - ATDD - Cannot initialize the index for AttributeType userprincipalname, this value does not exist
11:19:12.622 [ATDD] [main] ERROR o.a.d.s.c.p.i.b.AbstractBTreePartition - ATDD - Cannot initialize the index for AttributeType user, this value does not exist
11:19:12.622 [ATDD] [main] ERROR o.a.d.s.c.p.i.b.AbstractBTreePartition - ATDD - Cannot initialize the index for AttributeType samaccountname, this value does not exist发布于 2013-10-29 10:46:35
检查架构,因为在
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user不是定义samaccountname,所以添加属性或模式。我认为是samba.schema
https://stackoverflow.com/questions/19595254
复制相似问题