我尝试通过UnboundId提供的LDIFReader读取以下LDIF代码段。我正在使用方法调用ldifReader.readEntry()。在阅读第二条记录时抱怨它does not begin with an attribute name followed by a colon.
我可以使用一些指针。
# Start of Entries in the file
dn: OU=People,DC=abc,DC=pqrs,DC=int
changetype: add
objectClass: organizationalUnit
objectClass: pae-OrganizationalGroup
ou: People
dn: OU=People,DC=abc,DC=pqrs,DC=int
changetype: modify
replace: objectClass
objectClass: pae-OrganizationalGroup
objectClass: organizationalUnit
-
# End of entries in file