Page 1 of 1

Re: [Nagios-devel] small issue with lock_author_names

Posted: Thu Dec 27, 2007 2:08 am
by Guest
On Wed, Dec 26, 2007 at 06:38:39PM -0800, local.coder wrote:
> The username comes from two different places on that web page.
> For the top header it's a simple read of the string from the authdata.
...
> in cmd.c Author for the form portion is set through a multi-step process.
...
> And comment_author is set earlier in the c file by.
> /* get name to use for author */
> if(lock_author_names==TRUE){
> temp_contact=find_contact(current_authdata.username);
> if(temp_contact!=NULL && temp_contact->alias!=NULL)
> comment_author=temp_contact->alias;
> else
> comment_author=current_authdata.username;
> }

Okay, that's the point. The authors name comes from contact->alias, may be
this is what Ethan intends. The manpage configcgi.html#lock_author_names
is not really clear and should mention that the alias and not the contact
name is used there.

What is about the following:

lock_author_names=1 -> contact->alias
lock_author_names=2 -> contact->name

Wolfgang
--
* http://www.swobspace.de





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected] (Wolfgang Barth