Blog

icinga-web with Win2008 R2 AD/LDAP on CentOS 6.4

Written by on 23rd July 2013 in centos, icinga, technology with Leave a comment

I had a devil of a time getting icinga-web to authenticate to AD.  The howto did not work for me (I am using that example’s settings in the solution below).  I tried everything I could think of, the error I was receiving was:

[fatal] Uncaught AppKitPHPError: PHP Error ldap_search(): Search: Invalid DN syntax (/usr/share/icinga-web/app/modules/AppKit/models/Auth/Provider/LDAPModel.class.php:136) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:59)

For me, as a workaround I opened up the LDAPModel.class.php file and right above that line in the getLdaprecord() function I added this:

$basedn = "DC=domain,DC=local";

Then I tried to login as that user, and it did create the user!  I gave the user permissions and then logged out.

I then stopped httpd, deleted the cache (rm -rf /var/cache/icinga-web/config/*) and restarted httpd.  In fact during the process I stopped and restarted httpd and cleared the cache many times!

Then I commented out the line I added in LDAPModel.class.php and logged in as the user with AD credentials!  I’m not sure why, but I couldn’t create the user myself, I had to allow icinga-web to create it for me.

Post Written by

I am the owner of Russell Draper & Associates, this is my personal blog where I will post whatever I feel like! I generally have comments disabled, due to spam-bots. If you wish to leave a comment please contact me via RDAIT.

Leave a Reply

You must be logged in to post a comment.