Le Ven. Nov. 20 11:28:58 2009, PatrickB a écrit :
Show quoted text> Le Ven. Nov. 20 10:41:59 2009, PatrickB a écrit :
> > Le Jeu. Nov. 19 15:30:35 2009, PatrickB a écrit :
> > > Le Jeu. Nov. 19 13:54:12 2009, MATISSE a écrit :
> > > > That is certain strange.
> > > >
> > > > I expected to see log statements (in the failure situation)
from
Show quoted text> the
> > > > Apache2::AuthCookie::login() method in the base class.
> Specifically
> > > from
> > > > this code (line numbers are from AuthCookie.pm 3.12):
> > > >
> > > > 172 # Get the credentials from the data posted by the
client
Show quoted text> > > > 173 my @credentials;
> > > > 174 for (my $i = 0; exists $args{"credential_$i"}; $i++) {
> > > > 175 my $key = "credential_$i";
> > > > 176 $r->server->log_error("$key $args{$key}") if
$debug
Show quoted text> >=
> > 2;
> > > > 177 push @credentials, $args{$key};
> > > > 178 }
> > > >
> > > > I do see those log messages when you protect a subdirectory,
but
Show quoted text> not
> > > > when you protected document_root.
> > > >
> > > > Right now I have no new ideas. This weekend I will try to
> duplicate
> > > the
> > > > problem on another server and see if that shows me something
new.
Show quoted text> > >
> > >
> > > Yes, it's strange. Thank you for your help. If I can send to you
> > > somethings, dont' hesitate.
> >
> >
> >
> > I have a good new. It works!
> >
> > In my authCookieDBI.conf, I have moved the directives <Files
> > LOGIN>....</Files> inside <Directory "/srv/www/htdocs"> ...
> > </Directory>.
> > Now this conf is like this:
> > #rajout PBo car erreur si absent
> > PerlOptions +GlobalRequest
> >
> > PerlSetVar AuthCookieDebug 4
> >
> > # In httpd.conf or .htaccess
> >
> > PerlModule Apache2::AuthCookieDBI
> > PerlSetVar WhatEverPath /
> > #modif PBo PerlSetVar WhatEverLoginScript /login.pl
> > PerlSetVar WhatEverLoginScript /cgi-perl/login.pl
> >
> > # Optional, to share tickets between servers.
> > #invalider PBo PerlSetVar WhatEverDomain .domain.com
> >
> > # These must be set
> > #modif PBo PerlSetVar WhatEverDBI_DSN "DBI:mysql:database=test"
> > PerlSetVar WhatEverDBI_DSN DBI:mysql:authSrv:localhost
> > PerlSetVar
> >
>
WhatEverDBI_SecretKey "489e5eaadb3208f9ad8792ef4afca7359e666b0206a9c92ac
Show quoted text> > 877e73ce835c"
> >
> > # These are optional, the module sets sensible defaults.
> > PerlSetVar WhatEverDBI_User root
> > PerlSetVar WhatEverDBI_Password pateli
> > PerlSetVar WhatEverDBI_UsersTable users
> > PerlSetVar WhatEverDBI_UserField user
> > PerlSetVar WhatEverDBI_PasswordField password
> > PerlSetVar WhatEverDBI_CryptType none
> > PerlSetVar WhatEverDBI_GroupsTable groupes
> > PerlSetVar WhatEverDBI_GroupField groupe
> > PerlSetVar WhatEverDBI_GroupUserField user
> > PerlSetVar WhatEverDBI_EncryptionType none
> > PerlSetVar WhatEverDBI_SessionLifetime 00-01-00-00
> >
> > # Protected by AuthCookieDBI.
> > #modif PBo
> > <Directory "/srv/www/htdocs">
> > AuthType Apache2::AuthCookieDBI
> >
> > # set this to whatever, but the PerlSetVar's must match it.
> > # Mettre ce que vous voulez, mais le PerlSetVar doit
> > correspondre.
> > AuthName WhatEver
> > PerlAuthenHandler Apache2::AuthCookieDBI->authenticate
> > PerlAuthzHandler Apache2::AuthCookieDBI->authorize
> > #Require valid-user invalidé avec fonction group demandé
> > Require valid-user
> >
> > # AllowOverride controls what directives may be placed
> > in .htaccess files.
> > # It can be "All", "None", or any combination of the
keywords:
Show quoted text> > # Options FileInfo AuthConfig Limit
> > AllowOverride None
> > # Require group Administrator mis dans .htaccess
> >
> > # Login location. en dehors de "<Directory xxx>" pour
> > subdirectory
> > <Files LOGIN>
> > AuthType Apache2::AuthCookieDBI
> > AuthName WhatEver
> > SetHandler perl-script
> > PerlHandler Apache2::AuthCookieDBI->login
> > #rajout PBo
> > Allow from all
> > Satisfy any
> > </Files>
> > </Directory>
> >
> > Please, It works but I would like to know if it's THE real solution.
> > If this bad modification correct the first one and it works finally.
> > Because to protect a subdirectory, those modification are not
> necessary.
>
>
> Sorry, I forgot the error_log file with https connection:
> [Fri Nov 20 17:23:20 2009] [notice] Apache/2.2.13 (Linux/SUSE)
> mod_ssl/2.2.13 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
> configured -- resuming normal operations
> [Fri Nov 20 17:23:56 2009] [error] auth_type Apache2::AuthCookieDBI
> [Fri Nov 20 17:23:56 2009] [error] r=Apache2::RequestRec=SCALAR
> (0xb7905484) authtype=Apache2::AuthCookieDBI
> [Fri Nov 20 17:23:56 2009] [error] auth_name WhatEver
> [Fri Nov 20 17:23:56 2009] [error] ses_key_cookie
> [Fri Nov 20 17:23:56 2009] [error] uri /
> [Fri Nov 20 17:24:04 2009] [error] Converting POST -> GET
> [Fri Nov 20 17:24:04 2009] [error] credential_0 myNAME
> [Fri Nov 20 17:24:04 2009] [error] credential_1 myPASS
> [Fri Nov 20 17:24:04 2009] [error] ses_key myNAME:2009-11-20-17-24-
> 04:2009-11-20-17-25-04::777ae50a1de5d224798344cee914d3ff
> [Fri Nov 20 17:24:04 2009] [error] redirect to /
> [Fri Nov 20 17:24:04 2009] [error] auth_type Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:04 2009] [error] r=Apache2::RequestRec=SCALAR
> (0xb7905484) authtype=Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:04 2009] [error] auth_name WhatEver
> [Fri Nov 20 17:24:04 2009] [error] ses_key_cookie myNAME:2009-11-20-
17-
Show quoted text> 24-04:2009-11-20-17-25-04::777ae50a1de5d224798344cee914d3ff
> [Fri Nov 20 17:24:04 2009] [error] uri /
> [Fri Nov 20 17:24:04 2009] [error] user authenticated as myNAME
> [Fri Nov 20 17:24:04 2009] [error] authorize() for /
> [Fri Nov 20 17:24:04 2009] [error] authorize user=myNAME
> type=Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:04 2009] [error] requirement := valid-user,
> [Fri Nov 20 17:24:12 2009] [error] auth_type Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:12 2009] [error] r=Apache2::RequestRec=SCALAR
> (0xb7905484) authtype=Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:12 2009] [error] auth_name WhatEver
> [Fri Nov 20 17:24:12 2009] [error] ses_key_cookie myNAME:2009-11-20-
17-
Show quoted text> 24-04:2009-11-20-17-25-04::777ae50a1de5d224798344cee914d3ff
> [Fri Nov 20 17:24:12 2009] [error] uri /infoPhp.php
> [Fri Nov 20 17:24:12 2009] [error] user authenticated as myNAME
> [Fri Nov 20 17:24:12 2009] [error] authorize() for /infoPhp.php
> [Fri Nov 20 17:24:12 2009] [error] authorize user=myNAME
> type=Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:12 2009] [error] requirement := valid-user,
> [Fri Nov 20 17:24:12 2009] [error] [client 192.168.0.96] PHP
Warning:
Show quoted text> phpinfo(): It is not safe to rely on the system's timezone settings.
> You are *required* to use the date.timezone setting or the
> date_default_timezone_set() function. In case you used any of those
> methods and you are still getting this warning, you most likely
> misspelled the timezone identifier. We selected 'Europe/Berlin'
> for 'CET/1.0/no DST' instead in /srv/www/htdocs/infoPhp.php on line 2
> [Fri Nov 20 17:24:12 2009] [error] auth_type Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:12 2009] [error] r=Apache2::RequestRec=SCALAR
> (0xb79095c4) authtype=Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:12 2009] [error] auth_name WhatEver
> [Fri Nov 20 17:24:12 2009] [error] ses_key_cookie myNAME:2009-11-20-
17-
Show quoted text> 24-04:2009-11-20-17-25-04::777ae50a1de5d224798344cee914d3ff
> [Fri Nov 20 17:24:12 2009] [error] uri /infoPhp.php
> [Fri Nov 20 17:24:12 2009] [error] user authenticated as myNAME
> [Fri Nov 20 17:24:12 2009] [error] authorize() for /infoPhp.php
> [Fri Nov 20 17:24:12 2009] [error] authorize user=myNAME
> type=Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:12 2009] [error] requirement := valid-user,
> [Fri Nov 20 17:24:12 2009] [error] auth_type Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:12 2009] [error] r=Apache2::RequestRec=SCALAR
> (0xb7905484) authtype=Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:12 2009] [error] auth_name WhatEver
> [Fri Nov 20 17:24:12 2009] [error] ses_key_cookie myNAME:2009-11-20-
17-
Show quoted text> 24-04:2009-11-20-17-25-04::777ae50a1de5d224798344cee914d3ff
> [Fri Nov 20 17:24:12 2009] [error] uri /infoPhp.php
> [Fri Nov 20 17:24:12 2009] [error] user authenticated as myNAME
> [Fri Nov 20 17:24:12 2009] [error] authorize() for /infoPhp.php
> [Fri Nov 20 17:24:12 2009] [error] authorize user=myNAME
> type=Apache2::AuthCookieDBI
> [Fri Nov 20 17:24:12 2009] [error] requirement := valid-user,
>
Have you done some investigations and do you agree those conf files?