DaB*_*ars 5 java directoryservices ldap openldap apacheds
我是 ldap 和 apacheds 的新手。我已经使用 apacheds 创建了嵌入式 LDAP 服务器。示例在这里。但是看到下面的问题。我创建了错误的分区吗?它会是什么样子?ldif 文件有什么变化吗?
导入 ldif 文件时出现错误:
org.apache.directory.api.ldap.model.exception.LdapNoSuchAttributeException: ERR_04269 OID samaccountname 的 ATTRIBUTE_TYPE 不存在!
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
Run Code Online (Sandbox Code Playgroud)
服务启动时的附加错误:
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
Run Code Online (Sandbox Code Playgroud)
检查架构,因为在
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
Run Code Online (Sandbox Code Playgroud)
没有定义 samaccountname,因此添加属性或 schema..我认为 samba.schema
| 归档时间: |
|
| 查看次数: |
4897 次 |
| 最近记录: |