Changeset 1835

Show
Ignore:
Timestamp:
08/14/08 23:45:45 (3 months ago)
Author:
taher
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/branches/0.8/doc/cookbook_authentication.txt

    r1824 r1835  
    128128suits the shown query. 
    129129 
     130 
     131Assuming you have a MySQL user with privileges granted to create 
     132databases, a MySQL session simliar to this one would suffice: 
     133 
     134---- 
     135$ mysql -u cherokee -D cherokee -p 
     136 
     137mysql> CREATE DATABASE cherokee; 
     138Query OK, 1 row affected (0.00 sec) 
     139 
     140mysql> CREATE TABLE auth_users( 
     141       username varchar(32), 
     142       password varchar(32), 
     143       PRIMARY KEY (username)); 
     144Query OK, 0 rows affected (0.00 sec) 
     145 
     146mysql> INSERT INTO auth_users VALUES('cherokee','cherokee'); 
     147Query OK, 1 row affected (0.00 sec) 
     148 
     149mysql> quit 
     150---- 
     151 
    130152When we are done, our simple virtual server should look like this: 
    131153 
     
    133155 
    134156And any content requested to Cherokee will require prior 
    135 authentication agains the database. 
     157authentication against the database. 
     158 
    136159 
    137160//// 
    138161To be written 
    139 More details for mysql and ldap, with screenshots. 
     162More details for ldap, with screenshots. 
    140163//// 
     164 
     165