summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a475f9f)
raw | patch | inline | side by side (parent: a475f9f)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 May 2009 14:56:05 +0000 (14:56 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 May 2009 14:56:05 +0000 (14:56 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13666 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/server_server_com.pm | patch | blob | history |
diff --git a/gosa-si/server/events/server_server_com.pm b/gosa-si/server/events/server_server_com.pm
index 66eaf77fa869f38099a3b1409c9ca79db7573ea0..b13762622b03e620a5d5c24c0b1bb3c38f7784f7 100644 (file)
&main::daemon_log("$session_id ERROR: 'new_user'-tag in incoming msg has no content!", 1);
} else {
+ my @user_list;
# Add each user to login_users_db
foreach my $new_user_info (@$new_user_list) {
my ($client, $user) = split(/;/, $new_user_info);
- &main::daemon_log("$session_id INFO: server '$source' reports user '$user' is logged in at client '$client'", 5);
my %add_hash = ( table=>$main::login_users_tn,
primkey=> ['client', 'user'],
client=>$client,
regserver=>$source,
);
my ($res, $error_str) = $main::login_users_db->add_dbentry( \%add_hash );
- if ($res != 0) {
+ if ($res != 0)
+ {
&main::daemon_log("$session_id ERROR: cannot add entry to known_clients: $error_str", 1);
}
+ else
+ {
+ push(@user_list, "'$user' at '$client'");
+ }
}
+ &main::daemon_log("$session_id INFO: server '$source' reports the following logged in user: ".join(", ", @user_list), 5);
}
}
my $res = $main::login_users_db->exec_statement($sql);
# Add each user to login_users_db
+ my @user_list;
foreach my $user_db_info (@$user_db_list) {
my ($client, $user) = split(/;/, $user_db_info);
- &main::daemon_log("$session_id INFO: server '$source' reports user '$user' is logged in at client '$client'", 5);
my %add_hash = ( table=>$main::login_users_tn,
primkey=> ['client', 'user'],
client=>$client,
if ($res != 0) {
&main::daemon_log("$session_id ERROR: cannot add entry to known_clients: $error_str", 1);
}
+ else
+ {
+ push(@user_list, "'$user' at '$client'");
+ }
}
+ &main::daemon_log("$session_id INFO: server '$source' reports the following logged in user: ".join(", ", @user_list), 5);
}
}