Tags:
create new tag
, view all tags

SID-02290: NeedHelpWithLdap

Status: Asked Asked TWiki version: 6.0.2 Perl version: 5.22.1
Category: LdapContrib Server OS: Linux 4.4.0-42-generic Ubuntu Last update: 4 months ago

Hello guys,

i would like to ask for some help setting up LDAP for my twiki.

Whenever i change the PasswordManager and UserMapping to the LDAP ones, i get the following error when trying to login as a Wikiuser or with some random letters(to get the message wrong User...)

Can't use string ("ou=060, o=gkdvz") as an ARRAY ref while "strict refs" in use.

Warnlog: | 2017-01-13 - 06:29:12 | (TWiki::Contrib::LdapContrib) LdapContrib - Can not refresh cache now. It is already being refreshed by process 3171! (10.120.1.54/ssoid/web.topic/callerFile:callerLine) | 2017-01-13 - 06:29:16 | (TWiki::Contrib::LdapContrib) LdapContrib - Can not refresh cache now. It is already being refreshed by process 3171! (10.120.1.54/ssoid/web.topic/callerFile:callerLine) | 2017-01-13 - 06:29:16 | Can't use string ("ou=060; o=gkdvz") as an ARRAY ref while "strict refs" in use at /var/www/twiki/lib/TWiki/Contrib/LdapContrib.pm line 3541.

ldaptest looks like its working.

Thanks for any help.

-- Ralf Mueller - 2017-01-13

Discussion and Answer

does someone have an idea?

-- Ralf Mueller - 2017-01-17

still got that error, cant figure it out...

also tried to reinstall ldap Plugins because i remembered some errors. Fixed some of them but the extender.pl is still a problem for me. Tried several solutions i found like editing the LocalLib.cfg on @localPerlLibPath for the path of the tool to show up in the configuration CFG Setup. Permission is also correct.

********************************************************** Could not load installer script from tools/extender.pl.

If this is a TWiki release prior to 4.2, please download the latest version of the script from:

http://twiki.org/cgi-bin/view/Codev/ExtenderScript

and place it in the 'tools' directory below your installation root (create the directory if necessary).

If this is TWiki 4.2 or later, the script is missing from your installation, or may be broken. ********************************************************** at /var/www/twiki/lib/CGI/Carp.pm line 353. CGI::Carp::realdie("************************************************************\x{a}"...) called at /var/www/twiki/lib/CGI/Carp.pm line 443 CGI::Carp::die("************************************************************\x{a}"...) called at /var/www/twiki/LdapPlugin_installer line 65 require /var/www/twiki/LdapPlugin_installer called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 177 eval {...} called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 175 TWiki::Configure::UIs::EXTEND::ui(TWiki::Configure::UIs::EXTEND=HASH(0x264e9b0)) called at /var/www/twiki/bin/configure line 691 TWiki::_actionInstallExtension() called at /var/www/twiki/bin/configure line 461 at /var/www/twiki/lib/CGI/Carp.pm line 353. CGI::Carp::realdie("************************************************************\x{a}"...) called at /var/www/twiki/lib/CGI/Carp.pm line 443 CGI::Carp::die("************************************************************\x{a}"...) called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 179 eval {...} called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 175 TWiki::Configure::UIs::EXTEND::ui(TWiki::Configure::UIs::EXTEND=HASH(0x264e9b0)) called at /var/www/twiki/bin/configure line 691 TWiki::_actionInstallExtension() called at /var/www/twiki/bin/configure line 461

-- Ralf Mueller - 2017-01-19

Looks like i fixed the problem with "Cant use string" adding those [ ] to the array of LocalSite.cfg for UserBase and GroupBase.

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

-- Ralf Mueller - 2017-01-19

I am glad it worked out for you.

The plugin could be made more forgiving to accept a string or an array of strings for the {Ldap}{UserBase}

-- Peter Thoeny - 2017-01-20

still got that problem with the script extender, i think thats why LDAP is not working right. Each time i try to install something i get the error message above (did several researches to fix it).

-- Ralf Mueller - 2017-01-24

still got that problem with the script extender, i think thats why LDAP is not working right. Each time i try to install something i get the error message above (did several researches to fix it).

Warnlog: | 2017-01-24 - 06:20:29 | (TWiki::Contrib::LdapContrib) LdapContrib - LDAP ERROR: 1: Unexpected EOF (10.120.1.54/ssoid/web.topic/LdapContrib.pm:476) | 2017-01-24 - 06:20:29 | (TWiki::Contrib::LdapContrib) LdapContrib - error refreshing the user cache: 1: Unexpected EOF (10.120.1.54/ssoid/web.topic/callerFile:callerLine) | 2017-01-24 - 06:20:29 | (TWiki::Contrib::LdapContrib) LdapContrib - Got an error in refreshUsersCache, aborting .... (10.120.1.54/ssoid/web.topic/callerFile:callerLine)

also checked the apache log and got alot of error with "Unescaped left brace in regex is deprecated" in different .pm files.

-- Ralf Mueller - 2017-01-24

      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 Asked
Title NeedHelpWithLdap
SupportCategory LdapContrib
TWiki version 6.0.2
Server OS Linux 4.4.0-42-generic Ubuntu
Web server Apache 2.4.18
Perl version 5.22.1
Browser & version Fireforx 49.0
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2017-01-24 - 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.