OpenLdap + apache2 + modules

1. OpenLdap + apache2 + modules

Julian Soares
juliansoares

(usa Debian)

Enviado em 29/04/2015 - 16:41h

Boa tarde, estou tendo problemas para configurar autenticação de um site pelo apache2 no ldap :

modules :
server01 modules.d # find / -print |grep -i 'mod_ldap'
/etc/apache2/modules.d/46_mod_ldap.conf
/etc/apache2/modules.d/46_mod_ldap.conf~
/usr/portage/metadata/md5-cache/www-apache/mod_ldap_userdir-1.1.19
/usr/portage/metadata/md5-cache/www-apache/mod_ldap_userdir-1.1.16
/usr/portage/www-apache/mod_ldap_userdir
/usr/portage/www-apache/mod_ldap_userdir/mod_ldap_userdir-1.1.16.ebuild
/usr/portage/www-apache/mod_ldap_userdir/mod_ldap_userdir-1.1.19.ebuild
/usr/portage/www-apache/mod_ldap_userdir/ChangeLog
/usr/portage/www-apache/mod_ldap_userdir/metadata.xml
/usr/portage/www-apache/mod_ldap_userdir/Manifest
/usr/portage/www-apache/mod_ldap_userdir/files
/usr/portage/www-apache/mod_ldap_userdir/files/47_mod_ldap_userdir.conf
/usr/lib64/apache2/modules/mod_ldap.so

server01 modules.d # find / -print |grep -i 'mod_authnz_ldap'
/usr/lib64/apache2/modules/mod_authnz_ldap.so


conf apache :
<VirtualHost *:80>
ServerName site.com.br

DocumentRoot "/var/www/site.com.br/htdocs"

ErrorLog "/var/log/apache2/site.com.br-error_log"
CustomLog "/var/log/apache2/site.com.br-access_log" common

<Location />
AuthName "Stats Site"
AuthBasicProvider ldap
AuthType Basic
AuthLDAPURL "ldap://host-ldap:389/dc=cflex,dc=com,dc=br?uid?sub"
AuthLDAPBindDN "cn=Manager,dc=cflex,dc=com,dc=br"
AuthLDAPBindPassword "pwd-ldap"
AuthLDAPGroupAttributeIsDN off
AuthLDAPGroupAttribute memberUid
require ldap-user user-a user-b user-c
</Location>

server01 # /etc/init.d/apache2 reload
* apache2 has detected an error in your setup:
Syntax error on line 14 of /etc/apache2/vhosts.d/03_site.com.br_vhost.conf:
Unknown Authn provider: ldap

Se alguem tiver uma dica ai será bem vindo.



  


2. Re: OpenLdap + apache2 + modules

Julian Soares
juliansoares

(usa Debian)

Enviado em 30/04/2015 - 15:22h


Help ?






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts