summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e054d4a)
raw | patch | inline | side by side (parent: e054d4a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Jul 2006 10:18:39 +0000 (10:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Jul 2006 10:18:39 +0000 (10:18 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4035 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions_FAI.inc | patch | blob | history |
index f565c07d1bd58d4fe2a44a0a24f6f7773135ff8a..807e60558564fadf6ad7361935f199d9e6718b72 100644 (file)
}
}
}
-
+
+
/* Check if this a leaf release or not */
if(count($following_releases) == 0 ){
}
}
}
+ /* Remove the source object from ldap. It is no longer required */
+ if($removed){
+ if(get_parent_release_object($Current_DN,false) == ""){
+ $ldap->clearResult();
+ $ldap->cat($Current_DN);
+
+ $tmp = $ldap->fetch();
+ return($tmp['dn']);
+ }
+ }
echo "<br>.--------------------------------------------------------------------.<br>";
+
+ return("");
}
/* Get previous version of the object dn */
-function get_parent_release_object($dn)
+function get_parent_release_object($dn,$include_myself=true)
{
global $config;
$ldap = $config->get_ldap_link();
/* Get base release */
$base_release = get_release_dn($dn);
- $previous_releases[] = $base_release;
+ if($include_myself){
+ $previous_releases[] = $base_release;
+ }
/* Get previous release dns */
$tmp = get_previous_releases_of_this_release($base_release,true);