Hi again,
Ok, I sorted this out myself now.
First of all, my basic password file was wrong. It should look like this
with the unencrypted password and the realm in it:
--------------------------------------------------------------------
luigi:Luigis Pizza-Service:luigi
francesca:Luigis Pizza-Service:francesca
--------------------------------------------------------------------
The digest password file was correct (using the same passwords):
--------------------------------------------------------------------
luigi:Luigis Pizza-Service:6b150f7dc4cdc0fe1b16315482544685
francesca:Luigis Pizza-Service:d23e77cb95c9129102cd8452a9e10390
--------------------------------------------------------------------
Second, when I use this configuration and add both resolvers for basic
and digest, the passwords from the basic file are ignored.
$adapter = new Http(array(
'accept_schemes' => 'basic digest',
'realm' => 'Luigis Pizza-Service',
'digest_domains' => '/listing/listing1309',
'nonce_timeout' => 3600,
));
http://zf2.readthedocs.org/en/latest/modules/zend.authentication.adapter.http.html#basic-usage
I tested it with just having luigi in the basic and francesca in the
digest file. I can log on with francesca but not with luigi.
Questions:
1. When the combination of basic and digest is proposed why does it
ignore the basic file?
2. When I create the basic file with htpasswd it has no realm and
the password is encrypted. Why do I need to have the passwords
unencrypted?
Thanks and regards,
Ralf
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]