summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3bc2da9)
raw | patch | inline | side by side (parent: 3bc2da9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Mar 2006 11:39:15 +0000 (11:39 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Mar 2006 11:39:15 +0000 (11:39 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2933 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNS.inc | patch | blob | history | |
plugins/admin/systems/class_termDNS.inc | patch | blob | history |
index 7bc056a17d3cf03df0014f7cb394260e7a8e6c86..a54546ec89bc798e29a714b57ec10689ffeeda6a 100644 (file)
/* Get differences
*/
$tmp = getDNSZoneEntriesDiff($this->config,$this->Zones,$this->orig_dn);
-
+
/* Updated zone entries if reverser or forward name has changed
* Must be done before moving entries, else the given dn is invalid
*/
index c722bc59dbdfc187389e6437a4bd4a08c890c388..d543755b16182a08627df6566f33fc043848bdc9 100644 (file)
{
$message= array();
+
/* Check if ip must be given
*/
if(($this->IPisMust)||($this->DNS_is_account)){
$tmp = getDNSHostEntriesDiff($this->config,$this->OrigCn,$this->dnsEntry,$this->cn);
}
- /* Delete dns */
- foreach($tmp['del'] as $dn => $del){
- $ldap->cd($dn);
- $ldap->rmdir_recursive($dn);
- }
-
/* move follwoing entries
*/
foreach($tmp['move'] as $src => $dst){
$this->recursive_move($src,$dst);
}
+ /* Delete dns */
+ foreach($tmp['del'] as $dn => $del){
+ $ldap->cd($dn);
+ $ldap->rmdir_recursive($dn);
+ }
+
/* Add || Update new DNS entries
*/
foreach($tmp['add'] as $dn => $attrs){