Subject: New SMF Auth Module! V0.2 is out
I need an auth module that:
1. use SMF as user database
2. doesn't jeopardize Dokuwiki's basic function (register/user management)
After spending some time searching for a dokuwiki/SMF integration solution,
I realized there isn't a working one,
http://www.web-threads.com/downloads/dokuwiki-smf.php
is broken for now, mostly smf_api's fault.
http://wiki.splitbrain.org/wiki:auth:mysql_smf
basically throw away all dokuwiki user management.
So I decided to step up and utilize my terrible coding skill.
And the attachement is my initial result.
(Update: guest can't download attachment ? external link: http://blog.ticktag.org/addons/smfauth.class.zip
)
Installation:
0. set your SMF membergroups according to Dokuwiki's ACL, or vice versa.
1. download attachment, rename to smfauth.class.php, put it in your inc/auth/ directory.
2. edit the line require_once('/pathto/smf/Settings.php');, point to your SMF's Settings.php.
3. enable authtype "smfauth", either in Dokuwiki admin or local.php
4. Dokuwiki should start using SMF database for authentication, it will throw you out if you haven't set ACL corretly.
more comment in the file itself.
NOTE: This is an initial built, should it breaks you get to keep the pieces.
Any improvement/feedback on this is HIGHLY appreciated, but I probably won't be actively maintaining it, Anyone wish to pick it up ?
Best Wishes,
DF
1. use SMF as user database
2. doesn't jeopardize Dokuwiki's basic function (register/user management)
After spending some time searching for a dokuwiki/SMF integration solution,
I realized there isn't a working one,
http://www.web-threads.com/downloads/dokuwiki-smf.php
is broken for now, mostly smf_api's fault.
http://wiki.splitbrain.org/wiki:auth:mysql_smf
basically throw away all dokuwiki user management.
So I decided to step up and utilize my terrible coding skill.
And the attachement is my initial result.
(Update: guest can't download attachment ? external link: http://blog.ticktag.org/addons/smfauth.class.zip
)Installation:
0. set your SMF membergroups according to Dokuwiki's ACL, or vice versa.
1. download attachment, rename to smfauth.class.php, put it in your inc/auth/ directory.
2. edit the line require_once('/pathto/smf/Settings.php');, point to your SMF's Settings.php.
3. enable authtype "smfauth", either in Dokuwiki admin or local.php
4. Dokuwiki should start using SMF database for authentication, it will throw you out if you haven't set ACL corretly.
more comment in the file itself.
NOTE: This is an initial built, should it breaks you get to keep the pieces.
Any improvement/feedback on this is HIGHLY appreciated, but I probably won't be actively maintaining it, Anyone wish to pick it up ?
Best Wishes,
DF
The author has attached one file to this post:
smfauth.class.txt 13.5 kBytesYou have no permission to open this file.
Edit reason: upload correct version
landlord
Show profile
Link to this post
matching pattern can't distinguish 11 and 1