Code

change config-file parameter
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Feb 2008 14:09:31 +0000 (14:09 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Feb 2008 14:09:31 +0000 (14:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8868 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/ArpHandler.pm

index 4fa4d14a3fc777e0ac6e44f3fc29c5b5dc48a538..f7ae23010f0fc96f7d29ddd29e12ad7575ad654f 100644 (file)
@@ -49,15 +49,15 @@ if($lookup_vendor) {
 
 my %cfg_defaults =
 (
-       "arp" => {
-               "arp-enabled"           => [\$arp_activ,         "true"],
-               "arp-interface"       => [\$arp_interface,    "all"],
+       "ArpHandler" => {
+               "activ"           => [\$arp_activ,         "on"],
+               "interface"       => [\$arp_interface,    "all"],
        },
        "server" => {
-               "ldap-uri"            => [\$ldap_uri,            ""],
-               "ldap-base"           => [\$ldap_base,           ""],
-               "ldap-admin_dn"       => [\$ldap_admin_dn,       ""],
-               "ldap-admin_password" => [\$ldap_admin_password, ""],
+               "ldap_uri"            => [\$ldap_uri,            ""],
+               "ldap_base"           => [\$ldap_base,           ""],
+               "ldap_admin_dn"       => [\$ldap_admin_dn,       ""],
+               "ldap_admin_password" => [\$ldap_admin_password, ""],
        },
 );
 
@@ -93,7 +93,7 @@ sub get_module_info {
 
        &read_configfile();
        # Don't start if some of the modules are missing
-       if(($arp_activ eq 'true') && $start_service) {
+       if(($arp_activ eq 'on') && $start_service) {
                $ldap = Net::LDAP->new($ldap_uri);
                if (!$ldap) {
                        &main::daemon_log("Could not connect to LDAP Server at $ldap_uri!\n$@", 1);