SID-02043: Logging failing - perl error
| Status: |
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
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.