LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-19-2014, 02:54 AM   #1
tingtong5
LQ Newbie
 
Registered: Jul 2014
Distribution: debian
Posts: 4

Rep: Reputation: Disabled
apache ldap issue


Hi all,


I am trying to use ldap to have users authenticate when accessing nagios (webbased monitoring tool) in their webbrowser.


When accessing nagios the browser responds with a popup window, asking for credentials (username, password). Authentication then fails.


Error in /var/log/httpd/error.log:

[Thu Dec 18 16:43:42 2014] [debug] mod_authnz_ldap.c(432): [client 192.168.112.196] [12830] auth_ldap authenticate: using URL ldap://ad.blue.local/dc=blue,dc=local?sAMAccountName
[Thu Dec 18 16:43:42 2014] [info] [client 192.168.112.196] [12830] auth_ldap authenticate: user ronald authentication failed; URI /nagios/ [ldap_search_ext_s() for user failed][Operations error]

This on Centos 6.6, using apache 2.2.15

Webbrowser used is firefox and/or chrome.


Contents of /etc/httpd/conf.d/authz_ldap.conf:


LogLevel debug
LoadModule authz_ldap_module modules/mod_authz_ldap.so
<IfModule mod_authz_ldap.c>
<Location /nagios>
AuthBasicProvider ldap
AuthLDAPURL "ldap://ad.blue.local/dc=deepocean,dc=local?sAMAccountName" NONE
AuthzLDAPAuthoritative on
AuthLDAPBindDN "nagiosadmin@blue.local"
AuthLDAPBindPassword "7f7g67d6s"
AuthType Basic
AuthName "Nagios Access"
require valid-user
</Location>
</IfModule>


I am stuck now and don't know how to troubleshoot any further.

Using ldapsearch the user ronald is found in ldap!

Any help would be appreciated!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue in enabling ldap support for PHP with Apache RHEL release 6.1 (Santiago) vkgandhi84 Red Hat 3 11-19-2014 02:21 PM
LDAP issue sachin.davra Linux - Newbie 1 08-02-2014 09:21 PM
[SOLVED] LDAP authentication error [Can't contact LDAP server] from apache httpd jonathan_w_brown Linux - Server 6 12-28-2011 05:30 PM
[SOLVED] Apache authentication: allow LDAP group OR user named guest, but not all LDAP users AlucardZero Linux - Server 1 05-25-2011 03:21 PM
Ldap php Apache on Windows Issue rajnair0278 Linux - Networking 0 11-03-2006 01:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration