SID-01126: I can log in, but TWiki still thinks I am Guest
| Status: |
Unanswered |
TWiki version: |
5.0.1 |
Perl version: |
Activestate Perl 5.10.0 |
| Category: |
CategoryAuthentication |
Server OS: |
Windows Vista Home Premium |
Last update: |
14 years ago |
I have installed TWiki-5.0.1, Sun, 10 Oct 2010, build 19570 on a Windows Vista. (I also have a operational TWiki 4.3.1 running on the same machine). I am using identical settings for security, and almost all other settings, except for the paths to the TWiki 5 install.
I have successfully registered, and I can see that there is an entry in the password file (I use templatelogin). The user topic is also created properly. When I login, I am properly recognized, and allowed in. (I checked this by trying a wrong password, which was rejected).
However, the TWiki does not believe that I am actually logged in, and will ask me to login whenever I try to do something that requires an authenticated user. I don't see any telltale logs in the logfiles (except that all access seems to be by "guest"). What am I doing wrong? Where else should I be looking for clues?
I will be happy to provide the config details in an email, if required.
--
DipuDeshmukh - 2011-03-11
Discussion and Answer
Not sure, I am not so familiar with Windows install.
- By default, TWiki uses cookies to track users. Check if working/tmp is writable by the webserver user
- Check the {AuthScripts} configure setting
--
PeterThoeny - 2011-03-14
Thanks Peter for your hints. I checked that working/tmp is indeed writable by Apache, since I can see the session file being created there. However, on closer inspection, there seems to be a difference between what is being written inside this file between twiki 4 and twiki 5.
On twiki 4 there is a "DGP_hash" => "\4\a\0041234\4\4\4\b\3\0\0\0\0" at the end of the line. This hash is missing on twiki 5, after I login. Can this suggest some misconfiguration?
BTW, the (
AuthScripts} settings are identical in both twiki4 and twiki5. It reads
$TWiki::cfg{AuthScripts} = 'attach,edit,manage,rename,save,upload,viewauth,rdiffauth,rest';
--
DipuDeshmukh - 2011-03-14
I just did some digging, and looks like DGP_Hash is being set by the
DirectedGraphPlugin, which I had on Twiki4, but not on Twiki5. So, I am still baffled.
--
DipuDeshmukh - 2011-03-14
I checked the created cookie on my browser, and I can see the session file being created with the session id information inside working/tmp/. So, it looks like the session cookie is being written properly after my login. However, attempts to read it must be failing. Which module/function is responsible for mapping the current request to a logged in session? As I mentioned earlier, I am using
TemplateLogin - but I don't think that has anything to do with my symptoms.
--
DipuDeshmukh - 2011-03-14
Sessions are tracked in
$TWiki::cfg{WorkingDir}/tmp, see
twiki/lib/TWiki/LoginManager.pm.
--
PeterThoeny - 2011-03-16
Thanks Peter for the hint. I turned on trace on the
LoginManager, and here is the difference between TWiki5 behavior and TWiki4 behavior:
On TWiki5:
[Wed Mar 16 23:29:19 2011] [error] [client 192.168.2.14] Sessionunknown(c): Cookie TWIKIPREF=%7CTwistyContrib_topicattachmentslist%3D1%7CEditTextareaRows%3D38; TWIKISID=48ac52f6fc902c9314763031db9cb078, referer: http://automature.com/twiki5/bin/login/Main/WebTopMenu?twiki_redirect_cache=f903fbd9d89b50ee1889a3f987d0dceb
[Wed Mar 16 23:29:19 2011] [error] [client 192.168.2.14] Session92613df33ef50715099d8a3a94321e4a(c): Opened session, referer: http://automature.com/twiki5/bin/login/Main/WebTopMenu?twiki_redirect_cache=f903fbd9d89b50ee1889a3f987d0dceb
[Wed Mar 16 23:29:19 2011] [error] [client 192.168.2.14] Session92613df33ef50715099d8a3a94321e4a(c): session says user is undef, referer: http://automature.com/twiki5/bin/login/Main/WebTopMenu?twiki_redirect_cache=f903fbd9d89b50ee1889a3f987d0dceb
[Wed Mar 16 23:29:19 2011] [error] [client 192.168.2.14] Session92613df33ef50715099d8a3a94321e4a(c): Session is NOT authenticated, referer: http://automature.com/twiki5/bin/login/Main/WebTopMenu?twiki_redirect_cache=f903fbd9d89b50ee1889a3f987d0dceb
[Wed Mar 16 23:29:19 2011] [error] [client 192.168.2.14] Session92613df33ef50715099d8a3a94321e4a(c): Flushed, referer: http://automature.com/twiki5/bin/login/Main/WebTopMenu?twiki_redirect_cache=f903fbd9d89b50ee1889a3f987d0dceb
[Wed Mar 16 23:29:19 2011] [error] [client 192.168.2.14] Session92613df33ef50715099d8a3a94321e4a(c): Flushed, referer: http://automature.com/twiki5/bin/login/Main/WebTopMenu?twiki_redirect_cache=f903fbd9d89b50ee1889a3f987d0dceb
On TWiki4:
[Wed Mar 16 23:31:35 2011] [error] [client 192.168.2.14] Sessionunknown(c): Cookie TWIKIPREF=%7CTwistyContrib_topicattachmentslist%3D1%7CEditTextareaRows%3D38; TWIKISID=6e55956a5b4bd9e03e811c028a39efd4, referer: http://automature.com/twiki/bin/login/DEV_ZERMATT/ZermattSearch?skin=clean.nat%2Cautomature;origurl=%2Ftwiki%2Fbin%2Fview%2FDEV_ZERMATT%2FZermattSearch%3Flogout%3D1
[Wed Mar 16 23:31:35 2011] [error] [client 192.168.2.14] Session6e55956a5b4bd9e03e811c028a39efd4(c): Opened session, referer: http://automature.com/twiki/bin/login/DEV_ZERMATT/ZermattSearch?skin=clean.nat%2Cautomature;origurl=%2Ftwiki%2Fbin%2Fview%2FDEV_ZERMATT%2FZermattSearch%3Flogout%3D1
[Wed Mar 16 23:31:35 2011] [error] [client 192.168.2.14] Session6e55956a5b4bd9e03e811c028a39efd4(c): session says user is DipuDeshmukh, referer: http://automature.com/twiki/bin/login/DEV_ZERMATT/ZermattSearch?skin=clean.nat%2Cautomature;origurl=%2Ftwiki%2Fbin%2Fview%2FDEV_ZERMATT%2FZermattSearch%3Flogout%3D1
[Wed Mar 16 23:31:35 2011] [error] [client 192.168.2.14] Session6e55956a5b4bd9e03e811c028a39efd4(c): Session says user is DipuDeshmukh - , referer: http://automature.com/twiki/bin/login/DEV_ZERMATT/ZermattSearch?skin=clean.nat%2Cautomature;origurl=%2Ftwiki%2Fbin%2Fview%2FDEV_ZERMATT%2FZermattSearch%3Flogout%3D1
[Wed Mar 16 23:31:35 2011] [error] [client 192.168.2.14] Session6e55956a5b4bd9e03e811c028a39efd4(c): Session is authenticated, referer: http://automature.com/twiki/bin/login/DEV_ZERMATT/ZermattSearch?skin=clean.nat%2Cautomature;origurl=%2Ftwiki%2Fbin%2Fview%2FDEV_ZERMATT%2FZermattSearch%3Flogout%3D1
[Wed Mar 16 23:31:35 2011] [error] [client 192.168.2.14] Session6e55956a5b4bd9e03e811c028a39efd4(c): converting from undef to DipuDeshmukh, referer: http://automature.com/twiki/bin/login/DEV_ZERMATT/ZermattSearch?skin=clean.nat%2Cautomature;origurl=%2Ftwiki%2Fbin%2Fview%2FDEV_ZERMATT%2FZermattSearch%3Flogout%3D1
[Wed Mar 16 23:31:35 2011] [error] [client 192.168.2.14] Session6e55956a5b4bd9e03e811c028a39efd4(c): Flushed, referer: http://automature.com/twiki/bin/login/DEV_ZERMATT/ZermattSearch?skin=clean.nat%2Cautomature;origurl=%2Ftwiki%2Fbin%2Fview%2FDEV_ZERMATT%2FZermattSearch%3Flogout%3D1
[Wed Mar 16 23:31:35 2011] [error] [client 192.168.2.14] Session6e55956a5b4bd9e03e811c028a39efd4(c): Flushed, referer: http://automature.com/twiki/bin/login/DEV_ZERMATT/ZermattSearch?skin=clean.nat%2Cautomature;origurl=%2Ftwiki%2Fbin%2Fview%2FDEV_ZERMATT%2FZermattSearch%3Flogout%3D1
So, it looks like TWiki5 is not able to map the incoming cookie to the previously authenticated session.
--
DipuDeshmukh - 2011-03-17
OK, I have narrowed the problem down somewhat. It appears that the following call in side the
LoginManager.pm inside loadSession() is causing the problem,
$this->{_cgisession} = TWiki::LoginManager::Session->new(
undef, $query,
{ Directory => "$TWiki::cfg{WorkingDir}/tmp" } );
On TWiki4, CGI is able to relate this to an existing session, but not on TWiki5. After consulting the CGI::Session documentation, I don't see why this should not work, but, of course the devil is in the details of what exactly is being passed into CGI::Session and what the previous state was.
--
DipuDeshmukh - 2011-03-17
It looks like the session file was found, but for whatever reason the user could not be identified. Time to debug. Compare the session files of TWiki-4 and TWiki-5.0
--
PeterThoeny - 2011-03-17
The session file on TWiki-4 looks like the following
$D = {"_SESSION_ETIME" => undef,"_SESSION_ID" => "1f4733bffe9fc68a110ce1eb52b185e8","REMEMBER" => undef,"_SESSION_REMOTE_ADDR" => "192.168.2.14","AUTHUSER" => "DipuDeshmukh","_SESSION_CTIME" => "1300394405","_SESSION_ATIME" => "1300394408","VALIDATION" => 1,"_SESSION_EXPIRE_LIST" => {},"DGP_hash" => "\4\a\0041234\4\4\4\b\3\0\0\0\0"};
The session file on TWiki-5 looks like the following
$D = {"_SESSION_ETIME" => undef,"_SESSION_ID" => "7713b653f9eb108acd951271cd6bea9b","REMEMBER" => undef,"AUTHUSER" => "DipuDeshmukh","_SESSION_REMOTE_ADDR" => "192.168.2.14","_SESSION_CTIME" => "1300394388","_SESSION_ATIME" => "1300394388","VALIDATION" => 1,"_SESSION_EXPIRE_LIST" => {}};
The trace on TWiki-5 was
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Sessionunknown(c): URL http://automature.com/twiki5/bin/login, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Sessionunknown(c): Cookie TWIKIPREF=%7CTwistyContrib_topicattachmentslist%3D1%7CEditTextareaRows%3D38; TWIKISID=3d88777bb3f7cd5254b9f00caa1dce2d, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Session7713b653f9eb108acd951271cd6bea9b(c): Opened session, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Session7713b653f9eb108acd951271cd6bea9b(c): session says user is undef, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Session7713b653f9eb108acd951271cd6bea9b(c): Session is NOT authenticated, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Session7713b653f9eb108acd951271cd6bea9b(c): Session is authenticated, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Session7713b653f9eb108acd951271cd6bea9b(c): converting from guest to DipuDeshmukh, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Session7713b653f9eb108acd951271cd6bea9b(c): Redirect to /twiki5/bin/view/Main/WebHome with cookie, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Session7713b653f9eb108acd951271cd6bea9b(c): Flushed, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Sessionunknown(c): URL http://automature.com/twiki5/bin/view, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Sessionunknown(c): Cookie TWIKIPREF=%7CTwistyContrib_topicattachmentslist%3D1%7CEditTextareaRows%3D38; TWIKISID=7713b653f9eb108acd951271cd6bea9b, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Sessione823fe6e78766b823a86a438159d5218(c): Opened session, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Sessione823fe6e78766b823a86a438159d5218(c): session says user is undef, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Sessione823fe6e78766b823a86a438159d5218(c): Session is NOT authenticated, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
[Thu Mar 17 16:39:48 2011] [error] [client 192.168.2.14] Sessione823fe6e78766b823a86a438159d5218(c): Flushed, referer: http://automature.com/twiki5/bin/login/Main/WebHome?origurl=/twiki5/bin/view/Main/WebHome
Actually there were three session files created on TWiki-5 as a result of the login. One before the one posted above, one after. Here is what was posted afterwards...
$D = {"_SESSION_ETIME" => undef,"_SESSION_ID" => "e823fe6e78766b823a86a438159d5218","_SESSION_ATIME" => "1300394388","_SESSION_EXPIRE_LIST" => {},"_SESSION_REMOTE_ADDR" => "192.168.2.14","_SESSION_CTIME" => "1300394388"};
--
DipuDeshmukh - 2011-03-17
Idea: Delete or rename
twiki/lib/LocalSite.cfg and redo the configuration using the configure script. This makes sure that you have default settings.
--
PeterThoeny - 2011-03-18
Just wanted to tell you that renaming and redoing the config did not have any effect on my ability to login. I am starting to think that I need to upgrade some Perl modules. However, the same modules work with my TWiki-4 install on the same machine.
Here are the relevant portions of the
LocalSite.cfg file (Sensitive/irrelevant information has been obfuscated).
# Local site settings for TWiki. This file is managed by the 'configure'
# CGI script, though you can also make (careful!) manual changes with a
# text editor.
$TWiki::cfg{DefaultUrlHost} = 'http://localhost';
$TWiki::cfg{PermittedRedirectHostUrls} = 'http://localhost, http://dipu.dynalias.com, http://attic, http://192.168.2.6,http://www.automature.com,http://automature.com, http://24.2.130.146';
$TWiki::cfg{ScriptUrlPath} = '/twiki5/bin';
$TWiki::cfg{PubUrlPath} = '/twiki5/pub';
$TWiki::cfg{PubDir} = 'C:/www/twiki5/pub';
$TWiki::cfg{TemplateDir} = 'C:/www/twiki5/templates';
$TWiki::cfg{DataDir} = 'C:/www/twiki5/data';
$TWiki::cfg{LocalesDir} = 'C:/www/twiki5/locale';
$TWiki::cfg{WorkingDir} = 'C:/www/twiki5/working';
$TWiki::cfg{ScriptSuffix} = '';
$TWiki::cfg{Password} = '0HA79pNmer5m.';
$TWiki::cfg{SafeEnvPath} = 'c:\\ruby\\bin;C:\\Program Files (x86)\\Java\\jdk1.6.0_14\\bin;C:\\Perl\\site\\bin;C:\\Perl\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\Python;C:\\Program Files\\MySQL\\MySQL Server 5.1\\bin;C:\\Program Files (x86)\\Subversion\\bin;C:\\Program Files (x86)\\MySQL\\mysql-proxy-0.6.1-win32-x86\\;C:\\Program Files (x86)\\WinRAR\\;C:\\Ploticus241\\bin;C:\\Program Files (x86)\\Subversion\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\MySQL\\MySQL Server 5.1\\bin';
$TWiki::cfg{UseClientSessions} = 1;
$TWiki::cfg{Sessions}{ExpireAfter} = 21600;
$TWiki::cfg{Sessions}{ExpireCookiesAfter} = 0;
$TWiki::cfg{Sessions}{IDsInURLs} = 0;
$TWiki::cfg{Sessions}{UseIPMatching} = 1;
$TWiki::cfg{Sessions}{MapIP2SID} = 0;
$TWiki::cfg{LoginManager} = 'TWiki::LoginManager::TemplateLogin';
$TWiki::cfg{TemplateLogin}{PreventBrowserRememberingPassword} = 0;
$TWiki::cfg{LoginNameFilterIn} = '^[^\\s\\*?~^\\$@%`"\'&;|<>\\x00-\\x1f]+$';
$TWiki::cfg{DefaultUserLogin} = 'guest';
$TWiki::cfg{DefaultUserWikiName} = 'TWikiGuest';
$TWiki::cfg{AdminUserLogin} = 'admin';
$TWiki::cfg{AdminUserWikiName} = 'TWikiAdminUser';
$TWiki::cfg{SuperAdminGroup} = 'TWikiAdminGroup';
$TWiki::cfg{UsersTopicName} = 'TWikiUsers';
$TWiki::cfg{AuthScripts} = 'attach,edit,manage,rename,save,upload,viewauth,rdiffauth,rest';
$TWiki::cfg{AuthRealm} = 'Enter your TWiki.LoginName. (Typically First name and last name, no space, no dots, capitalized, e.g. !JohnSmith, unless you chose otherwise). Visit TWiki.TWikiRegistration if you do not have one.';
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::TWikiUserMapping';
$TWiki::cfg{Register}{EnableNewUserRegistration} = 1;
$TWiki::cfg{Register}{HidePasswd} = 1;
$TWiki::cfg{PasswordManager} = 'TWiki::Users::HtPasswdUser';
$TWiki::cfg{MinPasswordLength} = 6;
$TWiki::cfg{Htpasswd}{FileName} = 'C:/www/twiki5/data/.htpasswd ';
$TWiki::cfg{Htpasswd}{Encoding} = 'sha1';
$TWiki::cfg{CryptToken}{Enable} = 0;
$TWiki::cfg{CryptToken}{SecureActions} = 'register,save,comment,createweb,upload';
$TWiki::cfg{OS} = 'WINDOWS';
$TWiki::cfg{DetailedOS} = 'MSWin32';
$TWiki::cfg{DenyDotDotInclude} = 1;
$TWiki::cfg{AllowInlineScript} = 1;
$TWiki::cfg{UploadFilter} = '^(\\.htaccess|.*\\.(?i)(?:php[0-9s]?(\\..*)?|[sp]htm[l]?(\\..*)?|pl|py|cgi))$';
$TWiki::cfg{NameFilter} = '[\\s\\*?~^\\$@%`"\'&;|<>\\[\\]\\x00-\\x1f]';
$TWiki::cfg{AccessibleENV} = '^(HTTP_\\w+|REMOTE_\\w+|SERVER_\\w+|REQUEST_\\w+|MOD_PERL|TWIKI_ACTION)$';
$TWiki::cfg{AntiSpam}{EmailPadding} = '';
$TWiki::cfg{AntiSpam}{HideUserDetails} = 1;
$TWiki::cfg{AntiSpam}{RobotsAreWelcome} = 1;
$TWiki::cfg{Log}{view} = 1;
$TWiki::cfg{Log}{viewfile} = 1;
$TWiki::cfg{Log}{search} = 1;
$TWiki::cfg{Log}{changes} = 1;
$TWiki::cfg{Log}{rdiff} = 1;
$TWiki::cfg{Log}{edit} = 1;
$TWiki::cfg{Log}{save} = 1;
$TWiki::cfg{Log}{upload} = 1;
$TWiki::cfg{Log}{attach} = 1;
$TWiki::cfg{Log}{rename} = 1;
$TWiki::cfg{Log}{register} = 1;
$TWiki::cfg{ConfigurationLogName} = 'C:/www/twiki5/data/configurationlog.txt';
$TWiki::cfg{DebugFileName} = 'C:/www/twiki5/data/debug.txt';
$TWiki::cfg{WarningFileName} = 'C:/www/twiki5/data/warn%DATE%.txt';
$TWiki::cfg{LogFileName} = 'C:/www/twiki5/data/log%DATE%.txt';
$TWiki::cfg{Languages}{bg}{Enabled} = 1;
$TWiki::cfg{Languages}{cs}{Enabled} = 1;
$TWiki::cfg{Languages}{da}{Enabled} = 1;
$TWiki::cfg{Languages}{de}{Enabled} = 1;
$TWiki::cfg{Languages}{es}{Enabled} = 1;
$TWiki::cfg{Languages}{fr}{Enabled} = 1;
$TWiki::cfg{Languages}{it}{Enabled} = 1;
$TWiki::cfg{Languages}{ja}{Enabled} = 1;
$TWiki::cfg{Languages}{ko}{Enabled} = 1;
$TWiki::cfg{Languages}{nl}{Enabled} = 1;
$TWiki::cfg{Languages}{pl}{Enabled} = 1;
$TWiki::cfg{Languages}{pt}{Enabled} = 1;
$TWiki::cfg{Languages}{ru}{Enabled} = 1;
$TWiki::cfg{Languages}{sv}{Enabled} = 1;
$TWiki::cfg{Languages}{'zh-cn'}{Enabled} = 1;
$TWiki::cfg{Languages}{'zh-tw'}{Enabled} = 1;
$TWiki::cfg{DisplayTimeValues} = 'gmtime';
$TWiki::cfg{DefaultDateFormat} = '$year-$mo-$day';
$TWiki::cfg{Site}{Locale} = 'en_US.ISO-8859-1';
$TWiki::cfg{Site}{LocaleRegexes} = 1;
$TWiki::cfg{UpperNational} = '';
$TWiki::cfg{LowerNational} = '';
$TWiki::cfg{PluralToSingular} = 1;
$TWiki::cfg{StoreImpl} = 'RcsLite';
$TWiki::cfg{RCS}{ExtOption} = '-x,v';
$TWiki::cfg{RCS}{dirPermission} = 493;
$TWiki::cfg{RCS}{filePermission} = 420;
$TWiki::cfg{Store}{RememberChangesFor} = 2678400;
$TWiki::cfg{RCS}{asciiFileSuffixes} = '\\.(txt|html|xml|pl)$';
$TWiki::cfg{RCS}{initBinaryCmd} = '/usr/bin/rcs -i -t-none -kb %FILENAME|F%';
$TWiki::cfg{RCS}{initTextCmd} = '/usr/bin/rcs -i -t-none -ko %FILENAME|F%';
$TWiki::cfg{RCS}{tmpBinaryCmd} = '/usr/bin/rcs -kb %FILENAME|F%';
$TWiki::cfg{RCS}{ciCmd} = '/usr/bin/ci -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F%';
$TWiki::cfg{RCS}{ciDateCmd} = '/usr/bin/ci -m%COMMENT|U% -t-none -d%DATE|D% -u -w%USERNAME|S% %FILENAME|F%';
$TWiki::cfg{RCS}{coCmd} = '/usr/bin/co -p%REVISION|N% -ko %FILENAME|F%';
$TWiki::cfg{RCS}{histCmd} = '/usr/bin/rlog -h %FILENAME|F%';
$TWiki::cfg{RCS}{infoCmd} = '/usr/bin/rlog -r%REVISION|N% %FILENAME|F%';
$TWiki::cfg{RCS}{rlogDateCmd} = '/usr/bin/rlog -d%DATE|D% %FILENAME|F%';
$TWiki::cfg{RCS}{diffCmd} = '/usr/bin/rcsdiff -q -w -B -r%REVISION1|N% -r%REVISION2|N% -ko --unified=%CONTEXT|N% %FILENAME|F%';
$TWiki::cfg{RCS}{lockCmd} = '/usr/bin/rcs -l %FILENAME|F%';
$TWiki::cfg{RCS}{unlockCmd} = '/usr/bin/rcs -u %FILENAME|F%';
$TWiki::cfg{RCS}{breaklockCmd} = '/usr/bin/rcs -u -M %FILENAME|F%';
$TWiki::cfg{RCS}{delRevCmd} = '/usr/bin/rcs -o%REVISION|N% %FILENAME|F%';
$TWiki::cfg{RCS}{SearchAlgorithm} = 'TWiki::Store::SearchAlgorithms::Forking';
$TWiki::cfg{RCS}{QueryAlgorithm} = 'TWiki::Store::QueryAlgorithms::BruteForce';
$TWiki::cfg{RCS}{EgrepCmd} = '/bin/grep -E %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$TWiki::cfg{RCS}{FgrepCmd} = '/bin/grep -F %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$TWiki::cfg{EnableHierarchicalWebs} = 1;
$TWiki::cfg{SystemWebName} = 'TWiki';
$TWiki::cfg{TrashWebName} = 'Trash';
$TWiki::cfg{UsersWebName} = 'Main';
$TWiki::cfg{EnableEmail} = 1;
$TWiki::cfg{WebMasterEmail} = 'xxxxxxxxxxxxxxx';
$TWiki::cfg{WebMasterName} = '=AUTOMATURE TWIKI-5 ADMINISTRATOR=';
$TWiki::cfg{MailProgram} = 'C:/usr/lib/sendmail.exe -t';
$TWiki::cfg{SMTP}{MAILHOST} = '';
$TWiki::cfg{SMTP}{SENDERHOST} = '';
$TWiki::cfg{SMTP}{Username} = 'xxxxxxxxxxxxxx';
$TWiki::cfg{SMTP}{Password} = 'xxxxxxxxxxxxxxxx';
$TWiki::cfg{RemoveImgInMailnotify} = 1;
$TWiki::cfg{NotifyTopicName} = 'WebNotify';
$TWiki::cfg{SMTP}{Debug} = 0;
$TWiki::cfg{PROXY}{HOST} = '';
$TWiki::cfg{PROXY}{PORT} = '';
$TWiki::cfg{PROXY}{Username} = '';
$TWiki::cfg{PROXY}{Password} = '';
$TWiki::cfg{PROXY}{SkipProxyForDomains} = '';
$TWiki::cfg{Stats}{TopViews} = 10;
$TWiki::cfg{Stats}{TopContrib} = 10;
$TWiki::cfg{Stats}{TopicName} = 'WebStatistics';
$TWiki::cfg{TemplatePath} = 'C:/www/twiki5/templates/$web/$name.$skin.tmpl, C:/www/twiki5/templates/$name.$skin.tmpl, C:/www/twiki5/templates/$web/$name.tmpl, C:/www/twiki5/templates/$name.tmpl, $web.$skinSkin$nameTemplate, TWiki.$skinSkin$nameTemplate, $web.$nameTemplate, TWiki.$nameTemplate';
$TWiki::cfg{LinkProtocolPattern} = '(file|ftp|gopher|https|http|irc|mailto|news|nntp|telnet)';
$TWiki::cfg{SiteWebTopicName} = '';
$TWiki::cfg{SitePrefsTopicName} = 'TWikiPreferences';
$TWiki::cfg{LocalSitePreferences} = 'Main.TWikiPreferences';
$TWiki::cfg{HomeTopicName} = 'WebHome';
$TWiki::cfg{WebPrefsTopicName} = 'WebPreferences';
$TWiki::cfg{NumberOfRevisions} = 4;
$TWiki::cfg{ReplaceIfEditedAgainWithin} = 3600;
$TWiki::cfg{LeaseLength} = 3600;
$TWiki::cfg{LeaseLengthLessForceful} = 3600;
$TWiki::cfg{MimeTypesFileName} = 'C:/www/twiki5/data/mime.types';
$TWiki::cfg{Operators}{Query} = [
'TWiki::Query::OP_and',
'TWiki::Query::OP_eq',
'TWiki::Query::OP_lc',
'TWiki::Query::OP_lte',
'TWiki::Query::OP_not',
'TWiki::Query::OP_ref',
'TWiki::Query::OP_d2n',
'TWiki::Query::OP_gte',
'TWiki::Query::OP_length',
'TWiki::Query::OP_lt',
'TWiki::Query::OP_ob',
'TWiki::Query::OP_uc',
'TWiki::Query::OP_dot',
'TWiki::Query::OP_gt',
'TWiki::Query::OP_like',
'TWiki::Query::OP_ne',
'TWiki::Query::OP_or',
'TWiki::Query::OP_where'
];
$TWiki::cfg{Operators}{If} = [
'TWiki::If::OP_allows',
'TWiki::If::OP_defined',
'TWiki::If::OP_isempty',
'TWiki::If::OP_ingroup',
'TWiki::If::OP_isweb',
'TWiki::If::OP_context',
'TWiki::If::OP_dollar',
'TWiki::If::OP_istopic'
];
$TWiki::cfg{Plugins}{CommentPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{EditTablePlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{HeadlinesPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{InterwikiPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{JQueryPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{PreferencesPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{SlideShowPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{SmiliesPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{SpreadSheetPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{TablePlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{TagMePlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{TinyMCEPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{TWikiNetSkinPlugin}{Enabled} = 0;
$TWiki::cfg{Plugins}{TwistyPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{WysiwygPlugin}{Enabled} = 1;
$TWiki::cfg{PluginsOrder} = 'SpreadSheetPlugin';
$TWiki::cfg{ExtensionsRepositories} = 'TWiki.org=(http://twiki.org/cgi-bin/view/Plugins/,http://twiki.org/p/pub/Plugins/)';
$TWiki::cfg{Plugins}{AttachContentPlugin}{Debug} = 0;
$TWiki::cfg{Plugins}{AttachContentPlugin}{KeepPars} = 0;
$TWiki::cfg{Plugins}{AttachContentPlugin}{AttachmentComment} = 'Generated by <nop>AttachContentPlugin';
$TWiki::cfg{Plugins}{DatabasePlugin}{ConfigSource} = 'Local';
$TWiki::cfg{Plugins}{DatabasePlugin}{ConfigHost} = '';
$TWiki::cfg{Plugins}{DatabasePlugin}{ConfigDriver} = '';
$TWiki::cfg{Plugins}{DatabasePlugin}{ConfigDB} = '';
$TWiki::cfg{Plugins}{DatabasePlugin}{ConfigSID} = '';
$TWiki::cfg{Plugins}{DatabasePlugin}{ConfigTable} = '';
$TWiki::cfg{Plugins}{DatabasePlugin}{ConfigUsername} = '';
$TWiki::cfg{Plugins}{DatabasePlugin}{ConfigPassword} = '';
$TWiki::cfg{Plugins}{DatabasePlugin}{EditURLPrefix} = 'https';
$TWiki::cfg{Plugins}{DatabasePlugin}{EditURLPath} = 'phpMyAdmin-2.2.2-rc1';
$TWiki::cfg{Plugins}{DatabasePlugin}{Databases} = [
{
'sid' => 'sid',
'hostname' => 'localhost',
'description' => 'description',
'username' => 'user',
'database' => 'my_database',
'password' => 'pass',
'table_name' => '',
'driver' => 'mysql'
}
];
$TWiki::cfg{Plugins}{DatabaseContrib}{connections} = 'HASH(0x2346f64)';
$TWiki::cfg{JSCalendarContrib}{format} = '%Y-%m-%d';
$TWiki::cfg{JSCalendarContrib}{lang} = 'en';
$TWiki::cfg{JSCalendarContrib}{style} = 'blue';
$TWiki::cfg{MailerContrib}{EmailFilterIn} = '';
$TWiki::cfg{Site}{CharSet} = 'iso-8859-1';
$TWiki::cfg{Register}{NeedVerification} = 1;
1;
--
DipuDeshmukh - 2011-03-20
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2011-05-02
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.