Tags:
create new tag
, view all tags

SID-01951: Can't use string as an ARRAY ref while "strict refs" in use

Status: Unanswered Unanswered TWiki version: 6.0.0 Perl version: 5 version 12
Category: CategoryPlugins Server OS: OpenSuse 11.4 Last update: 2 months ago

Hello Twiki Users

We have been using twiki for over years. Supreb software here. We decided to use LDAPContrib to make the Login easyier.

But we got stuck at the end of the line. After configuring everything. Not even the admin will work anymore. LDAP is running fine with the ldaptest in the tools folder.

While trying to login we get the error:

TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.

Can't use string ("DC=my, DC=Domain") as an ARRAY ref while "strict refs" in use

Please help me out here. I searched google till the end of the internet.

Cheers

-- Merlin Huber - 2014-07-22

Discussion and Answer

This Error points to Line 595 of LdapContrib:

my @entries; # There can only be one, but we need to make sure.
foreach my $userBase (@{$this->{userBase}}) {
my $msg = $this->search(
filter => $filter,
base => $userBase,
deref => 'always'

-- Merlin Huber - 2014-07-22

Make sure the {Ldap}[UserBase} in twiki/lib/LocalSite.cfg is an array, such as:

$TWiki::cfg{Ldap}{UserBase} = ['ou=people,dc=my,dc=domain,dc=com'];

-- Peter Thoeny - 2014-07-22

Thanks! That escaping did change the whole thing.

Cheers Merlin

-- Merlin Huber - 2014-07-23

got a similar error when trying to login

Can't use string ("dc=my,dc=domain,dc=com") as an ARRAY ref while "strict refs" in use

just admin is working.

-- Ralf Mueller - 2017-01-12

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Unanswered
Title Can't use string as an ARRAY ref while "strict refs" in use
SupportCategory CategoryPlugins
TWiki version 6.0.0
Server OS OpenSuse 11.4
Web server apache 2.2.17
Perl version 5 version 12
Browser & version chrom, Firefox
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2017-01-12 - RalfMueller
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.