summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b997eb0)
raw | patch | inline | side by side (parent: b997eb0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Feb 2006 07:18:13 +0000 (07:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Feb 2006 07:18:13 +0000 (07:18 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2638 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_termDNS.inc | patch | blob | history |
index 1d1ea145ca915b6fa29240adf23ebb0b1c9b7593..2a2e7df25ab17411edc8fb7b042878c0edeeec46 100644 (file)
$message[]=(_("The given macaddress is invalid. There must be 6 1byte segments seperated by ':'."));
}
+ /* only perfrom this checks if this is a valid DNS account */
if($this->DNS_is_account){
foreach($this->types as $name => $values){
+
+ /* Check if there is an aRecord defined which uses the same IP as used in IPhostAddress */
if(($values['type'] == "aRecord")&&($values['value'] == $this->ipHostNumber)&&($values['status']!="deleted")){
- $message[]=sprintf(_("The device IP '%s' is added as 'A Record', this will be done automatically, please remove the record."),$this->ipHostNumber);
+ $message[]=sprintf(_("The device IP '%s' is added as 'A Record', this will be done automatically, please remove the record."),
+ $this->ipHostNumber);
+ }
+
+ /* only lower-case is allowed in record entries ... */
+ if($values['value'] != strtolower($values['value'])){
+ $message[] = sprintf(_("Only lowercase is allowed, please check your '%ss'."),$values['type']);
}
}
}
}
-
+ /* Create html table with all used record types
+ */
function generateRecordsList($changeStateForRecords)
{
$changeStateForRecords = "";
return($str);
}
+ /* Create a html select box which allows us to select different types of records */
function generateRecordListBox($selected,$name)
{
$str = "<select name='".$name."' id='".$name."'>";
return($str);
}
+ /* return all Zone names */
function get_Zones()
{
$ret = array();
return($ret);
}
+ /* this is used to generate ldap friendly output of our
+ dns configuration
+ */
function generate_LDAP_entries($delete)
{
-
$entries = array();
-
$delete = array();
/* Generate Main Entry */
}
}
+ /* add ObjectClasses */
foreach($entries as $key => $entry ){
$entries[$key]['objectClass']=array("top","dNSZone");
$entries[$key] = array_reverse($entries[$key]);
}
+ /* Check if record type has changed, and if we need to delete this record attribute from ldap entry */
foreach($this->types as $type){
if(isset($type['inittype'])){
if(!isset($entries[$dn][$type['inittype']])){