Changeset 1824

Show
Ignore:
Timestamp:
08/14/08 17:47:59 (3 months ago)
Author:
taher
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/doc/Makefile.am

    r1821 r1824  
    118118media/images/cookbook_ror_common.png \ 
    119119media/images/cookbook_ror_fcgi.png \ 
     120media/images/cookbook_mysql_rule.png \ 
     121media/images/cookbook_mysql_validator.png \ 
    120122media/images/tracelor.png 
    121123 
  • cherokee/trunk/doc/cookbook_authentication.txt

    r1823 r1824  
    103103 
    104104 
     105=== MySQL 
     106 
     107Lets set up a simple server requiring authentication against a MySQL 
     108database to fetch any content. 
     109 
     110First, lets define a unique rule in our virtual server managed by the 
     111`List and Send` handler. Through the `Security` tab we can configure 
     112it to use MySQL as authentication mechanism. Filling up just the 
     113essential fields will be enough. Realm, database name, user, password 
     114and an SQL query that must return one row with one column as password. 
     115 
     116image::media/images/cookbook_mysql_validator.png[MySQL handler set up] 
     117 
     118In this case, we have used: 
     119 
     120---- 
     121SELECT password FROM auth_users WHERE username = '${user}' 
     122---- 
     123 
     124And that is about it. 
     125In this example you will need a MySQL server running (localhost in 
     126this case, as it takes the default value), a database called 
     127`cherokee` with `cherokee` as user and password, and a table that 
     128suits the shown query. 
     129 
     130When we are done, our simple virtual server should look like this: 
     131 
     132image::media/images/cookbook_mysql_rule.png[MySQL Authenticated rule] 
     133 
     134And any content requested to Cherokee will require prior 
     135authentication agains the database. 
     136 
    105137//// 
    106  
    107 === MySQL 
    108138To be written 
    109 Details for mysql and ldap, with screenshots. 
     139More details for mysql and ldap, with screenshots. 
    110140////