summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f00a5e)
raw | patch | inline | side by side (parent: 3f00a5e)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 1 Feb 2008 15:37:15 +0000 (15:37 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 1 Feb 2008 15:37:15 +0000 (15:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8733 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/SIPackages.pm | patch | blob | history |
index 1d3213a91a31dfa482bebe2dcfc23b9bb8601d74..9924be37fde3d8e287acd668383e523834b314ee 100644 (file)
&main::daemon_log("gotoHardwareChecksum $gotoHardwareChecksum was added to LDAP", 4);
}
- # Look if there another host with this checksum to use the hardware config
- $mesg = $ldap->search(
- base => $ldap_base,
- scope => 'sub',
- filter => "(&(objectClass=GOhard)(gotoHardwareChecksum=$gotoHardwareChecksum))"
- );
-
- if($mesg->count>1) {
- my $clone_entry= $mesg->entry(0);
- $entry->changetype("modify");
- foreach my $attribute (
- "gotoSndModule", "ghNetNic", "gotoXResolution", "ghSoundAdapter", "ghCpuType", "gotoXkbModel",
- "ghGfxAdapter", "gotoXMousePort", "ghMemSize", "gotoXMouseType", "ghUsbSupport", "gotoXHsync",
- "gotoXDriver", "gotoXVsync", "gotoXMonitor") {
- my $value= $clone_entry->get_value($attribute);
- if(defined($value)) {
- if(defined($entry->get_value($attribute))) {
- $entry->delete($attribute);
- }
- &main::daemon_log("Adding attribute $attribute with value $value",1);
- $entry->add($attribute => $value);
- }
- }
- foreach my $attribute (
- "gotoModules", "ghScsiDev", "ghIdeDev") {
- my $array= $clone_entry->get_value($attribute, 'as_ref' => 1);
- if(defined($array)) {
- if(defined($entry->get_value($attribute))) {
- $entry->delete($attribute);
- }
- foreach my $array_entry (@{$array}) {
- $entry->add($attribute => $array_entry);
- }
- }
-
- }
- if($entry->update($ldap)) {
- &main::daemon_log("Added Hardware configuration to LDAP", 4);
- }
-
- }
+ ## Look if there another host with this checksum to use the hardware config
+ #$mesg = $ldap->search(
+ # base => $ldap_base,
+ # scope => 'sub',
+ # filter => "(&(objectClass=GOhard)(gotoHardwareChecksum=$gotoHardwareChecksum))"
+ #);
+
+ #if($mesg->count>1) {
+ # my $clone_entry= $mesg->entry(0);
+ # $entry->changetype("modify");
+ # foreach my $attribute (
+ # "gotoSndModule", "ghNetNic", "gotoXResolution", "ghSoundAdapter", "ghCpuType", "gotoXkbModel",
+ # "ghGfxAdapter", "gotoXMousePort", "ghMemSize", "gotoXMouseType", "ghUsbSupport", "gotoXHsync",
+ # "gotoXDriver", "gotoXVsync", "gotoXMonitor") {
+ # my $value= $clone_entry->get_value($attribute);
+ # if(defined($value)) {
+ # if(defined($entry->get_value($attribute))) {
+ # $entry->delete($attribute);
+ # }
+ # &main::daemon_log("Adding attribute $attribute with value $value",1);
+ # $entry->add($attribute => $value);
+ # }
+ # }
+ # foreach my $attribute (
+ # "gotoModules", "ghScsiDev", "ghIdeDev") {
+ # my $array= $clone_entry->get_value($attribute, 'as_ref' => 1);
+ # if(defined($array)) {
+ # if(defined($entry->get_value($attribute))) {
+ # $entry->delete($attribute);
+ # }
+ # foreach my $array_entry (@{$array}) {
+ # $entry->add($attribute => $array_entry);
+ # }
+ # }
+
+ # }
+ # if($entry->update($ldap)) {
+ # &main::daemon_log("Added Hardware configuration to LDAP", 4);
+ # }
+
+ #}
}