SID-01951: Can't use string as an ARRAY ref while "strict refs" in use
| Status: |
Unanswered |
TWiki version: |
6.0.0 |
Perl version: |
5 version 12 |
| Category: |
CategoryPlugins |
Server OS: |
OpenSuse 11.4 |
Last update: |
9 years 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
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.