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

Autenticação no apache2



Caros,
Preciso criar a autenticação no apache para uma ferramenta de gestao do
SPAM's, criei a seguinte entrada no apache:

# This is a sample config that
# should be encapsulated into
# a VirtualHost section.

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

#Alias /dspam /var/www/dspam/
Alias /dspam /var/www/dspam
#<Directory /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 Administration"
AuthUserFile /var/www/dspam/htpasswd.users
Require valid-user
</Directory>



Criei o arquivo htpasswd.users com o usuário root (usuário default admin
da ferramenta),
só que ao logar ele volta a tela inicial de login e no log do apache
aparece a seginte mensagem:

[Tue Dec 04 11:22:56 2007] [error] [client XXX.XXX.XXX.XXX] GROUP: root not
in required group(s).
[Tue Dec 04 11:24:07 2007] [error] [client XXX.XXX.XXX.XXX] GROUP: root not
in required group(s)

Nesse mesmo arquivo de configuração, existe uma configuração para
autenticação via PAM:
AuthPAM_Enabled on

Ela também da erros por isso a comentei, estou com os seguintes módulos
de autenticação carregados no meu apache:

/etc/apache2/mods-enabled/auth_basic.load
/etc/apache2/mods-enabled/auth_pam.load
/etc/apache2/mods-enabled/auth_sys_group.load
/etc/apache2/mods-enabled/authn_file.load
/etc/apache2/mods-enabled/authz_default.load
/etc/apache2/mods-enabled/authz_groupfile.load
/etc/apache2/mods-enabled/authz_host.load
/etc/apache2/mods-enabled/authz_user.load

Alguem pode me ajudar.

Att.

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



Reply to: