You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Aleksander Adamowski <al...@olo.org.pl> on 2009/01/06 11:30:42 UTC
Loading a "changetype: modify" LDIF programatically?
Hi!
I've just discovered that the
org.apache.directory.server.core.integ.IntegrationUtils.injectEntries(DirectoryService,
String) method supports only adding new entries from LDIF.
If I try to feed it a "changetype: modify" LDIF, instead of expected
modifications to existing directory entries, I get a
NullPointerException in
org.apache.directory.server.core.entry.DefaultServerEntry.<init>(DefaultServerEntry.java:256)
- it seems that the LDIF is parsed with an assumption that it relates
to a fresh new entry and it's not initialized correctly when it's a
modification LDIF.
Is there a way to programatically feed a modification LDIF to an
Apache DS service?
--
Best Regards,
Aleksander Adamowski
http://olo.org.pl
Re: Loading a "changetype: modify" LDIF programatically?
Posted by Aleksander Adamowski <ap...@olo.org.pl>.
OK, I've solved this problem in apacheds-core-integ sources:
https://issues.apache.org/jira/browse/DIRSERVER-1300
On Tue, Jan 6, 2009 at 11:30 AM, Aleksander Adamowski
<al...@olo.org.pl> wrote:
> Hi!
>
> I've just discovered that the
> org.apache.directory.server.core.integ.IntegrationUtils.injectEntries(DirectoryService,
> String) method supports only adding new entries from LDIF.
>
> If I try to feed it a "changetype: modify" LDIF, instead of expected
> modifications to existing directory entries, I get a
> NullPointerException in
> org.apache.directory.server.core.entry.DefaultServerEntry.<init>(DefaultServerEntry.java:256)
> - it seems that the LDIF is parsed with an assumption that it relates
> to a fresh new entry and it's not initialized correctly when it's a
> modification LDIF.
>
> Is there a way to programatically feed a modification LDIF to an
> Apache DS service?
>
> --
> Best Regards,
> Aleksander Adamowski
> http://olo.org.pl
>
--
Best Regards,
Aleksander Adamowski
http://olo.org.pl