auth:mysql_nuked-klan
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
wiki:auth:mysql_nuked-klan [2007-08-02 02:28] – 82.237.148.2 | auth:mysql_nuked-klan [2008-12-09 20:39] – 70.103.232.219 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Use this basic SQL statements in your mysql.conf.php | ||
+ | <code php> | ||
+ | / | ||
+ | /* Basic SQL statements for user authentication (required) | ||
+ | / | ||
+ | |||
+ | /* This statement is used to grant or deny access to the wiki. The result | ||
+ | * should be a table with exact one line containing at least the password | ||
+ | * of the user. If the result table is empty or contains more than one | ||
+ | * row, access will be denied. | ||
+ | * | ||
+ | * The module access the password as ' | ||
+ | * | ||
+ | * Following patters will be replaced: | ||
+ | | ||
+ | | ||
+ | | ||
+ | */ | ||
+ | $conf[' | ||
+ | FROM nk_users AS u | ||
+ | WHERE pseudo=' | ||
+ | |||
+ | /* This statement should return a table with exact one row containing | ||
+ | * information about one user. The field needed are: | ||
+ | * ' | ||
+ | * ' | ||
+ | * ' | ||
+ | * | ||
+ | * Keep in mind that DokuWiki will access this information through the | ||
+ | * names listed above so aliases might be necessary. | ||
+ | * | ||
+ | * Following patters will be replaced: | ||
+ | | ||
+ | */ | ||
+ | $conf[' | ||
+ | FROM nk_users | ||
+ | WHERE pseudo=' | ||
+ | |||
+ | /* This statement is used to get all groups a user is member of. The | ||
+ | * result should be a table containing all groups the given user is | ||
+ | * member of. The module access the group name as ' | ||
+ | * might be necessary. | ||
+ | * | ||
+ | * Following patters will be replaced: | ||
+ | | ||
+ | */ | ||
+ | $conf[' | ||
+ | FROM nk_users | ||
+ | WHERE pseudo=' | ||
+ | </ | ||
+ | remind to replace the table prefix (here nk_) with yours. | ||
+ | |||
+ | |||
+ | a local.php for example | ||
+ | <code php> | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | |||
+ | @include(DOKU_CONF.' | ||
+ | |||
+ | require_once(' | ||
+ | </ | ||
+ | note the 2 lines relative to the admin level |