This question about Registration: Task filed

SecondaryPasswordManager and Registration doesn't work (LDAP)

Hi,

i use Foswiki-1.0.0, Wed, 07 Jan 2009, build 1876, Plugin API version 2.0 with LdapContrib 2.99.11 on a Debian Etch Machine. All CPAN Modules are installed. Perl is 5.10.0-19.

Everything works (User-, GroupMapping, Authenticatin, Authorisation) if i only use the LdapPasswordManager.

When i enable the SecondaryPasswordManager (HtPasswd) and try to register new users through the registration page following happens:

I register as new user. I get logged on and can change my personal page. When i log off i cannot log on again.

There is a new line in the .htpasswd file with the the WiKiName of the user and the password.

The UserTopic and the entry in WikiUsers have also been made.

Is the SecondaryPasswordManager already working?

Best regards,

Timm


Hi,

Since I have a similar problem, I guess it is better to be added here.

I am using the same Foswiki version, same LDAPContrib 2.99.11, but on CentOS 5.2.

My issue is just the opposit of Timm's.

LDAP part works perfectly. The only problem is when I register local new user, the new user account is not written to .htpasswd file.

SecondaryPasswordManager (HtPasswd) is enabled. If I manually add the username to .htpasswd file, the new user account works.

When I log in as the new user, the system does not allow me to change password. It says Password system readonly. I checked the permission of .htpasswd in OS, and it is not readonly for apache:apache.

By the way, does LDAPContrib support multi-domain support?

Best regards,

Hugh


You really shouldn't be using a seconday password manager with LDAP. Either store all users in LDAP (LdapContrib can not create new LDAP users, nor can it change them) or go straight to htpasswd.

What kind of scenario are you guys trying to achieve?

-- UlrichSpoerlein - 04 Apr 2009


Hi,

i work as a sysadmin at a university. We authenticate users of our services through Kerberos and manage them in LDAP. The wiki is one of our services which is often used by external users (Students, Project partners...), and i don't want to mange them all in the Kerberos/LDAP. It is also a requested feature of our employees, they want to be able to invite external users over the registration process. I could manage the external users as simple security objects in LDAP for sure, but the Foswiki registration process takes a lot of work from me...

And an other question is: why does the secondary password manager exists, when i shouldn't use it?

By the way: I switched to LdapApacheLogin and work with Basic LDAP auth with fallback to .htpasswd. External users can now log in. But i also cannot change passwords, the system tells me that password system is readonly. And the email adress is not saved during registration process.

This is my LocalSite.cfg:

