Hi,
I'm trying to write a simple module to edit a simple attribute.
I want to edit the "mDBStorageQuota" attributes from the
"msExchMailStorage" object class.
I can add manually this object class to an user and set the
"mDBStorageQuota" attribute.
I wrote a simple module, you can find it in attachment, to manage
msExchMailStorage object class and mDBStorageQuota attribute from LAM.
The object class is correctly added when I edit an user, I can read
mDBStorageQuota attribute when it was set manually but when I try to
edit it or add it, the attribute is removed or not added.
What is wrong in my module?
--
Martin Leusch
[email protected]
"high");
// LDAP filter
$return["ldap_filter"] = array('or' => "(objectClass=msExchMailStorage)");
// alias name
$return["alias"] = _("OpenChange");
// module dependencies
$return['dependencies'] = array('depends' => array('windowsUser'), 'conflicts' => array());
// managed object classes
$return['objectClasses'] = array('msExchMailStorage');
// managed attributes
$return['attributes'] = array('mDBStorageQuota');
// help
$return['help'] = array(
'mDBStorageQuota' => array(
"Headline" => _('Mailbox quota'), 'attr' => 'mDBStorageQuota',
"Text" => _("Quota of the user's mailboxe in bytes")
)
);
return $return;
}
public function load_Messages() {
$this->messages['mDBStorageQuota'][0] = array('ERROR', _('Mailbox quota'), _('Mailbox quota must contain an integer number.'));
}
public function display_html_attributes() {
$return = new htmlTable();
$this->addSimpleInputTextField($return, 'mDBStorageQuota', 'Mailbox quota');
return $return;
}
public function process_attributes() {
$return = array();
$this->attributes['mDBStorageQuota'] = intval($_POST['mDBStorageQuota']);
return $return;
}
}
?>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public