auth:mysql_nuked-klan
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
auth:mysql_nuked-klan [2011-03-22 17:31] – Aleksandr | auth:mysql_nuked-klan [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[mysql|« MySQL Authentification Backend]] | ||
- | ====== Nuked Klan====== | ||
- | |||
- | 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 |
auth/mysql_nuked-klan.1300811488.txt.gz · Last modified: 2011-03-22 17:31 by Aleksandr