Autenticação do Windows Active Directory e servidor XAMPP Apache [fechado]

1

Eu instalei o servidor XAMPP no meu servidor Windows 2008 e desejo restringir o acesso à pasta htdocs para que apenas os usuários no diretório ativo possam ver o site da intranet.

Eu habilitei os seguintes módulos em http.confd:

LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule ldap_module modules/mod_ldap.so

e este é o meu arquivo .htaccess:

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=*)"
# if I remove the line below it gives me error 500 internal server error after first login attemp
AuthLDAPBindAuthoritative off
AuthType Basic
AuthName "USE YOUR WINDOWS ACCOUNT"
AuthBasicProvider ldap
AuthUserFile /dev/null
require valid-user

Mas quando tento fazer o login, não consigo fazer login e a caixa de login continua aparecendo.

[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 [email protected] 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

Como você pode ver eu tentei com sufixo de domínio ou outras possibilidades nomes de usuário que eu uso para entrar no windows, mas em logs diz usuário não encontrado .... o que está errado?

    
por mhesabi 11.05.2014 / 08:10

1 resposta

0

Graças a Cristian Ciupitu e o link fornecido por Eu tenho que admitir que eu tinha subestimado removendo citações de senha que resolveria o meu problema mas parece que foi a solução ... de qualquer maneira, eu removi aspas ( "password" se tornou password ) da senha e tudo parece funcionar até agora

    
por 12.05.2014 / 10:37