Tags:
ldap1Add my vote for this tag plugin1Add my vote for this tag create new tag
view all tags

SID-02043: Logging failing - perl error

Status: Answered Answered TWiki version: 6.0.1 Perl version: v5.18.2 - built for x86_64-linux-gnu-thread-multi
Category: LdapContrib Server OS: Ubuntu 14.04.2 LTS Last update: 10 years ago

When trying to login, I receive the following error message:

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

Can't use string ("ou=groups,dc=domain,dc=org") as an ARRAY ref while "strict refs" in use
I tried to change the groupBase value, but nothing helped. The current value is in
  • bin/configure {Ldap}{GroupBase}:
    'ou=groups,dc=domain,dc=org'
  • twiki/lib/LocateSite.cfg:
    $TWiki::cfg{Ldap}{GroupBase} = 'ou=groups,dc=domain,dc=org';

Using the predefined notatation:

[
    'ou=groups,dc=52north,dc=org'
]
resulted in the same error.

After updating twiki/tools/ldaptest with the same configuration values, the test tools was able to connect to the remote LDAP server and retrieve values.

The log output looks like:

| 2015-03-26 - 13:30:26 | tieing cache with mode read (127.0.0.1/ssoid/web.topic/LdapContrib.pm:839)
| 2015-03-26 - 13:30:26 | called untieCache () (127.0.0.1/ssoid/web.topic/LdapContrib.pm:841)
| 2015-03-26 - 13:30:26 | cacheAge=9999999999, maxCacheAge=86400, LASTUPDATED=0, refresh=1 (127.0.0.1/ssoid/web.topic/callerFile:callerLine)
| 2015-03-26 - 13:30:26 | called refreshCache with mode 1, preserveTWikiUserMapping: 0 (127.0.0.1/ssoid/web.topic/callerFile:callerLine)
| 2015-03-26 - 13:30:26 | tieing cache with mode read (127.0.0.1/ssoid/web.topic/LdapContrib.pm:891)
| 2015-03-26 - 13:30:26 | called isGroup(EikeJuerrens) (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:30:26 | called checkCacheForGroupName(eikejuerrens) (127.0.0.1/ssoid/TWiki.TWikiSite/LdapContrib.pm:2184)
| 2015-03-26 - 13:30:26 | called getGroupNames() (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:30:26 | called isIgnoredGroup(eikejuerrens) (127.0.0.1/ssoid/TWiki.TWikiSite/LdapContrib.pm:3405)
| 2015-03-26 - 13:30:26 | called getAllIgnoredGroups() (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:30:26 | group eikejuerrens is unknown, need to refresh part of the ldap cache (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:30:26 | called getGroup(eikejuerrens) (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:30:26 | called untieCache () (127.0.0.1/ssoid/TWiki.TWikiSite/LdapContrib.pm:521)

Manually calling an ldap cache update with ?refreshldap=on results in the following log:

| 2015-03-26 - 13:41:11 | tieing cache with mode read (127.0.0.1/ssoid/web.topic/LdapContrib.pm:839)
| 2015-03-26 - 13:41:11 | called untieCache () (127.0.0.1/ssoid/web.topic/LdapContrib.pm:841)
| 2015-03-26 - 13:41:11 | cacheAge=9999999999, maxCacheAge=86400, LASTUPDATED=0, refresh=1 (127.0.0.1/ssoid/web.topic/callerFile:callerLine)
| 2015-03-26 - 13:41:11 | called refreshCache with mode 1, preserveTWikiUserMapping: 0 (127.0.0.1/ssoid/web.topic/callerFile:callerLine)
| 2015-03-26 - 13:41:11 | tieing cache with mode read (127.0.0.1/ssoid/web.topic/LdapContrib.pm:891)
| 2015-03-26 - 13:41:11 | TWikiContributor is not a valid loginName (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:41:11 | called isGroup(TWikiAdminGroup) (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:41:11 | TWikiAdminGroup is not a valid groupName (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:41:11 | TWikiAdminGroup is not a valid loginName (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:41:11 | twikiadmingroup is not a valid loginName (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:41:11 | called eachGroupMember(TWikiAdminGroup) (127.0.0.1/ssoid/TWiki.TWikiSite/UserMapping.pm:349)
| 2015-03-26 - 13:41:11 | TWikiAdminGroup is not a valid groupName (127.0.0.1/ssoid/TWiki.TWikiSite/callerFile:callerLine)
| 2015-03-26 - 13:41:11 | called eachGroupMember(TWikiAdminGroup) (127.0.0.1/ssoid/TWiki.TWikiSite/UserMapping.pm:349)
| 2015-03-26 - 13:41:11 | called eachGroupMember(TWikiAdminGroup) (127.0.0.1/ssoid/TWiki.TWikiSite/UserMapping.pm:349)
| 2015-03-26 - 13:41:11 | called untieCache () (127.0.0.1/ssoid/TWiki.TWikiSite/LdapContrib.pm:521)
;

What is needed to get authentication against the remote LDAP running? Do you need any additional information?

-- Eike Juerrens - 2015-03-26

Discussion and Answer

If you have write access to LocalSite.cfg, try entering the value like this:

$TWiki::cfg{Ldap}{GroupBase} = ['ou=groups,dc=domain,dc=org'];

This is identical to the syntax shown in configure, so I don't have a good clue why this doesn't work for you (but I don't have any clue about LdapPlugin either). Maybe the config values are only read on startup and won't take effect unless you restart the web server? But I guess you've already tried this...

-- Harald Jörg - 2015-03-26

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- Peter Thoeny - 2015-12-03

      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 Answered
Title Logging failing - perl error
SupportCategory LdapContrib
TWiki version 6.0.1
Server OS Ubuntu 14.04.2 LTS
Web server Apache/2.4.7 (Ubuntu)Apache
Perl version v5.18.2 - built for x86_64-linux-gnu-thread-multi
Browser & version Mozilla Firefox 36.0.4
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2015-12-03 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.