On 13 Aug 2004, at 10:08, Peter Church wrote:
Hi,
I hope this makes some sense and I am using the ldapsearch container in
a valid way. I am currently writing some programs that will take standard
templates from an ldap database modify them then write the entries back to
the database.


I perform an ldapsearch and I get my results back in the container.
I can get the attributes and values but what I really need to do is to
change the values so that they can be written to a new record. I can extract
them out to a hash but that seems to be a waist of time as the record is
already in the structure it need to go back However I cannot find the method
to do it.


Is it possible to do what I am asking?
More to the point, should I be doing what I'm asking?
How is it done?


Your search will return a Net::LDAP::Search object from which you can get the
Net::LDAP::Entry objects. Net::LDAP::Entry supports methods for modifying it's
contents locally. You can then use the update method on that object to send
you changes to the server. See the Net::LDAP::Entry documentation.


Graham.



Reply via email to