This question about LDAP: Answered
Access Check on Main.Web Failed after LdapContrib configured
Hey
I'm having the same problem as
MattWilson in
Question442.
When I set the LoginManager to {LoginManager}Foswiki::LoginManager::LdapApacheLogin and then try to go to the Login Page of my Foswiki installation , i get this Error Message :
Access Denied
Attention
Access check on
Main failed. Action "viewauth": vikleewauth requires authentication.
But when I change to {LoginManager}Foswiki::LoginManager::TemplateLogin and then try to login with my LDAP username and Passwort, i get this Error Message :
Oops: we could not recognize you.
Since I'm kind of new to LDAP, I'm not sure whether i have the right Settings in my LocalSite.cfg (Posted below)
# Local site settings for Foswiki. This file is managed by the 'configure'
# CGI script, though you can also make (careful!) manual changes with a
# text editor. See the Foswiki.spec file in this directory for documentation
# Extensions are documented in the Config.spec file in the Plugins/<extension>
# or Contrib/<extension> directories
$Foswiki::cfg{DefaultUrlHost} = 'http://180.1.230.22';
$Foswiki::cfg{PermittedRedirectHostUrls} = '';
$Foswiki::cfg{ScriptUrlPath} = '/foswiki/bin';
$Foswiki::cfg{ScriptUrlPaths}{view} = '$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}';
$Foswiki::cfg{ScriptDir} = '/srv/www/foswiki/bin';
$Foswiki::cfg{PubUrlPath} = '/foswiki/pub';
$Foswiki::cfg{PathCheckLimit} = 4200;
$Foswiki::cfg{PubDir} = '/srv/www/foswiki/pub';
$Foswiki::cfg{DataDir} = '/srv/www/foswiki/data';
$Foswiki::cfg{ToolsDir} = '/srv/www/foswiki/tools';
$Foswiki::cfg{TemplateDir} = '/srv/www/foswiki/templates';
$Foswiki::cfg{LocalesDir} = '/srv/www/foswiki/locale';
$Foswiki::cfg{WorkingDir} = '/srv/www/foswiki/working';
$Foswiki::cfg{ScriptSuffix} = '';
$Foswiki::cfg{OS} = 'UNIX';
$Foswiki::cfg{DetailedOS} = 'linux';
$Foswiki::cfg{UseClientSessions} = 1;
$Foswiki::cfg{Sessions}{ExpireAfter} = 21600;
$Foswiki::cfg{Sessions}{ExpireCookiesAfter} = 0;
$Foswiki::cfg{Sessions}{IDsInURLs} = 0;
$Foswiki::cfg{Sessions}{UseIPMatching} = 0;
$Foswiki::cfg{Sessions}{MapIP2SID} = 0;
$Foswiki::cfg{Sessions}{CookieRealm} = '';
$Foswiki::cfg{Validation}{Method} = 'strikeone';
$Foswiki::cfg{Validation}{ValidForTime} = 3600;
$Foswiki::cfg{Validation}{MaxKeysPerSession} = 1000;
$Foswiki::cfg{Validation}{ExpireKeyOnUse} = 1;
$Foswiki::cfg{LoginManager} = 'Foswiki::LoginManager::TemplateLogin';
$Foswiki::cfg{AuthScripts} = 'attach,edit,manage,rename,save,upload,viewauth,rdiffauth,rest';
$Foswiki::cfg{TemplateLogin}{PreventBrowserRememberingPassword} = 0;
$Foswiki::cfg{LoginNameFilterIn} = '^[^\\s\\*?~^\\$@%`"\'&;|<>\\x00-\\x1f]+$';
$Foswiki::cfg{DefaultUserLogin} = 'guest';
$Foswiki::cfg{DefaultUserWikiName} = 'WikiGuest';
$Foswiki::cfg{AdminUserLogin} = 'admin';
$Foswiki::cfg{AdminUserWikiName} = 'AdminUser';
$Foswiki::cfg{SuperAdminGroup} = 'AdminGroup';
$Foswiki::cfg{UsersTopicName} = 'WikiUsers';
$Foswiki::cfg{AuthRealm} = 'Enter your WikiName. (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.';
$Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::TopicUserMapping';
$Foswiki::cfg{PasswordManager} = 'Foswiki::Users::LdapPasswdUser';
$Foswiki::cfg{MinPasswordLength} = 7;
$Foswiki::cfg{Htpasswd}{FileName} = '$Foswiki::cfg{DataDir}/.htpasswd';
$Foswiki::cfg{Htpasswd}{Encoding} = 'crypt';
$Foswiki::cfg{Register}{AllowLoginName} = 0;
$Foswiki::cfg{Register}{EnableNewUserRegistration} = 1;
$Foswiki::cfg{Register}{NeedVerification} = 0;
$Foswiki::cfg{Register}{DisablePasswordConfirmation} = 0;
$Foswiki::cfg{Register}{HidePasswd} = 1;
$Foswiki::cfg{Register}{RegistrationAgentWikiName} = 'RegistrationAgent';
$Foswiki::cfg{Password} = 'rnGSOKISsZ4wg';
$Foswiki::cfg{SafeEnvPath} = '/sbin:/usr/sbin:/sbin:/usr/sbin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:';
$Foswiki::cfg{AccessibleCFG} = [
'{ScriptSuffix}',
'{LoginManager}',
'{AuthScripts}',
'{LoginNameFilterIn}',
'{AdminUserLogin}',
'{AdminUserWikiName}',
'{SuperAdminGroup}',
'{UsersTopicName}',
'{AuthRealm}',
'{MinPasswordLength}',
'{Register}{AllowLoginName}',
'{Register}{EnableNewUserRegistration}',
'{Register}{NeedVerification}',
'{Register}{RegistrationAgentWikiName}',
'{AllowInlineScript}',
'{DenyDotDotInclude}',
'{UploadFilter}',
'{NameFilter}',
'{AccessibleCFG}',
'{AntiSpam}{EmailPadding}',
'{AntiSpam}{HideUserDetails}',
'{AntiSpam}{RobotsAreWelcome}',
'{Stats}{TopViews}',
'{Stats}{TopContrib}',
'{Stats}{TopicName}',
'{UserInterfaceInternationalisation}',
'{UseLocale}',
'{Site}{Locale}',
'{Site}{CharSet}',
'{DisplayTimeValues}',
'{DefaultDateFormat}',
'{Site}{LocaleRegexes}',
'{UpperNational}',
'{LowerNational}',
'{PluralToSingular}',
'{EnableHierarchicalWebs}',
'{WebMasterEmail}',
'{WebMasterName}',
'{NotifyTopicName}',
'{SystemWebName}',
'{TrashWebName}',
'{SitePrefsTopicName}',
'{LocalSitePreferences}',
'{HomeTopicName}',
'{WebPrefsTopicName}',
'{UsersWebName}',
'{TemplatePath}',
'{LinkProtocolPattern}',
'{NumberOfRevisions}',
'{MaxRevisionsInADiff}',
'{ReplaceIfEditedAgainWithin}',
'{LeaseLength}',
'{LeaseLengthLessForceful}',
'{Plugins}{WebSearchPath}',
'{PluginsOrder}',
'{Cache}{Enabled}',
'{Validation}{Method}',
'{Register}{DisablePasswordConfirmation}'
];
$Foswiki::cfg{INCLUDE}{AllowURLs} = 0;
$Foswiki::cfg{AllowInlineScript} = 1;
$Foswiki::cfg{RenderLoggedInButUnknownUsers} = 0;
$Foswiki::cfg{DenyDotDotInclude} = 1;
$Foswiki::cfg{UploadFilter} = '^(\\.htaccess|.*\\.(?i)(?:php[0-9s]?(\\..*)?|[sp]htm[l]?(\\..*)?|pl|py|cgi))$';
$Foswiki::cfg{NameFilter} = '[\\s\\*?~^\\$@%`"\'&;|<>\\[\\]#\\x00-\\x1f]';
$Foswiki::cfg{ForceUnsafeRegexes} = 0;
$Foswiki::cfg{GetScriptUrlFromCgi} = 0;
$Foswiki::cfg{DrainStdin} = 0;
$Foswiki::cfg{RemovePortNumber} = 0;
$Foswiki::cfg{AllowRedirectUrl} = 0;
$Foswiki::cfg{UsePathForRedirectCache} = 0;
$Foswiki::cfg{AccessibleENV} = '^(HTTP_\\w+|REMOTE_\\w+|SERVER_\\w+|REQUEST_\\w+|MOD_PERL|FOSWIKI_ACTION|PATH_INFO)$';
$Foswiki::cfg{AntiSpam}{EmailPadding} = '';
$Foswiki::cfg{AntiSpam}{HideUserDetails} = 1;
$Foswiki::cfg{AntiSpam}{RobotsAreWelcome} = 1;
$Foswiki::cfg{Log}{Dir} = '$Foswiki::cfg{WorkingDir}/logs';
$Foswiki::cfg{Log}{Implementation} = 'Foswiki::Logger::PlainFile';
$Foswiki::cfg{Log}{Action} = {
'search' => 1,
'rest' => 1,
'viewfile' => 1,
'edit' => 1,
'register' => 1,
'save' => 1,
'rename' => 1,
'changes' => 1,
'view' => 1,
'rdiff' => 1,
'upload' => 1,
'attach' => 1
};
$Foswiki::cfg{Stats}{TopViews} = 10;
$Foswiki::cfg{Stats}{TopContrib} = 10;
$Foswiki::cfg{Stats}{TopicName} = 'WebStatistics';
$Foswiki::cfg{UserInterfaceInternationalisation} = 0;
$Foswiki::cfg{Languages}{bg}{Enabled} = 1;
$Foswiki::cfg{Languages}{da}{Enabled} = 1;
$Foswiki::cfg{Languages}{de}{Enabled} = 1;
$Foswiki::cfg{Languages}{cs}{Enabled} = 1;
$Foswiki::cfg{Languages}{es}{Enabled} = 1;
$Foswiki::cfg{Languages}{fi}{Enabled} = 1;
$Foswiki::cfg{Languages}{fr}{Enabled} = 1;
$Foswiki::cfg{Languages}{ja}{Enabled} = 1;
$Foswiki::cfg{Languages}{it}{Enabled} = 1;
$Foswiki::cfg{Languages}{ko}{Enabled} = 1;
$Foswiki::cfg{Languages}{nl}{Enabled} = 1;
$Foswiki::cfg{Languages}{no}{Enabled} = 1;
$Foswiki::cfg{Languages}{pl}{Enabled} = 1;
$Foswiki::cfg{Languages}{pt}{Enabled} = 1;
$Foswiki::cfg{Languages}{ru}{Enabled} = 1;
$Foswiki::cfg{Languages}{sv}{Enabled} = 1;
$Foswiki::cfg{Languages}{tr}{Enabled} = 1;
$Foswiki::cfg{Languages}{'pt-br'}{Enabled} = 1;
$Foswiki::cfg{Languages}{'zh-cn'}{Enabled} = 1;
$Foswiki::cfg{Languages}{'zh-tw'}{Enabled} = 1;
$Foswiki::cfg{UseLocale} = 0;
$Foswiki::cfg{Site}{Locale} = 'en_US.ISO-8859-1';
$Foswiki::cfg{DisplayTimeValues} = 'gmtime';
$Foswiki::cfg{DefaultDateFormat} = '$day $month $year';
$Foswiki::cfg{Site}{LocaleRegexes} = 1;
$Foswiki::cfg{UpperNational} = '';
$Foswiki::cfg{LowerNational} = '';
$Foswiki::cfg{PluralToSingular} = 1;
$Foswiki::cfg{Store}{Implementation} = 'Foswiki::Store::RcsWrap';
$Foswiki::cfg{EnableHierarchicalWebs} = 1;
$Foswiki::cfg{Store}{RememberChangesFor} = 2678400;
$Foswiki::cfg{Store}{SearchAlgorithm} = 'Foswiki::Store::SearchAlgorithms::Forking';
$Foswiki::cfg{Store}{EgrepCmd} = '/bin/grep -E %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$Foswiki::cfg{Store}{FgrepCmd} = '/bin/grep -F %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$Foswiki::cfg{Store}{QueryAlgorithm} = 'Foswiki::Store::QueryAlgorithms::BruteForce';
$Foswiki::cfg{Store}{PrefsBackend} = 'Foswiki::Prefs::TopicRAM';
$Foswiki::cfg{RCS}{dirPermission} = 493;
$Foswiki::cfg{RCS}{filePermission} = 420;
$Foswiki::cfg{RCS}{AutoAttachPubFiles} = 0;
$Foswiki::cfg{RCS}{ExtOption} = '';
$Foswiki::cfg{RCS}{asciiFileSuffixes} = '\\.(txt|html|xml|pl)$';
$Foswiki::cfg{RCS}{coMustCopy} = 0;
$Foswiki::cfg{RCS}{initBinaryCmd} = '/usr/bin/rcs -i -t-none -kb %FILENAME|F%';
$Foswiki::cfg{RCS}{initTextCmd} = '/usr/bin/rcs -i -t-none -ko %FILENAME|F%';
$Foswiki::cfg{RCS}{tmpBinaryCmd} = '/usr/bin/rcs -kb %FILENAME|F%';
$Foswiki::cfg{RCS}{ciCmd} = '/usr/bin/ci -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F%';
$Foswiki::cfg{RCS}{ciDateCmd} = '/usr/bin/ci -m%COMMENT|U% -t-none -d%DATE|D% -u -w%USERNAME|S% %FILENAME|F%';
$Foswiki::cfg{RCS}{coCmd} = '/usr/bin/co -p%REVISION|N% -ko %FILENAME|F%';
$Foswiki::cfg{RCS}{histCmd} = '/usr/bin/rlog -h %FILENAME|F%';
$Foswiki::cfg{RCS}{infoCmd} = '/usr/bin/rlog -r%REVISION|N% %FILENAME|F%';
$Foswiki::cfg{RCS}{rlogDateCmd} = '/usr/bin/rlog -d%DATE|D% %FILENAME|F%';
$Foswiki::cfg{RCS}{diffCmd} = '/usr/bin/rcsdiff -q -w -B -r%REVISION1|N% -r%REVISION2|N% -ko --unified=%CONTEXT|N% %FILENAME|F%';
$Foswiki::cfg{RCS}{lockCmd} = '/usr/bin/rcs -l %FILENAME|F%';
$Foswiki::cfg{RCS}{unlockCmd} = '/usr/bin/rcs -u %FILENAME|F%';
$Foswiki::cfg{RCS}{breaklockCmd} = '/usr/bin/rcs -u -M %FILENAME|F%';
$Foswiki::cfg{RCS}{delRevCmd} = '/usr/bin/rcs -o%REVISION|N% %FILENAME|F%';
$Foswiki::cfg{HttpCompress} = 0;
$Foswiki::cfg{MergeHeadAndScriptZones} = 0;
$Foswiki::cfg{Cache}{Enabled} = 0;
$Foswiki::cfg{Cache}{WebDependencies} = 'WebRss, WebAtom, WebTopicList, WebIndex, WebSearch, WebSearchAdvanced';
$Foswiki::cfg{Cache}{DependencyFilter} = '$Foswiki::cfg{SystemWebName}\\..*|$Foswiki::cfg{TrashWebName}\\..*|.*Template$|TWiki\\..*';
$Foswiki::cfg{CacheManager} = 'Foswiki::Cache::FileCache';
$Foswiki::cfg{MetaCacheManager} = 'Foswiki::Cache::DB_File';
$Foswiki::cfg{Cache}{RootDir} = '$Foswiki::cfg{WorkingDir}/tmp/cache';
$Foswiki::cfg{Cache}{DBFile} = '$Foswiki::cfg{WorkingDir}/tmp/foswiki_db';
$Foswiki::cfg{Cache}{NameSpace} = '$Foswiki::cfg{DefaultUrlHost}';
$Foswiki::cfg{Cache}{MaxSize} = 1000;
$Foswiki::cfg{Cache}{Servers} = '127.0.0.1:11211';
$Foswiki::cfg{EnableEmail} = 1;
$Foswiki::cfg{WebMasterEmail} = 'jpeter@neuwied.de';
$Foswiki::cfg{WebMasterName} = 'Wiki Administrator';
$Foswiki::cfg{MailProgram} = '/usr/sbin/sendmail -t -oi -oeq';
$Foswiki::cfg{SMTP}{MAILHOST} = '180.1.50.1';
$Foswiki::cfg{SMTP}{SENDERHOST} = '';
$Foswiki::cfg{SMTP}{Username} = '';
$Foswiki::cfg{SMTP}{Password} = '';
$Foswiki::cfg{PROXY}{HOST} = '';
$Foswiki::cfg{PROXY}{PORT} = '';
$Foswiki::cfg{RemoveImgInMailnotify} = 1;
$Foswiki::cfg{NotifyTopicName} = 'WebNotify';
$Foswiki::cfg{SMTP}{Debug} = 0;
$Foswiki::cfg{SystemWebName} = 'System';
$Foswiki::cfg{TrashWebName} = 'Trash';
$Foswiki::cfg{SitePrefsTopicName} = 'DefaultPreferences';
$Foswiki::cfg{LocalSitePreferences} = '$Foswiki::cfg{UsersWebName}.SitePreferences';
$Foswiki::cfg{HomeTopicName} = 'WebHome';
$Foswiki::cfg{WebPrefsTopicName} = 'WebPreferences';
$Foswiki::cfg{UsersWebName} = 'Main';
$Foswiki::cfg{TemplatePath} = '$Foswiki::cfg{TemplateDir}/$web/$name.$skin.tmpl, $Foswiki::cfg{TemplateDir}/$name.$skin.tmpl, $web.$skinSkin$nameTemplate, $Foswiki::cfg{SystemWebName}.$skinSkin$nameTemplate, $Foswiki::cfg{TemplateDir}/$web/$name.tmpl, $Foswiki::cfg{TemplateDir}/$name.tmpl, $web.$nameTemplate, $Foswiki::cfg{SystemWebName}.$nameTemplate';
$Foswiki::cfg{LinkProtocolPattern} = '(file|ftp|gopher|https|http|irc|mailto|news|nntp|telnet)';
$Foswiki::cfg{RequireCompatibleAnchors} = 0;
$Foswiki::cfg{NumberOfRevisions} = 4;
$Foswiki::cfg{MaxRevisionsInADiff} = 25;
$Foswiki::cfg{ReplaceIfEditedAgainWithin} = 3600;
$Foswiki::cfg{LeaseLength} = 3600;
$Foswiki::cfg{LeaseLengthLessForceful} = 3600;
$Foswiki::cfg{MimeTypesFileName} = '$Foswiki::cfg{DataDir}/mime.types';
$Foswiki::cfg{WarningsAreErrors} = 0;
$Foswiki::cfg{Operators}{Query} = [
'Foswiki::Query::OP_match',
'Foswiki::Query::OP_and',
'Foswiki::Query::OP_eq',
'Foswiki::Query::OP_lc',
'Foswiki::Query::OP_lte',
'Foswiki::Query::OP_not',
'Foswiki::Query::OP_ref',
'Foswiki::Query::OP_d2n',
'Foswiki::Query::OP_gte',
'Foswiki::Query::OP_length',
'Foswiki::Query::OP_lt',
'Foswiki::Query::OP_ob',
'Foswiki::Query::OP_uc',
'Foswiki::Query::OP_dot',
'Foswiki::Query::OP_gt',
'Foswiki::Query::OP_like',
'Foswiki::Query::OP_ne',
'Foswiki::Query::OP_or',
'Foswiki::Query::OP_where'
];
$Foswiki::cfg{Operators}{If} = [
'Foswiki::If::OP_allows',
'Foswiki::If::OP_defined',
'Foswiki::If::OP_isempty',
'Foswiki::If::OP_ingroup',
'Foswiki::If::OP_isweb',
'Foswiki::If::OP_context',
'Foswiki::If::OP_dollar',
'Foswiki::If::OP_istopic'
];
$Foswiki::cfg{ExtensionsRepositories} = 'Foswiki.org=(http://foswiki.org/Extensions/,http://foswiki.org/pub/Extensions/)';
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Module} = 'Foswiki::Plugins::AutoViewTemplatePlugin';
$Foswiki::cfg{Plugins}{CommentPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{CommentPlugin}{Module} = 'Foswiki::Plugins::CommentPlugin';
$Foswiki::cfg{Plugins}{CompareRevisionsAddonPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{CompareRevisionsAddonPlugin}{Module} = 'Foswiki::Plugins::CompareRevisionsAddonPlugin';
$Foswiki::cfg{Plugins}{EditTablePlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{EditTablePlugin}{Module} = 'Foswiki::Plugins::EditTablePlugin';
$Foswiki::cfg{Plugins}{EmptyPlugin}{Module} = 'Foswiki::Plugins::EmptyPlugin';
$Foswiki::cfg{Plugins}{HistoryPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{HistoryPlugin}{Module} = 'Foswiki::Plugins::HistoryPlugin';
$Foswiki::cfg{Plugins}{InterwikiPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{InterwikiPlugin}{Module} = 'Foswiki::Plugins::InterwikiPlugin';
$Foswiki::cfg{Plugins}{JQueryPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{JQueryPlugin}{Module} = 'Foswiki::Plugins::JQueryPlugin';
$Foswiki::cfg{Plugins}{MailerContribPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{MailerContribPlugin}{Module} = 'Foswiki::Plugins::MailerContribPlugin';
$Foswiki::cfg{Plugins}{PreferencesPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{PreferencesPlugin}{Module} = 'Foswiki::Plugins::PreferencesPlugin';
$Foswiki::cfg{Plugins}{RenderListPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{RenderListPlugin}{Module} = 'Foswiki::Plugins::RenderListPlugin';
$Foswiki::cfg{Plugins}{SlideShowPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{SlideShowPlugin}{Module} = 'Foswiki::Plugins::SlideShowPlugin';
$Foswiki::cfg{Plugins}{SmiliesPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{SmiliesPlugin}{Module} = 'Foswiki::Plugins::SmiliesPlugin';
$Foswiki::cfg{Plugins}{SpreadSheetPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{SpreadSheetPlugin}{Module} = 'Foswiki::Plugins::SpreadSheetPlugin';
$Foswiki::cfg{Plugins}{TablePlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{TablePlugin}{Module} = 'Foswiki::Plugins::TablePlugin';
$Foswiki::cfg{Plugins}{TinyMCEPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{TinyMCEPlugin}{Module} = 'Foswiki::Plugins::TinyMCEPlugin';
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{Module} = 'Foswiki::Plugins::TWikiCompatibilityPlugin';
$Foswiki::cfg{Plugins}{TwistyPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{TwistyPlugin}{Module} = 'Foswiki::Plugins::TwistyPlugin';
$Foswiki::cfg{Plugins}{WysiwygPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{WysiwygPlugin}{Module} = 'Foswiki::Plugins::WysiwygPlugin';
$Foswiki::cfg{PluginsOrder} = 'TWikiCompatibilityPlugin,SpreadSheetPlugin';
$Foswiki::cfg{Plugins}{WebSearchPath} = '$Foswiki::cfg{SystemWebName},TWiki';
$Foswiki::cfg{Plugins}{TablePlugin}{DefaultAttributes} = 'tableborder="1" valign="top" headercolor="#000000" headerbg="#d6d3cf" headerbgsorted="#c4c1ba" databg="#ffffff,#f7f7f6" databgsorted="#f7f7f6,#f0f0ee" tablerules="rows" headerrules="cols"';
$Foswiki::cfg{Plugins}{TablePlugin}{Debug} = 0;
$Foswiki::cfg{JQueryPlugin}{Debug} = 0;
$Foswiki::cfg{JQueryPlugin}{MemoryCache} = 1;
$Foswiki::cfg{JQueryPlugin}{IconSearchPath} = 'FamFamFamSilkIcons, FamFamFamSilkCompanion1Icons, FamFamFamFlagIcons, FamFamFamMiniIcons, FamFamFamMintIcons';
$Foswiki::cfg{JQueryPlugin}{NoConflict} = 0;
$Foswiki::cfg{JQueryPlugin}{DefaultPlugins} = '';
$Foswiki::cfg{JQueryPlugin}{JQueryVersion} = 'jquery-1.3.2';
$Foswiki::cfg{JQueryPlugin}{JQueryTheme} = 'base';
$Foswiki::cfg{JQueryPlugin}{Plugins}{Autocomplete}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Bgiframe}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Button}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{BlockUI}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Chili}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Corner}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Cookie}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Cycle}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Debug}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Easing}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Farbtastic}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Focus}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Form}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Foswiki}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{FluidFont}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Gradient}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{HoverIntent}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{InnerFade}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{LiveQuery}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{LocalScroll}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{MaskedInput}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Masonry}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Media}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Metadata}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{PopUpWindow}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{QueryObject}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Rating}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{ScrollTo}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{SerialScroll}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Shake}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{ShrinkUrls}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{SimpleModal}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Slimbox}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Superfish}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Supersubs}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Tabpane}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{TextboxList}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Tooltip}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Treeview}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{UI}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{Validate}{Enabled} = 1;
$Foswiki::cfg{JQueryPlugin}{Plugins}{WikiWord}{Enabled} = 1;
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{TWikiWebTopicNameConversion} = {
'TWikiFAQ' => 'FrequentlyAskedQuestions',
'TWikiGlossary' => 'GlossaryOfTerms',
'TWikiCss' => 'CascadingStyleSheets',
'TWikiLogos' => 'ProjectLogos',
'TWikiRegistration' => 'UserRegistration',
'TWikiReleaseNotes04x01' => '_remove_',
'TWikiSkinBrowser' => 'SkinBrowser',
'TWikiSkins' => 'Skins',
'TWikiContributor' => 'ProjectContributor',
'TWikiUserMappingContrib' => 'TopicUserMappingContrib',
'TWikiReleaseNotes04x00' => '_remove_',
'TWikiDownload' => 'DownloadSources',
'TWikiUserAuthentication' => 'UserAuthentication',
'TWikiMetaData' => 'MetaData',
'TWikiPreferences' => 'DefaultPreferences',
'TWikiScripts' => 'CommandAndCGIScripts',
'TWikiSiteTools' => 'SiteTools',
'TWikiReleaseNotes04x02' => 'ReleaseNotes01x00',
'TWikiUpgradeGuide' => 'UpgradeGuide',
'ATasteOfTWiki' => 'BeginnersStartHere',
'TWikiContribs' => 'Contribs',
'TWikiTutorial' => 'TwentyMinuteTutorial',
'TWikiUsersGuide' => 'UsersGuide',
'TWikiDocumentation' => 'CompleteDocumentation',
'TWikiEditingShorthand' => 'EditingShorthand',
'TWikiRegistrationAgent' => 'RegistrationAgent',
'TWikiReferenceManual' => 'ReferenceManual',
'TWikiEnhancementRequests' => 'EnhancementRequests',
'TWikiSite' => '_remove_',
'TWikiTopics' => 'TopicsAndWebs',
'TWikiAccessControl' => 'AccessControl',
'TWikiJavascripts' => 'JavascriptFiles',
'TWikiSystemRequirements' => 'SystemRequirements',
'TWikiForms' => 'DataForms',
'TWikiFaqTemplate' => 'FaqTemplate',
'TWikiTemplates' => 'TemplateTopics',
'WhatDoesTWikiStandFor' => '_remove_',
'TWikiRenderingShortcut' => 'RenderingShortcut',
'TWikiVariables' => 'Macros',
'TWikiVariablesQuickStart' => 'MacrosQuickStart',
'TWikiPlannedFeatures' => '_remove_',
'TWikiPlugins' => 'Plugins',
'TWikiUsersTemplate' => 'UsersTemplate',
'TWikiHistory' => 'ReleaseHistory',
'TWikiShorthand' => 'ShortHand',
'TWikiAddOns' => 'ContributedAddOns',
'TWikiInstallationGuide' => 'InstallationGuide',
'TWikiDocGraphics' => 'DocumentGraphics',
'TWikiWebsTable' => 'WebsTable',
'TWikiUserSetting' => 'UserSetting'
};
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{MainWebTopicNameConversion} = {
'TWikiGuest' => 'WikiGuest',
'TWikiPreferences' => 'SitePreferences',
'TWikiRegistrationAgent' => 'RegistrationAgent',
'TWikiUsers' => 'WikiUsers',
'TWikiAdminUser' => 'AdminUser',
'TWikiAdminGroup' => 'AdminGroup',
'TWikiContributor' => 'ProjectContributor',
'TWikiGroupTemplate' => 'GroupTemplate',
'TWikiGroups' => 'WikiGroups'
};
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{WebSearchPath} = {
'System' => 'TWiki',
'TWiki' => 'System'
};
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Debug} = 0;
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Override} = 0;
$Foswiki::cfg{Plugins}{AutoViewTemplatePlugin}{Mode} = 'exist';
$Foswiki::cfg{SwitchBoard}{compare} = {
'function' => 'compare',
'context' => {
'comparing' => 1,
'diff' => 1
},
'package' => 'Foswiki::Contrib::CompareRevisionsAddOn::Compare'
};
$Foswiki::cfg{MailerContrib}{EmailFilterIn} = '';
$Foswiki::cfg{JSCalendarContrib}{style} = 'blue';
$Foswiki::cfg{JSCalendarContrib}{lang} = 'en';
$Foswiki::cfg{JSCalendarContrib}{format} = '%e %b %Y';
$Foswiki::cfg{Site}{CharSet} = 'iso-8859-1';
$Foswiki::cfg{Ldap}{Host} = 'ldap.intern.neuwied.de';
$Foswiki::cfg{Ldap}{Port} = 389;
$Foswiki::cfg{Ldap}{Version} = '3';
$Foswiki::cfg{Ldap}{Base} = 'o=sv';
$Foswiki::cfg{Ldap}{BindDN} = 'cn=caesar,ou=groupwise,o=sv';
$Foswiki::cfg{Ldap}{BindPassword} = '*********'; //there is the right password, but i won't post it here
$Foswiki::cfg{Ldap}{UseSASL} = 0;
$Foswiki::cfg{Ldap}{SASLMechanism} = 'PLAIN CRAM-MD5 EXTERNAL ANONYMOUS';
$Foswiki::cfg{Ldap}{UseTLS} = 0;
$Foswiki::cfg{Ldap}{TLSSSLVersion} = 'tlsv1';
$Foswiki::cfg{Ldap}{TLSVerify} = 'require';
$Foswiki::cfg{Ldap}{TLSCAPath} = '';
$Foswiki::cfg{Ldap}{TLSCAFile} = '';
$Foswiki::cfg{Ldap}{TLSClientCert} = '';
$Foswiki::cfg{Ldap}{TLSClientKey} = '';
$Foswiki::cfg{Ldap}{Debug} = 0;
$Foswiki::cfg{Ldap}{UserBase} = '';
$Foswiki::cfg{Ldap}{LoginFilter} = '';
$Foswiki::cfg{Ldap}{UserScope} = 'sub';
$Foswiki::cfg{Ldap}{LoginAttribute} = 'uid';
$Foswiki::cfg{Ldap}{MailAttribute} = 'mail';
$Foswiki::cfg{Ldap}{WikiNameAttributes} = 'cn';
$Foswiki::cfg{Ldap}{NormalizeWikiNames} = 1;
$Foswiki::cfg{Ldap}{NormalizeLoginNames} = 0;
$Foswiki::cfg{Ldap}{WikiNameAliases} = '';
$Foswiki::cfg{Ldap}{RewriteWikiNames} = {
'^(.*)@.*$' => '$1'
};
$Foswiki::cfg{Ldap}{AllowChangePassword} = 0;
$Foswiki::cfg{Ldap}{SecondaryPasswordManager} = 'none';
$Foswiki::cfg{Ldap}{GroupBase} = '';
$Foswiki::cfg{Ldap}{GroupFilter} = 'objectClass=posixGroup';
$Foswiki::cfg{Ldap}{GroupScope} = 'sub';
$Foswiki::cfg{Ldap}{GroupAttribute} = 'cn';
$Foswiki::cfg{Ldap}{PrimaryGroupAttribute} = 'gidNumber';
$Foswiki::cfg{Ldap}{MemberAttribute} = 'memberUid';
$Foswiki::cfg{Ldap}{InnerGroupAttribute} = 'memberUid';
$Foswiki::cfg{Ldap}{MemberIndirection} = 0;
$Foswiki::cfg{Ldap}{WikiGroupsBackoff} = 1;
$Foswiki::cfg{Ldap}{NormalizeGroupNames} = 0;
$Foswiki::cfg{Ldap}{MapGroups} = 1;
$Foswiki::cfg{Ldap}{RewriteGroups} = {};
$Foswiki::cfg{Ldap}{MergeGroups} = 0;
$Foswiki::cfg{Ldap}{MaxCacheAge} = 86400;
$Foswiki::cfg{Ldap}{Precache} = 1;
$Foswiki::cfg{Ldap}{PageSize} = 500;
$Foswiki::cfg{Ldap}{Exclude} = 'WikiGuest, ProjectContributor, RegistrationAgent, UnknownUser, AdminGroup, NobodyGroup, AdminUser, admin, guest';
1;
May anyone please help me? (Contact eMail "
[email protected]") Thanks in advance
--
JoergPeter - 10 Feb 2011
You have to set the UserMappingManager to LDAP but leave the LoginManager on TemplateLogin:
$Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::LdapUserMapping';
$Foswiki::cfg{LoginManager} = 'Foswiki::LoginManager::TemplateLogin';
If is still doesn't work, try enabling some of the commented-out debug statements
lib/Foswiki/Contrib/LdapContrib.pm
. They should give you more information about the error.
--
MartinKaufmann - 10 Feb 2011
Ok thanks, I will try that tomorrow
--
JoergPeter - 10 Feb 2011
I enabled all of the commented-out debug statements, but I don't really understand the problem. In
/working/logs/events.log
it says "AUTHENTICATION FAILURE" (Username and pw are definitely right) and in
/working/logs/error.log
I don't really understand anything =/
I attached the files, so maybe anyone who is able to understand it may help me
--
JoergPeter - 11 Feb 2011
It looks like some of the
dependencies are not met. Is Net::LDAP installed? Otherwise you have to install the required CPAN package.
Btw, after enabling the debug statements, you should get some output in
working/logs/debug.log
.
--
MartinKaufmann - 11 Feb 2011
Ok I will check that on Tuesday. Thanks so far
--
JoergPeter - 11 Feb 2011
Thanks a lot @
MartinKaufmann , Net::Ldap was not installed
Now it works:)
--
JoergPeter - 15 Feb 2011