Applying a LDIF which is as string and not as file

Cyril Cheneson <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
HI all,

I have a LDAP structure (ldif format) as perl string.

my $ldap_struct =<<"END";

HERE MY LDIF

END

And I would like to apply the structure to my LDAP server.

Net::LDAP::Ldif accepts file name or file handle only.

Anyone has an idea how I can apply the LDIF string to LDAP?

I m using OpenLDAP

Thanks a lot

Cyril



-- 
----------------------------------
Cyril Cheneson

I have to do some "real work" now, so don't write anything interesting. :-)
            --Larry Wall
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.