diff --git a/plugins/personal/connectivity/class_intranetAccount.inc b/plugins/personal/connectivity/class_intranetAccount.inc
index b1831285ee59cf0c6715fd48dcd9c1bd574ca28f..6b0638ace7cc74f5d99d037b3bf8db8f97c6e780 100644 (file)
function execute()
{
/* Call parent execute */
- plugin::execute();
+// plugin::execute();
$display= "";
*/
function remove_from_parent()
{
- plugin::remove_from_parent();
- $ldap= $this->config->get_ldap_link();
+ if(chkacl($this->acl, 'intranetAccount') == ""){
+ plugin::remove_from_parent();
+ $ldap= $this->config->get_ldap_link();
- $ldap->cd($this->dn);
- @DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
- $this->attributes, "Save");
- $ldap->modify($this->attrs);
- show_ldap_error($ldap->get_error());
+ $ldap->cd($this->dn);
+ @DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
+ $this->attributes, "Save");
+ $this->cleanup();
+$ldap->modify ($this->attrs);
- /* Optionally execute a command after we're done */
- $this->postremove();
+ show_ldap_error($ldap->get_error());
+
+ /* Optionally execute a command after we're done */
+ $this->postremove();
+ }
}
*/
function save()
{
- plugin::save();
-
- /* Write back to ldap */
- $ldap= $this->config->get_ldap_link();
- $ldap->cd($this->dn);
- $ldap->modify($this->attrs);
- show_ldap_error($ldap->get_error());
-
- /* Optionally execute a command after we're done */
- $this->postcreate();
+ if(chkacl($this->acl, 'intranetAccount') == ""){
+ plugin::save();
+
+ /* Write back to ldap */
+ $ldap= $this->config->get_ldap_link();
+ $ldap->cd($this->dn);
+ $this->cleanup();
+$ldap->modify ($this->attrs);
+
+ show_ldap_error($ldap->get_error());
+
+ /* Optionally execute a command after we're done */
+ $this->postcreate();
+ }
}
}