Jump to content

LDAP auth on apache 2.2.4 - problems


Jazeker

Recommended Posts

Hi,

 

I've installed apache 2.2.4 on a windows server. For my documentroot folder, I have this <directory> block:

 

<Directory "Q:\browsethevob">

Options Indexes FollowSymLinks Includes ExecCGI

 

Order allow,deny

Allow from all

 

AuthType Basic

AuthName "BTV - please use corporate login (lowercase)"

AuthBasicProvider ldap

AuthzLDAPAuthoritative off

AuthLDAPURL ldap://ourldap.company.com:389/ou=people,dc=company,dc=com?cn

require valid-user

</Directory>

 

I am not an apache hero, more like hacking around till it works...

 

Two problems:

 

1. When I turn on AuthzLDAPAuthoritative, the login box will reappaer each time I type my login and pass, not giving me access but just asking for the login/pass over and over again. Do note that I have no other auth methods defined in my httpd.conf. Anyone any idea on this?

 

2. When I turn off AuthzLDAPAuthoritative, I will get the login box. So far so good? Anyway:

a. I type my correct login and pass: I get access to my page.

b. I type in a wrong login and/or pass: the login box will reappear over and over till I get it right.

c. When I just leave the login field empty (regardless of what I type as a password) and press ok, I will get a 500 server error.

d. Regardless of what I type, when I press cancel, I will get my proper "Failed to authenticate" page.

 

Any ideas? Anyone seen this?

 

Thank you very much in advance for any hints you might come up with.

 

Jaz

Link to comment
Share on other sites

Hummm...

 

well although its not great, I would do your testing in a htaccess file, rather than in the httpd.conf. This will speed up matters and let you try more things faster :)

 

Here is my wiki piece on Ldap and apache:

http://wiki.kartbuilding.net/index.php/Apache#htaccess_Auth_using_LDAP_and_htpasswd

 

Try it and see. Check the apache error logs also.

 

Try it with a normal htaccess and htpasswd. Do you still get prompted to login over and over? or do you get an Accessed denied page etc.

 

-steve

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.