index 2ae7a78bd3e2d54881f4e9ab86a7c6c51c22c5e5..544e2e6ab9c96ab9ac2c0b604781c585976c65fa 100644 (file)
my $header = @{$msg_hash->{header}}[0];
my $target = @{$msg_hash->{$header}}[0];
my $header = @{$msg_hash->{header}}[0];
my $target = @{$msg_hash->{$header}}[0];
- my $out_msg = &SIPackages::new_ldap_config($target, $session_id);
+ my $out_msg = &ClientPackages::new_ldap_config($target, $session_id);
my @out_msg_l = ( $out_msg );
return @out_msg_l;
}
my @out_msg_l = ( $out_msg );
return @out_msg_l;
}
if(defined($msg_hash->{detected_hardware}[0]->{$attribute}) &&
length($msg_hash->{detected_hardware}[0]->{$attribute}) >0 ) {
if(defined($entry->get_value($attribute))) {
if(defined($msg_hash->{detected_hardware}[0]->{$attribute}) &&
length($msg_hash->{detected_hardware}[0]->{$attribute}) >0 ) {
if(defined($entry->get_value($attribute))) {
- $entry->delete($attribute);
+ $entry->delete($attribute => []);
}
&main::daemon_log("INFO: Adding attribute $attribute with value ".$msg_hash->{detected_hardware}[0]->{$attribute},5);
$entry->add($attribute => $msg_hash->{detected_hardware}[0]->{$attribute});
}
&main::daemon_log("INFO: Adding attribute $attribute with value ".$msg_hash->{detected_hardware}[0]->{$attribute},5);
$entry->add($attribute => $msg_hash->{detected_hardware}[0]->{$attribute});
if(defined($msg_hash->{detected_hardware}[0]->{$attribute}) &&
length($msg_hash->{detected_hardware}[0]->{$attribute}) >0 ) {
if(defined($entry->get_value($attribute))) {
if(defined($msg_hash->{detected_hardware}[0]->{$attribute}) &&
length($msg_hash->{detected_hardware}[0]->{$attribute}) >0 ) {
if(defined($entry->get_value($attribute))) {
- $entry->delete($attribute);
+ $entry->delete($attribute => []);
}
}
- foreach my $array_entry (@{$msg_hash->{detected_hardware}[0]->{$attribute}}) {
+ foreach my $array_entry (keys %{{map { $_ => 1 } sort(@{$msg_hash->{detected_hardware}[0]->{$attribute}}) }}) {
$entry->add($attribute => $array_entry);
}
}
$entry->add($attribute => $array_entry);
}
}