Question

I am new to ldap and apacheds. I have created embedded LDAP server using apacheds. Example here. But seeing the following issue. Am I creating a wrong partition? How would it look like? Any changes to ldif file?

ERROR I am seeing when importing ldif file:

org.apache.directory.api.ldap.model.exception.LdapNoSuchAttributeException: ERR_04269 ATTRIBUTE_TYPE for OID samaccountname does not exist!

Ldif file:

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

Additional ERROR when service starts up:

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
Était-ce utile?

La solution

check the schema, because in

objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user

is not define the samaccountname, so add the attribute, or schema..i thinks samba.schema

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top