Hi, folks
I'm writing a script that takes a bunch of user entries from LDAP[0]
directory, massages them into a form suitable for LDAP[2] directory, and
then saves the newly made entries to LDAP[1].
Obviously(*) I only want to update the LDAP[1] tree if it's really needed,
and simply ignore the cases where no real changes occur. At first I
thought that comparing of two Net::LDAP::entry objects can be done with
"compare", but apparently this is not the case, and now I'm not so sure if
using the compare method is a wise thing to do. :-(
Do I really have to pick up the "current" user entry from LDAP[1], compare
it to the one I've just built based on data from LDAP[0] by manually
comparing each atribute/value combination, or is there a simpler/better
way to do this?
A second question is about the "modify/replace" operation. Is it safe to
use this operation instead of "modify/add" in case I don't care about the
previously stored values, or do I have to be sure the atribute actually
exists before modifying it?
thx
Denis
(*) LDAP is bad at writing/updating, so it's better to avoid updates if
possible, right?
--
T-Mobile Austria GmbH,
Information Technologies / Services
Knowledge Management & Process Automation
Dr. Denis Havlik, eMail:
[EMAIL PROTECTED]
Rennweg 97-99, BT2E0304031 Phone: +43-1-79-585/6237
A-1030 Vienna Fax:
+43-1-79-585/6584