[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Configurando autenticação no apache



Caros,

Estou configurando um virtual host para autentica a ferramenta de
adminsitração WEB do dspam, conforme abaixo:


    SuexecUserGroup dspam dspam
    Addhandler cgi-script .cgi
    Options +ExecCGI -Indexes

    Alias /dspam /var/www/dspam/
    <Directory /var/www/dspam/>
        Addhandler cgi-script .cgi
        Options +ExecCGI -Indexes
        DirectoryIndex dspam.cgi

# Note: you have to add www-data to the 'shadow'
#       group to make this work. You whould
#       better change for another authentication bakend
AuthPAM_Enabled on

        AuthType Basic
        AllowOverride None
        AuthName "DSPAM Control Center"
        Require valid-user
    </Directory>

A minha dúvida é nunca travalhei com essa autenticação: 

AuthPAM_Enabled on

Ao digitar no browser http://www.meudominio.com.br/dspam, ele abre a janela
de autenticação, para pode acessar todas as funcões da ferramenta
adminsitrativa, preciso logar como root, entro com o login e a senha do
adminsitrador, no browser ele me retorna a seguinte mensagem:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator, leandro@leandromoreira.eti.br and
inform them of the time the error occurred, and anything you might have
done that may have caused the error.

More information about this error may be available in the server error log


E no log do apache a seguinte mensagem:
(9)Bad file descriptor: Could not open password file: (null)

Alguem pode me ajudar, como indico um arquivo de senhas, já que ele esta
tentando usar o PAM para tal, abaixo segue os módulos que tenho ativo no
meu apache:

actions.load
alias.load
auth_basic.load
auth_pam.load
authn_file.load
authz_default.load
authz_groupfile.load
authz_host.load
authz_user.load
autoindex.load
cgi.load
cgid.conf
cgid.load
dir.conf
dir.load
env.load
mime.load
negotiation.load
perl.load
php5.conf
php5.load
proxy.conf
proxy.load
rewrite.load
setenvif.load
ssl.conf
ssl.load
status.load
suexec.load

Att.


-- 
Leandro Moreira
Linux Networks
e-mail: leandro@leandromoreira.eti.br
Tel.: + 55(32) 9197-7909


Reply to: