Changing Author Name

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
drsprite
Posts: 5
Joined: Thu Jul 10, 2014 6:21 pm

Changing Author Name

Post by drsprite »

We are using Core 3.5.1 and using Apache to allow us for Active Directory authentication. Currently when someone comments on something, the Author field is their AD logon ID. Is there any way to change that field to show their AD Name?

I understand it's Apache that's authenticating us, but is there a way for Nagios to take the authenticated login and get the Common Name or DisplayName from Active Directory?

Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Changing Author Name

Post by abrist »

This is most likely an issue with how the apache authnz_ldap module is reporting the user. Have you looked to see if you can return the username instead of id from the module:
http://httpd.apache.org/docs/trunk/mod/ ... _ldap.html
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
drsprite
Posts: 5
Joined: Thu Jul 10, 2014 6:21 pm

Re: Changing Author Name

Post by drsprite »

I'm reading the manual and I'm not sure Apache can return that info. I'll continue to dig, but thats why I raised the question on the Nagios side as opposed to the Apache side.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Changing Author Name

Post by abrist »

Well, nagios will only see what the module returns for the username. This would have to be controlled by the module itself.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
drsprite
Posts: 5
Joined: Thu Jul 10, 2014 6:21 pm

Re: Changing Author Name

Post by drsprite »

Just figured it out. Need to have "cn" in the ldap auth url. Then I can use "AuthLDAPRemoteUserAttribute cn" to display the user's name.

Thanks for pointing me inthe right direction!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Changing Author Name

Post by abrist »

No problem, Cheers!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked