I am trying to create a custom ITDI adapter and having an issue where
on my modify statements it is passing the old account attributes to
the ITDI Assembly line. The custom adapter is built to override the
update function as it calls a stored procedure to update a database
with the attributes passed.
Why is it that even when attributes are changed the old ones are
passed? Does it have to do with the service.def and insisting that
all attributes must be passed regardless of change?
Thanks,
Jon
function getCorrectOpValue(att)
{
task.logmsg("INFO","= Att size: " + att.size());
for (i = 0; i < att.size(); i++) {
task.logmsg("INFO","= " + att.getValue(i));
task.logmsg("INFO","= " + att.getValueOperation(i));
}
}
attnames = conn.getAttributeNames();
for (aname in attnames) {
att = conn.getAttribute(aname);
if (att.getOperation() == "modify") {
// values are only tagged if the Attribute is "modify"
for (i = 0; i < att.size(); i++) {
if (att.getValueOperation(i) == "delete") {
att.removeValueAt(i);
i--; // dec i or we skip a value
}
}
}
}
Hope this helps!
-Eddie