--- admin.txt 2001/06/20 12:11:25 1.4 +++ admin.txt 2001/09/26 21:33:09 1.5 @@ -42,7 +42,7 @@ It is important that new directory index file begins with dot -- that ensures that files won't be visible from Directory Manager interface. -6. (if you don't want to users in SQL database) Go to you web server and +6a. (if you don't want to users in SQL database) Go to you web server and check if you got autorization request. If you did, you also have .htusers in same directory in which is .index.php @@ -57,7 +57,7 @@ to enter invalid e-mail address it that's valid pop3 account. But, that WILL change, so you are warned! -7. (alternative to 6 if your users are in SQL database) change $gblUsers +6b. (alternative to 6a if your users are in SQL database) change $gblUsers in .docman.conf to $gblUsers = "htusers_sql"; Download php-dbi class from http://pil.dk/downloads/dbi.tar.gz and @@ -85,14 +85,31 @@ database is name of database in which are your users and user/password is credentials for user which connects to database -8. (optional) You can create file named .info.inc in /home/httpd/html +6c. (alternative to 6b you want to authorize users based on IP numbers, + client DNS names of HTTP Referarer header (URL from which they accessed + docman site). Put $gblUsers = "htusers_header"; in .docman.conf use + following form in your .htusers file: + + REMOTE_ADDR=10.0.0.3:Full name:auth_header:e-mail@foo.bar + remote_hostname=myworkstation:Full name:auth_header:e-mail@foo.bar + http_referer=test.foo.bar:Full name:auth_header:e-mail@foo.bar + + Please note that you *have to* put "auth_header" in password field + and that valid options for left side of = in login field are: + remote_addr, remote_hostname or http_referer. + +6d. (if you want some combination of 6a, 6b and/or 6c) put in .docman.conf + $gblUsers = "htusers_union" and uncomment which htusers auth modules + you want to use and in which order + +7. (optional) You can create file named .info.inc in /home/httpd/html directory for some kind of motd file. You can use html markup in it also! -9. (optional) Copy docman.conf into /home/httpd/html/.docman.conf and +8. (optional) Copy docman.conf into /home/httpd/html/.docman.conf and edit values which override default values in docman.php -10. if you want to upload files which are bigger than 2Mb increase +9. if you want to upload files which are bigger than 2Mb increase upload_max_filesize to more than 2Mb in php.ini. If you still get errors on files bigger than 8Mb increase post_max_size also.