$Foswiki::cfg{DataDir} = '/var/lib/foswiki/data';
$Foswiki::cfg{LogDir} = '/var/lib/foswiki/log';
$Foswiki::cfg{Site}{Lang} = 'en';
$Foswiki::cfg{LocalesDir} = '/var/lib/foswiki/locale';
$Foswiki::cfg{ScriptUrlPath} = '/cgi-bin/foswiki';
$Foswiki::cfg{DefaultUrlHost} = 'http://foswiki.wineme.fb5.uni-siegen.de/';
$Foswiki::cfg{Site}{FullLang} = 'en-us';
$Foswiki::cfg{PubUrlPath} = '/foswiki/pub';
$Foswiki::cfg{PubDir} = '/var/lib/foswiki/pub';
$Foswiki::cfg{TemplateDir} = '/var/lib/foswiki/templates';
$Foswiki::cfg{Site}{CharSet} = 'iso-8859-15';
$Foswiki::cfg{LoginManager} = 'Foswiki::LoginManager::LdapApacheLogin';
$Foswiki::cfg{Plugins}{WysiwygPlugin}{Enabled} = 1;
$Foswiki::cfg{RCS}{WorkAreaDir} = '/var/lib/foswiki/working/work_area';
$Foswiki::cfg{TempfileDir} = '/var/lib/foswiki/working/tmp';
$Foswiki::cfg{WorkingDir} = '/var/lib/foswiki/working';
$Foswiki::cfg{SafeEnvPath} = '/usr/bin:/bin';
$Foswiki::cfg{Register}{EnableNewUserRegistration} = 1;
$Foswiki::cfg{EnableEmail} = 1;
$Foswiki::cfg{ScriptSuffix} = '';
$Foswiki::cfg{Password} = 'not_for_your_eyes';
$Foswiki::cfg{UseClientSessions} = 1;
$Foswiki::cfg{Sessions}{ExpireAfter} = 21600;
$Foswiki::cfg{Sessions}{ExpireCookiesAfter} = 0;
$Foswiki::cfg{Sessions}{IDsInURLs} = 0;
$Foswiki::cfg{Sessions}{UseIPMatching} = 1;
$Foswiki::cfg{Sessions}{MapIP2SID} = 0;
$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{AuthScripts} = 'attach,edit,manage,rename,save,upload,viewauth,rdiffauth,rest,bibsearch';
$Foswiki::cfg{AuthRealm} = 'Enter your LoginName. (Typically First name and last name, no space, no dots, capitalized, e.g. JohnSmith, unless you chose otherwise). Visit UserRegistration if you do not have one.';
$Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::LdapUserMapping';
$Foswiki::cfg{Register}{HidePasswd} = 0;
$Foswiki::cfg{Register}{RegistrationAgentWikiName} = 'RegistrationAgent';
$Foswiki::cfg{PasswordManager} = 'Foswiki::Users::LdapPasswdUser';
$Foswiki::cfg{MinPasswordLength} = 1;
$Foswiki::cfg{Htpasswd}{FileName} = '/var/lib/foswiki/data/.htpasswd';
$Foswiki::cfg{Htpasswd}{Encoding} = 'crypt';
$Foswiki::cfg{OS} = 'UNIX';
$Foswiki::cfg{DetailedOS} = 'linux';
$Foswiki::cfg{DenyDotDotInclude} = 1;
$Foswiki::cfg{AllowInlineScript} = 1;
$Foswiki::cfg{UploadFilter} = '^(\\.htaccess|.*\\.(?i)(?:php[0-9s]?(\\..*)?|[sp]htm[l]?(\\..*)?|pl|py|cgi))$';
$Foswiki::cfg{NameFilter} = '[\\s\\*?~^\\$@%`"\'&;|<>\\[\\]\\x00-\\x1f]';
$Foswiki::cfg{PermittedRedirectHostUrls} = '';
$Foswiki::cfg{AccessibleENV} = '^(HTTP_\\w+|REMOTE_\\w+|SERVER_\\w+|REQUEST_\\w+|MOD_PERL|TWIKI_ACTION)$';
$Foswiki::cfg{AntiSpam}{EmailPadding} = 'n05pam';
$Foswiki::cfg{AntiSpam}{HideUserDetails} = 1;
$Foswiki::cfg{AntiSpam}{RobotsAreWelcome} = 1;
$Foswiki::cfg{Log}{view} = 1;
$Foswiki::cfg{Log}{search} = 1;
$Foswiki::cfg{Log}{changes} = 1;
$Foswiki::cfg{Log}{rdiff} = 1;
$Foswiki::cfg{Log}{edit} = 1;
$Foswiki::cfg{Log}{save} = 1;
$Foswiki::cfg{Log}{upload} = 1;
$Foswiki::cfg{Log}{attach} = 1;
$Foswiki::cfg{Log}{rename} = 1;
$Foswiki::cfg{Log}{register} = 1;
$Foswiki::cfg{ConfigurationLogName} = '/var/lib/foswiki/data/configurationlog.txt';
$Foswiki::cfg{DebugFileName} = '/var/lib/foswiki/data/debug.txt';
$Foswiki::cfg{WarningFileName} = '/var/lib/foswiki/data/warn01 Dec 2024.txt';
$Foswiki::cfg{LogFileName} = '/var/lib/foswiki/data/log01 Dec 2024.txt';
$Foswiki::cfg{Languages}{'pt-br'}{Enabled} = 1;
$Foswiki::cfg{Languages}{pt}{Enabled} = 1;
$Foswiki::cfg{Languages}{bg}{Enabled} = 1;
$Foswiki::cfg{Languages}{sv}{Enabled} = 1;
$Foswiki::cfg{Languages}{'zh-cn'}{Enabled} = 1;
$Foswiki::cfg{Languages}{nl}{Enabled} = 1;
$Foswiki::cfg{Languages}{es}{Enabled} = 1;
$Foswiki::cfg{Languages}{fr}{Enabled} = 1;
$Foswiki::cfg{Languages}{pl}{Enabled} = 1;
$Foswiki::cfg{Languages}{ja}{Enabled} = 1;
$Foswiki::cfg{Languages}{de}{Enabled} = 1;
$Foswiki::cfg{Languages}{cs}{Enabled} = 1;
$Foswiki::cfg{Languages}{da}{Enabled} = 1;
$Foswiki::cfg{Languages}{'zh-tw'}{Enabled} = 1;
$Foswiki::cfg{Languages}{it}{Enabled} = 1;
$Foswiki::cfg{Languages}{ru}{Enabled} = 1;
$Foswiki::cfg{DisplayTimeValues} = 'gmtime';
$Foswiki::cfg{DefaultDateFormat} = '$day $month $year';
$Foswiki::cfg{Site}{Locale} = 'de_DE.ISO-8859-15';
$Foswiki::cfg{Site}{LocaleRegexes} = 1;
$Foswiki::cfg{UpperNational} = '';
$Foswiki::cfg{LowerNational} = '';
$Foswiki::cfg{PluralToSingular} = 1;
$Foswiki::cfg{StoreImpl} = 'RcsWrap';
$Foswiki::cfg{RCS}{ExtOption} = '';
$Foswiki::cfg{RCS}{dirPermission} = 488;
$Foswiki::cfg{RCS}{filePermission} = '416';
$Foswiki::cfg{Store}{RememberChangesFor} = 2678400;
$Foswiki::cfg{RCS}{asciiFileSuffixes} = '\\.(txt|html|xml|pl)$';
$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{RCS}{SearchAlgorithm} = 'Foswiki::Store::SearchAlgorithms::Forking';
$Foswiki::cfg{RCS}{QueryAlgorithm} = 'Foswiki::Store::QueryAlgorithms::BruteForce';
$Foswiki::cfg{RCS}{EgrepCmd} = '/bin/grep -E %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$Foswiki::cfg{RCS}{FgrepCmd} = '/bin/grep -F %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$Foswiki::cfg{EnableHierarchicalWebs} = 1;
$Foswiki::cfg{SystemWebName} = 'System';
$Foswiki::cfg{TrashWebName} = 'Trash';
$Foswiki::cfg{UsersWebName} = 'Main';
$Foswiki::cfg{WebMasterEmail} = 'no_spam_for_me';
$Foswiki::cfg{WebMasterName} = 'Wiki Administrator';
$Foswiki::cfg{MailProgram} = '/usr/sbin/sendmail -t -oi -oeq';
$Foswiki::cfg{SMTP}{MAILHOST} = 'mutter.wineme.fb5.uni-siegen.de';
$Foswiki::cfg{SMTP}{SENDERHOST} = 'foswiki.wineme.fb5.uni-siegen.de';
$Foswiki::cfg{SMTP}{Username} = '';
$Foswiki::cfg{SMTP}{Password} = '';
$Foswiki::cfg{RemoveImgInMailnotify} = 1;
$Foswiki::cfg{NotifyTopicName} = 'WebNotify';
$Foswiki::cfg{SMTP}{Debug} = 0;
$Foswiki::cfg{PROXY}{HOST} = '';
$Foswiki::cfg{PROXY}{PORT} = '';
$Foswiki::cfg{MailerContrib}{EmailFilterIn} = '';
$Foswiki::cfg{Stats}{TopViews} = 10;
$Foswiki::cfg{Stats}{TopContrib} = 10;
$Foswiki::cfg{Stats}{TopicName} = 'WebStatistics';
$Foswiki::cfg{TemplatePath} = '/var/lib/foswiki/templates/$web/$name.$skin.tmpl, /var/lib/foswiki/templates/$name.$skin.tmpl, $web.$skinSkin$nameTemplate, System.$skinSkin$nameTemplate, /var/lib/foswiki/templates/$web/$name.tmpl, /var/lib/foswiki/templates/$name.tmpl, $web.$nameTemplate, System.$nameTemplate';
$Foswiki::cfg{LinkProtocolPattern} = '(file|ftp|gopher|https|http|irc|mailto|news|nntp|telnet)';
$Foswiki::cfg{SiteWebTopicName} = '';
$Foswiki::cfg{SitePrefsTopicName} = 'DefaultPreferences';
$Foswiki::cfg{LocalSitePreferences} = 'Main.SitePreferences';
$Foswiki::cfg{HomeTopicName} = 'WebHome';
$Foswiki::cfg{WebPrefsTopicName} = 'WebPreferences';
$Foswiki::cfg{NumberOfRevisions} = 4;
$Foswiki::cfg{ReplaceIfEditedAgainWithin} = 3600;
$Foswiki::cfg{LeaseLength} = 3600;
$Foswiki::cfg{LeaseLengthLessForceful} = 3600;
$Foswiki::cfg{MimeTypesFileName} = '/var/lib/foswiki/data/mime.types';
$Foswiki::cfg{Operators}{Query} = [
'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{Plugins}{CommentPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{CommentPlugin}{Module} = 'Foswiki::Plugins::CommentPlugin';
$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}{InterwikiPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{InterwikiPlugin}{Module} = 'Foswiki::Plugins::InterwikiPlugin';
$Foswiki::cfg{Plugins}{PreferencesPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{PreferencesPlugin}{Module} = 'Foswiki::Plugins::PreferencesPlugin';
$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} = 1;
$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}{Module} = 'Foswiki::Plugins::WysiwygPlugin';
$Foswiki::cfg{Plugins}{WebSearchPath} = 'System,TWiki';
$Foswiki::cfg{PluginsOrder} = 'TWikiCompatibilityPlugin,SpreadSheetPlugin';
$Foswiki::cfg{ExtensionsRepositories} = 'Foswiki.org=(http://foswiki.org/Extensions/,http://foswiki.org/pub/Extensions/); twiki.org=(http://twiki.org/cgi-bin/view/Plugins/,http://twiki.org/p/pub/Plugins/);';
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{TWikiWebTopicNameConversion} = {
'TWikiFAQ' => 'FrequentlyAskedQuestions',
'TWikiCss' => 'CascadingStyleSheets',
'TWikiGlossary' => 'GlossaryOfTerms',
'TWikiLogos' => 'ProjectLogos',
'TWikiRegistration' => 'UserRegistration',
'TWikiReleaseNotes04x01' => '_remove_',
'TWikiSkinBrowser' => 'SkinBrowser',
'TWikiContributor' => 'ProjectContributor',
'TWikiSkins' => 'Skins',
'TWikiReleaseNotes04x00' => '_remove_',
'TWikiUserMappingContrib' => 'TopicUserMappingContrib',
'TWikiDownload' => 'DownloadSources',
'TWikiMetaData' => 'MetaData',
'TWikiUserAuthentication' => 'UserAuthentication',
'TWikiPreferences' => 'DefaultPreferences',
'TWikiScripts' => 'CommandAndCGIScripts',
'TWikiSiteTools' => 'SiteTools',
'TWikiReleaseNotes04x02' => 'ReleaseNotes01x00',
'ATasteOfTWiki' => 'BeginnersStartHere',
'TWikiUpgradeGuide' => 'UpgradeGuide',
'TWikiContribs' => 'Contribs',
'TWikiTutorial' => 'TwentyMinuteTutorial',
'TWikiUsersGuide' => 'UsersGuide',
'TWikiEditingShorthand' => 'EditingShorthand',
'TWikiDocumentation' => 'CompleteDocumentation',
'TWikiRegistrationAgent' => 'RegistrationAgent',
'TWikiReferenceManual' => 'ReferenceManual',
'TWikiEnhancementRequests' => 'EnhancementRequests',
'TWikiSite' => '_remove_',
'TWikiTopics' => 'TopicsAndWebs',
'TWikiAccessControl' => 'AccessControl',
'TWikiJavascripts' => 'JavascriptFiles',
'TWikiForms' => 'DataForms',
'TWikiSystemRequirements' => 'SystemRequirements',
'TWikiFaqTemplate' => 'FaqTemplate',
'TWikiTemplates' => 'TemplateTopics',
'TWikiRenderingShortcut' => 'RenderingShortcut',
'WhatDoesTWikiStandFor' => '_remove_',
'TWikiVariables' => 'Macros',
'TWikiPlannedFeatures' => '_remove_',
'TWikiVariablesQuickStart' => 'MacrosQuickStart',
'TWikiPlugins' => 'Plugins',
'TWikiUsersTemplate' => 'UsersTemplate',
'TWikiShorthand' => 'ShortHand',
'TWikiHistory' => 'ReleaseHistory',
'TWikiAddOns' => 'ContributedAddOns',
'TWikiInstallationGuide' => 'InstallationGuide',
'TWikiDocGraphics' => 'DocumentGraphics',
'TWikiWebsTable' => 'WebsTable',
'TWikiUserSetting' => 'UserSetting'
};
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{MainWebTopicNameConversion} = {
'TWikiPreferences' => 'SitePreferences',
'TWikiGuest' => 'WikiGuest',
'TWikiRegistrationAgent' => 'RegistrationAgent',
'TWikiUsers' => 'WikiUsers',
'TWikiAdminGroup' => 'AdminGroup',
'TWikiAdminUser' => 'AdminUser',
'TWikiContributor' => 'ProjectContributor',
'TWikiGroupTemplate' => 'GroupTemplate',
'TWikiGroups' => 'WikiGroups'
};
$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{WebSearchPath} = {
'System' => 'TWiki',
'TWiki' => 'System'
};
$Foswiki::cfg{UserInterfaceInternationalisation} = 1;
$Foswiki::cfg{Ldap}{Host} = 'not_for_your_eyes';
$Foswiki::cfg{Ldap}{Port} = 389;
$Foswiki::cfg{Ldap}{Version} = '3';
$Foswiki::cfg{Ldap}{Base} = 'not_for_your_eyes';
$Foswiki::cfg{Ldap}{BindDN} = 'not_for_your_eyes';
$Foswiki::cfg{Ldap}{BindPassword} = 'not_for_your_eyes';
$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} = 1;
$Foswiki::cfg{Ldap}{UserBase} = 'not_for_your_eyes';
$Foswiki::cfg{Ldap}{LoginFilter} = 'objectClass=posixAccount';
$Foswiki::cfg{Ldap}{LoginAttribute} = 'uid';
$Foswiki::cfg{Ldap}{WikiNameAttribute} = 'cn';
$Foswiki::cfg{Ldap}{NormalizeWikiNames} = 1;
$Foswiki::cfg{Ldap}{NormalizeLoginNames} = 0;
$Foswiki::cfg{Ldap}{WikiNameAliases} = '';
$Foswiki::cfg{Ldap}{AllowChangePassword} = 1;
$Foswiki::cfg{Ldap}{SecondaryPasswordManager} = 'Foswiki::Users::HtPasswdUser';
$Foswiki::cfg{Ldap}{GroupBase} = 'ou=Gruppen,dc=WINEME,dc=FB5,dc=Uni-Siegen,dc=de';
$Foswiki::cfg{Ldap}{GroupFilter} = '&(objectClass=posixGroup)(cn=WikiUserGroup)';
$Foswiki::cfg{Ldap}{GroupAttribute} = 'cn';
$Foswiki::cfg{Ldap}{PrimaryGroupAttribute} = 'gidNumber';
$Foswiki::cfg{Ldap}{MemberAttribute} = 'memberUid';
$Foswiki::cfg{Ldap}{MemberIndirection} = 0;
$Foswiki::cfg{Ldap}{WikiGroupsBackoff} = 1;
$Foswiki::cfg{Ldap}{NormalizeGroupNames} = 0;
$Foswiki::cfg{Ldap}{MapGroups} = 1;
$Foswiki::cfg{Ldap}{MaxCacheAge} = 86400;
$Foswiki::cfg{Ldap}{PageSize} = 500;
$Foswiki::cfg{Ldap}{Exclude} = 'WikiGuest, FoswikiContributor, ProjectContributor, RegistrationAgent, AdminGroup, NobodyGroup';
$Foswiki::cfg{Plugins}{BreadCrumbsPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{BreadCrumbsPlugin}{Module} = 'TWiki::Plugins::BreadCrumbsPlugin';
$Foswiki::cfg{Plugins}{FilterPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{FilterPlugin}{Module} = 'TWiki::Plugins::FilterPlugin';
$Foswiki::cfg{Plugins}{FlexWebListPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{FlexWebListPlugin}{Module} = 'TWiki::Plugins::FlexWebListPlugin';
$Foswiki::cfg{Plugins}{GluePlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{GluePlugin}{Module} = 'TWiki::Plugins::GluePlugin';
$Foswiki::cfg{Plugins}{IfDefinedPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{IfDefinedPlugin}{Module} = 'TWiki::Plugins::IfDefinedPlugin';
$Foswiki::cfg{Plugins}{JQueryPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{JQueryPlugin}{Module} = 'TWiki::Plugins::JQueryPlugin';
$Foswiki::cfg{Plugins}{JQueryTwistyPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{JQueryTwistyPlugin}{Module} = 'TWiki::Plugins::JQueryTwistyPlugin';
$Foswiki::cfg{Plugins}{NatEditPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{NatEditPlugin}{Module} = 'TWiki::Plugins::NatEditPlugin';
$Foswiki::cfg{Plugins}{NatSkinPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{NatSkinPlugin}{Module} = 'TWiki::Plugins::NatSkinPlugin';
$Foswiki::cfg{Plugins}{NewUserPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{NewUserPlugin}{Module} = 'TWiki::Plugins::NewUserPlugin';
$Foswiki::cfg{Plugins}{PublishPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{PublishPlugin}{Module} = 'Foswiki::Plugins::PublishPlugin';
$Foswiki::cfg{Plugins}{RedDotPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{RedDotPlugin}{Module} = 'TWiki::Plugins::RedDotPlugin';
$Foswiki::cfg{Plugins}{RenderListPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{RenderPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{RenderPlugin}{Module} = 'TWiki::Plugins::RenderPlugin';
$Foswiki::cfg{Plugins}{TreePlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{TreePlugin}{Module} = 'Foswiki::Plugins::TreePlugin';
$Foswiki::cfg{PublishPlugin}{Dir} = '/var/lib/foswiki/pub/publish/';
$Foswiki::cfg{PublishPlugin}{URL} = 'http://wiki.wineme.fb5.uni-siegen.de/foswiki/pub/publish/';
$Foswiki::cfg{PublishPlugin}{PDFCmd} = 'htmldoc --webpage --links --linkstyle plain --outfile %FILE|F% %EXTRAS|U% %FILES|F%';
$Foswiki::cfg{Plugins}{LdapNgPlugin}{Enabled} = 1;
$Foswiki::cfg{Plugins}{LdapNgPlugin}{Module} = 'Foswiki::Plugins::LdapNgPlugin';
$Foswiki::cfg{Plugins}{BibtexPlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{BibtexPlugin}{Module} = 'TWiki::Plugins::BibtexPlugin';
$FosWiki::cfg{Plugins}{BibtexPlugin}{render} = '/var/lib/foswiki/tools/render.sh';

Regards,

Timm

-- TimmWunderlich - 27 Apr 2009


I've changed the status to "Task filed" because a task has been created, and the existing status of "Answered but needs rewriting" is plainly incorrect.

This extension has a configuration option for internal password failover and documentation explaining that it does this. The developer clearly thought there were valid reasons for having failover authentication, so someone coming in saying "you shouldn't have failover authentication" is not useful.

We, also, work at a university. Of course, all authentication for staff and students is done via LDAP but, where we have external people working on projects, they need access to protected webs, and we can't always get the right level of access to centrally-maintained LDAP records (don't ask, but if you really want to know I'll give all the tedious details, suffice it to say it's a very large organisation with lots of bureaucracy - many will feel my pain), so internal authentication is essential. We're upgrading from TWiki Cairo, where we had a simpler failover system, so we need a solution for Foswiki.

Anyways... We are having the same problem as above. Timm explains it well enough; I'm just adding more voices to this query.

-- MarcusLeonard - 18 Aug 2009

Yo. My main man Dennis has put our explanation and fix into the task: Foswiki:Tasks/Item8192. This basically makes the failover to internal password work.

-- MarcusLeonard - 20 Aug 2009

QuestionForm edit

Subject Registration
Extension LdapContrib
Version
Status Task filed
Topic revision: r10 - 20 Aug 2009, MarcusLeonard
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy