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.

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 16 Jan 2020 - 15:23.

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