Hello Graham,

Sorry to disturb you, but I'm writing about a problem I get in perl using the Net::LDAP::DSML module.
As it seems to me that there is no activity around the CPAN bug report tools for perl-ldap, I was wondering if you were still involved in this project and if you could kindly spend a few seconds reading the description below and telling me what you think about it ...


Thanks in advance for your reply.

Regards,

Pierre


---------------------



Using DSML.pm ($Id: DSML.pm,v 1.19 2003/05/07 10:53:42 chrisridd Exp $) to write entries to a DSML file, with a write_entry call for each entry, the context "directory-entries" is inserted for each entry.


The writer doesn't see that it is already in the "directory-entries" context. This is caused by line 320 in DSML.pm :

while (@$context and ($context->[-1] ne 'dsml' or $new eq '')) {

Shouldn't it be something like :

while (@$context and ($context->[-1] ne $new) and ($context->[-1] ne 'dsml' or $new eq '')) {

Otherwise, the DSML file will contain a lot of "directory-entries" elements, each of them containing only one "entry" element. It seems not to be conform to the DSML DTD ...

Am I right ? Or am I using the DSML writer incorrectly ?


Reply via email to