Page 1 of 1
Changing Author Name
Posted: Tue Oct 07, 2014 2:09 pm
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
Re: Changing Author Name
Posted: Tue Oct 07, 2014 2:16 pm
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
Re: Changing Author Name
Posted: Tue Oct 07, 2014 2:45 pm
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.
Re: Changing Author Name
Posted: Tue Oct 07, 2014 2:47 pm
by abrist
Well, nagios will only see what the module returns for the username. This would have to be controlled by the module itself.
Re: Changing Author Name
Posted: Tue Oct 07, 2014 3:03 pm
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!
Re: Changing Author Name
Posted: Tue Oct 07, 2014 3:07 pm
by abrist
No problem, Cheers!