summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 15f7e54)
raw | patch | inline | side by side (parent: 15f7e54)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Jan 2007 06:35:12 +0000 (06:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Jan 2007 06:35:12 +0000 (06:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5571 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNSeditZoneEntries.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc
index 3a13bde7dbfac17fc1f0b18238cb336979970ad1..21c334d697fb49e5072afb9160e96da168d3bbc7 100644 (file)
/* attribute list for save action */
var $ignore_account = TRUE;
- var $attributes = array();
+ var $attributes = array("cn");
var $objectclasses = array("whatever");
var $Devices = array();
var $RecordTypes = array(); // Possible record type.
var $disableDialog = false; // Dialog will be disabled, if this zone is new
+ var $cn;
function servDNSeditZoneEntries ($config,$dn, $zoneObject)
{
*/
$this->RecordTypes = getDnsRecordTypes();
$this->dn = "zoneName=".$zoneObject['InitialzoneName'].",".$dn;
- $this->zoneName = $zoneObject['InitialzoneName'];
- $this->reverseName = $zoneObject['InitialReverseZone'];
+ $this->zoneName = strtoupper($this->cn)."/".$zoneObject['InitialzoneName'];
+ $this->reverseName = strtoupper($this->cn)."/".$zoneObject['InitialReverseZone'];
/* Get ldap connection
*/
$ldap->cd($this->config->current['BASE']);
$names = array();
+
foreach($this->Devices as $DevName => $device){
+ /* skip checking empty attributes */
+ if(count($this->Devices[$DevName]['RECORDS']) == 0){
+ return;
+ }
+
/* Checking entry name
*/
if((!is_uid($DevName)) | (empty($DevName))){
/* Names should be written in lowercase
*/
+
+
if(strtolower($DevName) != $DevName){
$message[] = sprintf(_("The host name '%s' should be written in lowercase."), $DevName);
}
$todo = array();
+ print_a($this->Devices);
+
/* Create todolist
*/
foreach($this->Devices as $name => $dev){