首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法导入具有某些属性的ldif文件

无法导入具有某些属性的ldif文件
EN

Stack Overflow用户
提问于 2013-10-25 16:41:32
回答 1查看 5.6K关注 0票数 5

我对ldap和apacheds很陌生。我使用apacheds创建了嵌入式LDAP服务器。例如这里。但是看到了下面的问题。我是不是创建了一个错误的分区?会是什么样子?对ldif文件有任何更改吗?

导入ldif文件时看到的错误:

org.apache.directory.api.ldap.model.exception.LdapNoSuchAttributeException: ERR_04269 ATTRIBUTE_TYPE for OID samaccountname不存在!

Ldif文件:

代码语言:javascript
复制
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

服务启动时附加错误:

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-10-29 10:46:35

检查架构,因为在

代码语言:javascript
复制
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user

不是定义samaccountname,所以添加属性或模式。我认为是samba.schema

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19595254

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档