Windows Active Directory Authentication by .htaccess

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Windows Active Directory Authentication by .htaccess

Postby mhesabi » 11. May 2014 06:49

Hi everyone,
I want to restrict access to `htdocs` folder so only users in active directory could see my intranet website.
I enabled following modules:
Code: Select all
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule ldap_module modules/mod_ldap.so


and this is my .htaccess file:
Code: Select all
AuthLDAPBindDN "CN=Mohammad Hesabi,OU=IT Internal,OU=IT,OU=TT,DC=ttcom,DC=local"
AuthLDAPBindPassword "password"
AuthLDAPURL "ldap://172.16.2.3:389/OU=TT,DC=ttcom,DC=local?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindAuthoritative off
AuthType Basic
AuthName "USE YOUR WINDOWS ACCOUNT"
AuthBasicProvider ldap
AuthUserFile /dev/null
require valid-user


but I'm unable to login and login box keeps poping up.

here is error.log:
Code: Select all
[Sun May 11 10:09:37.444978 2014] [ldap:error] [pid 2080:tid 1764] (70023)This function has not been implemented on this platform: AH01277: LDAP: Unable to add rebind cross reference entry. Out of memory?
[Sun May 11 10:09:37.444978 2014] [auth_basic:error] [pid 2080:tid 1764] [client ::1:2869] AH01618: user m.hesabi not found: /portal
[Sun May 11 10:10:29.162149 2014] [ldap:error] [pid 2080:tid 1736] (70023)This function has not been implemented on this platform: AH01277: LDAP: Unable to add rebind cross reference entry. Out of memory?
[Sun May 11 10:10:29.162149 2014] [auth_basic:error] [pid 2080:tid 1736] [client ::1:2872] AH01618: user m.hesabi@ttcom.local not found: /portal
[Sun May 11 10:11:14.945727 2014] [ldap:error] [pid 2080:tid 1736] (70023)This function has not been implemented on this platform: AH01277: LDAP: Unable to add rebind cross reference entry. Out of memory?
[Sun May 11 10:11:14.945727 2014] [auth_basic:error] [pid 2080:tid 1736] [client ::1:2873] AH01618: user ttcom\\m.hesabi not found: /portal
[Sun May 11 10:11:23.042536 2014] [ldap:error] [pid 2080:tid 1736] (70023)This function has not been implemented on this platform: AH01277: LDAP: Unable to add rebind cross reference entry. Out of memory?
[Sun May 11 10:11:23.042536 2014] [auth_basic:error] [pid 2080:tid 1736] [client ::1:2874] AH01618: user ttcom/m.hesabi not found: /portal


As you can see I tried with domain suffix or other possibilities usernames that I use to login in windows but in logs it says user not found.... what's wrong? please help :cry:
mhesabi
 
Posts: 1
Joined: 11. May 2014 05:01
Operating System: Windows 7

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 128 guests