cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension, Authentication or Authorisation, LDAP: Answered

Author on Topic is LoginName not WikiName

The nice people on Chat helped me solve this, but I am posting the solution in case it helps someone else.

I managed to get LDAP working, but I had to use email as the login name. But what surprised me was that now my WikiName was the LoginName even though all the debug info I generated showed that the right WikiName was put into the cache.

So the answer is that I had not set the UserMappingManager to Ldap -see below

I had:
$Foswiki::cfg{PasswordManager} = 'Foswiki::Users::LdapPasswdUser';
$Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::TopicUserMapping';

I fixed to
$Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::LdapUserMapping';
$Foswiki::cfg{PasswordManager} = 'Foswiki::Users::LdapPasswdUser';

-- NixNooi - 06 Jun 2013

In my wanderings reference was made to twiki/tools/ldapdump - which no longer is part of the code. Here is the few lines I wrote to dump my cache.

#!/usr/bin/perl
use warnings ;
use strict ;
use DB_File ;
use Fcntl ;

my $NAME="/sa001/wiki/foswiki/working/work_areas/LdapContrib/cache.db";

use Data::Dumper;

my %data;
tie %data, 'DB_File', $NAME, O_RDONLY, 0664
  or die "Cannot open file $NAME: $!";
print Dumper( \%data );
untie %data;

QuestionForm edit

Subject Using an extension, Authentication or Authorisation, LDAP
Extension LdapContrib
Version Foswiki 1.1.8
Status Answered
Related Topics
Topic revision: r1 - 06 Jun 2013, NixNooi - This page was cached on 18 Jun 2018 - 02:28.

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