Re: LDAP and .htaccess

From: Date: Wed, 27 Apr 2005 20:23:01 +0000
Subject: Re: LDAP and .htaccess
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-214041@lists.php.net to get a copy of this message
Bret Walker wrote: > Well, the download.php script would allow me to protect certian files, > but is there a way to protect all files? For example, images that I > would like to include in my php pages. you can serve images through through download.php.. but that's just a bad idea :) > Could I silently pass a username and password to htaccess? Can htaccess > be set to use a php script instead of a htpasswd file? why are your username/passwords safer in script.php then .htpasswd? I still think your best route would be auth_ldap. If you directory server doesn't allow anonymous searches, have the admin create a low privileged account that only has access to search the required attributes. Kenny

« previous php.general (#214041) next »