This question about Installation of Foswiki: Needs followup in Tasks
LdapContrib error after Update
Hi everybody!
After updating from a running 1.0.0 with
LdapContrib to 1.0.4 (via subversion vendor branch mechanism), I find myself unable to run Foswiki.
LdapContrib seems to connect properly to AD though. Here's what I get from the logs:
[Mon Apr 20 15:51:59 2009] [error] [client 172.18.64.4] - LdapContrib - constructed a new LdapContrib object
[Mon Apr 20 15:51:59 2009] [error] [client 172.18.64.4] - LdapContrib - called initCache
[Mon Apr 20 15:51:59 2009] [error] [client 172.18.64.4] - LdapContrib - updating cache
[Mon Apr 20 15:51:59 2009] [error] [client 172.18.64.4] - LdapContrib - called refreshCache
[Mon Apr 20 15:51:59 2009] [error] [client 172.18.64.4] - LdapContrib - called refreshUsersCache()
[Mon Apr 20 15:51:59 2009] [error] [client 172.18.64.4] - LdapContrib - called search(filter=objectClass=person, base=dc=ads,dc=augsburg,dc=DE, scope=sub, limit=0, attrs=samaccountname,mail,gidNumber,sn,givenName)
[Mon Apr 20 15:51:59 2009] [error] [client 172.18.64.4] - LdapContrib - called connect
[Mon Apr 20 15:51:59 2009] [error] [client 172.18.64.4] - LdapContrib - proxy bind
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] - LdapContrib - found 500 entries
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: Can't locate object method "writeWarning" via package "Foswiki" at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 104, <DATA> line 830.
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 104
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Contrib::LdapContrib::writeWarning('Foswiki::Contrib::LdapContrib=HASH(0x8e4687c)', 'no WikiNameAttributes found for CN=WX650105,OU=Computer,OU=Ba...') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 970
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Contrib::LdapContrib::cacheUserFromEntry('Foswiki::Contrib::LdapContrib=HASH(0x8e4687c)', 'Net::LDAP::Entry=HASH(0x8fa0d64)', 'HASH(0x8dfac3c)', 'HASH(0x8e0aa28)', 'HASH(0x8e0aa4c)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 758
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Contrib::LdapContrib::refreshUsersCache('Foswiki::Contrib::LdapContrib=HASH(0x8e4687c)', 'HASH(0x8dfac3c)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 675
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Contrib::LdapContrib::refreshCache('Foswiki::Contrib::LdapContrib=HASH(0x8e4687c)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 650
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Contrib::LdapContrib::initCache('Foswiki::Contrib::LdapContrib=HASH(0x8e4687c)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 278
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Contrib::LdapContrib::getLdapContrib('Foswiki=HASH(0x816760c)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Users/LdapPassword.pm line 58
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Users::LdapPassword::new('Foswiki::Users::LdapPassword', 'Foswiki=HASH(0x816760c)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Users/TopicUserMapping.pm line 83
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Users::TopicUserMapping::new('Foswiki::Users::LdapUserMapping', 'Foswiki=HASH(0x816760c)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Users/LdapUserMapping.pm line 52
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Users::LdapUserMapping::new('Foswiki::Users::LdapUserMapping', 'Foswiki=HASH(0x816760c)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Users.pm line 123
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Users::new('Foswiki::Users', 'Foswiki=HASH(0x816760c)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki.pm line 1352
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::new('Foswiki', 'undef', 'Foswiki::Request=HASH(0x8586d50)', 'HASH(0x85759ac)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/UI.pm line 170
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::UI::execute('Foswiki::Request=HASH(0x8586d50)', 'CODE(0x8583800)', 'view', 1) called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/UI.pm line 120
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::UI::handleRequest('Foswiki::Request=HASH(0x8586d50)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/lib/Foswiki/Engine/CGI.pm line 26
[Mon Apr 20 15:52:00 2009] [error] [client 172.18.64.4] [Mon Apr 20 15:52:00 2009] view: \tFoswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x8372bbc)') called at /data/srv/www/htdocs/wiki.intranet.augsburg.de/itfos/foswiki/bin/view line 45
Sorry for the lenghty output! In order to see the complete lines you can just c/p the page source into your editor of choice.
Looks like there's some sort of namespace problem here? Unfortunately I'm not a perl coder...
Any help would be greatly appreciated!
Thank you in advance!
Regards
Andi
--
AndreasHafner - 20 Apr 2009
Update
Commenting out some lines in
LdapContrib.pm solves the problem:
sub writeWarning {
my ($this, $msg) = @_;
# my $session = $Foswiki::Plugins::SESSION || $this->{session};
# if ($session) {
# $session->writeWarning("LdapContrib - $msg");
# } else {
print STDERR "- LdapContrib - $msg\n";
# }
}
Initialization of $session seems to go wrong somehow.
Can please somebody with a little understanding have a look at this?
Regards
--
AndreasHafner - 21 Apr 2009