[ phpwiki-Bugs-969156 ] DBAUTH_AUTH_(CREATE, USER_EXISTS) default values

"SourceForge.net" <[email protected]> Tue, 08 Jun 2004 12:41:01 -0700
Newsgroups gmane.comp.web.wiki.phpwiki.bugs
Message-ID <[email protected]>
Bugs item #969156, was opened at 2004-06-08 12:41
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=969156&group_id=6121

Category: MySQL
Group: User Authentication
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: DBAUTH_AUTH_(CREATE, USER_EXISTS) default values

Initial Comment:
I'm using an external MySQL for user authentication.  I
want all users register from another application and
make phpwiki an add-on to that program.

I got some error messages complaining not able to find
specific tables in my external MySQL.  Later I realized
it's pre-defined config-default.ini but in config.ini
it isn't clear whether we should unset some default values.

I suggest add after line 539 (config-dist.ini):

DBAUTH_AUTH_USER_EXISTS = "SELECT username FROM users
WHERE username='$userid'"

to remind insaller to properly set it, even if they
don't use Unix crypt().


For those who don't want new users to register through
phpWiki, either comment out config-default.ini line 66:

DBAUTH_AUTH_CREATE = "INSERT INTO user SET
passwd=PASSWORD('$password'),userid='$userid'"

or add the following line in config.ini to unset the value 

line 557
DBAUTH_AUTH_CREATE = ""
(maybe there is an UNSET function in php but I don't know).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=969156&group_id=6121


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org