Jazeker Posted July 26, 2007 Share Posted July 26, 2007 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 Quote Link to comment Share on other sites More sharing options...
steviewdr Posted July 26, 2007 Share Posted July 26, 2007 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 Quote Link to comment Share on other sites More sharing options...
Jazeker Posted August 1, 2007 Author Share Posted August 1, 2007 Looks like it's a known bug... one they are not very eager to fix, it seems... it's been known for half a year. http://issues.apache.org/bugzilla/show_bug.cgi?id=41435 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.