From: cajus Date: Thu, 21 Feb 2008 14:50:50 +0000 (+0000) Subject: Added non working ldap reload X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=51262fb04c50ea9e1c750646d59b5ff4ba909d88;p=gosa.git Added non working ldap reload git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9027 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index a041a7229..7273673ae 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -4,6 +4,7 @@ use Exporter; my @events = ( "get_events", "gen_smb_hash", + "reload_ldap_config", "ping", "network_completition", "set_activated_for_installation", @@ -98,7 +99,6 @@ sub network_completition { sub detect_hardware { my ($msg, $msg_hash) = @_ ; # just forward msg to client, but dont forget to split off 'gosa_' in header - my $header = @{$msg_hash->{header}}[0]; my $source = @{$msg_hash->{source}}[0]; my $target = @{$msg_hash->{target}}[0]; @@ -111,6 +111,16 @@ sub detect_hardware { } +sub reload_ldap_config { + my ($msg, $msg_hash) = @_ ; + my $target = @{$msg_hash->{target}}[0]; + + my @out_msg_l; + push(@out_msg_l, &new_ldap_config($target)); + return @out_msg_l; +} + + sub set_activated_for_installation { my ($msg, $msg_hash) = @_; diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index 2c31f9cbb..f2c316851 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -24,7 +24,10 @@ if($sock->connected()){ #$data = "
gosa_delete_jobdb_entry
3
"; # smbhash -$data = "
gosa_gen_smb_hash
GOSAGOSAtester
"; +#$data = "
gosa_gen_smb_hash
GOSAGOSAtester
"; + +# Reload ldap config +$data = "
gosa_reload_ldap_config
GOSA00:1B:77:04:8A:6C
"; # update #$data = "
gosa_update_status_jobdb_entry
GOSAGOSA waiting processing update
";