summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c2c119e)
raw | patch | inline | side by side (parent: c2c119e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Oct 2009 09:50:51 +0000 (09:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Oct 2009 09:50:51 +0000 (09:50 +0000) |
-Saving a workstation twice caused duplicate and reversed iPHostNumber entries.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14508 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14508 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_termDNS.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index 4ceb6fbcb486c0437c95d8e1776d295f1e6497dd..e08e9afddb7c0dde791fc1c558a1654b362fd9e8 100644 (file)
*/
$this->dnsEntry = DNS::getDNSHostEntries($config,$this->OrigCn);
+ $ptr = DNS::FlipIp($this->get_pTRRecord());
+
/* Remove A record which equals $this->ipHostNumber
*/
- $ptr = $this->get_pTRRecord();
foreach($this->dnsEntry['RECORDS'] as $key => $rec){
if(($rec['type'] == "aRecord") && ($rec['value'] == $this->ipHostNumber)){
unset($this->dnsEntry['RECORDS'][$key]);