Red Hat DIRECTORY SERVER 2.0 - GATEWAY Manual de usuario Pagina 80

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 96
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 79
Chapter 10. Access control
Figure 10-8. The userid and password challenge
Note that the prompt contains the phrase “Restricted area”. That text comes directly
from the AuthName command. If we fill in any valid userid and password from the
/etc/httpd/access/passwd file we can proceed.
Figure 10-9. Entering the userid and password
Next we will consider other policies. We will assume that we have created three ad-
ditional web userids: tom, dick and harry.
<Directory /var/www/CHEESE/games>
AuthType Basic
AuthName "Cheese lovers only"
AuthUserFile /etc/httpd/access/passwd
Require user tom dick
</Directory>
Figure 10-10. httpd.conf: Restricting access to /var/www/CHEESE/games to users
tom and dick.
The Require user tom dick statement replaces the “valid user” policy with a “one of
these users” policy.
If you plan to use certain collections of users repeatedly for access control this scheme
can be taken further and groups of users can be defined. We can then specify that the
validated user be one of a series of groups.
First we must define our groups. We will create a groups file this time by hand be-
cause there are no tools analogous to htpasswd to manage the files for us.
stilton: tom rjd4
cheddar: tom dick
Figure 10-11. The /etc/httpd/access/group file
We can change from a user list to a group list by specifying which group file to use
and which groups are permitted access.
76
Vista de pagina 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 95 96

Comentarios a estos manuales

Sin comentarios