--- nagios-2.5/cgi/cmd.c 2006-05-19 15:25:03.000000000 +0100
+++ nagios-2.5.unacks/cgi/cmd.c 2006-10-27 16:57:17.000000000 +0100
@@ -942,9 +942,15 @@
printf("
| Persistent%s: | ",(cmd==CMD_ACKNOWLEDGE_HOST_PROBLEM)?" Comment":"");
printf("");
printf(" |
\n");
- printf("| Author (Your Name): | ");
- printf("",comment_author);
- printf(" |
\n");
+ if(use_authentication==FALSE) {
+ printf("| Author (Your Name): | ");
+ printf("",comment_author);
+ printf(" |
\n");
+ }
+ else {
+ printf("| Author: | %s |
\n",comment_author);
+ printf("",comment_author);
+ }
printf("| Comment: | ");
printf("",comment_data);
printf(" |
\n");
@@ -968,9 +974,15 @@
printf("| Persistent%s: | ",(cmd==CMD_ACKNOWLEDGE_SVC_PROBLEM)?" Comment":"");
printf("");
printf(" |
\n");
- printf("| Author (Your Name): | ");
- printf("",comment_author);
- printf(" |
\n");
+ if(use_authentication==FALSE) {
+ printf("| Author (Your Name): | ");
+ printf("",comment_author);
+ printf(" |
\n");
+ }
+ else {
+ printf("| Author: | %s |
\n",comment_author);
+ printf("",comment_author);
+ }
printf("| Comment: | ");
printf("",comment_data);
printf(" |
\n");
@@ -1151,9 +1163,15 @@
printf("| Service: | ");
printf("",service_desc);
}
- printf("| Author (Your Name): | ");
- printf("",comment_author);
- printf(" | \n");
+ if(use_authentication==FALSE) {
+ printf("| Author (Your Name): | ");
+ printf("",comment_author);
+ printf(" | \n");
+ }
+ else {
+ printf("| Author: | %s | \n",comment_author);
+ printf("",comment_author);
+ }
printf("| Comment: | ");
printf("",comment_data);
printf(" | \n");
@@ -1283,9 +1301,15 @@
printf("",servicegroup_name);
printf(" |
\n");
}
- printf("| Author (Your Name): | ");
- printf("",comment_author);
- printf(" |
\n");
+ if(use_authentication==FALSE) {
+ printf("| Author (Your Name): | ");
+ printf("",comment_author);
+ printf(" |
\n");
+ }
+ else {
+ printf("| Author: | %s |
\n",comment_author);
+ printf("",comment_author);
+ }
printf("| Comment: | ");
printf("",comment_data);
printf(" |
\n");