после настройки LDAP не стартует Apach

Moderator: DenisBY

Locked
BAGZ
Znuny newbie
Posts: 4
Joined: 05 Jul 2011, 07:47
Znuny Version: 3.08

после настройки LDAP не стартует Apach

Post by BAGZ »

Доброго всем дня.
Столкнулся с такой проблемой, начинаю настраивать LDAP по следующим примерам
otrs.ru/forum/viewtopic.php?f=6&t=31
forums.otrs.org/viewtopic.php?f=111&t=9370
вроде настраиваю как написано перестартовываю ОТРС и Апач не стартует в логах апача следующее написано

[Fri Jul 01 14:28:27 2011] [error] Global symbol "$Self" requires explicit package name at C:/PROGRA~1/OTRS/OTRS//Kernel/Config.pm line 121.\nGlobal symbol "$Self" requires explicit package name at C:/PROGRA~1/OTRS/OTRS//Kernel/Config.pm line 123.\nGlobal symbol "$Self" requires explicit package name at C:/PROGRA~1/OTRS/OTRS//Kernel/Config.pm line 125.\nGlobal symbol "$Self" requires explicit package name at
.
.
.
C:/PROGRA~1/OTRS/OTRS//Kernel/Config.pm line 168.\nGlobal symbol "$Self" requires explicit package name at C:/PROGRA~1/OTRS/OTRS//Kernel/Config.pm line 171.\nGlobal symbol "$Self" requires explicit package name at C:/PROGRA~1/OTRS/OTRS//Kernel/Config.pm line 172.\nGlobal symbol "$Self" requires explicit package name at C:/PROGRA~1/OTRS/OTRS//Kernel/Config.pm line 173.\nGlobal symbol "$Self" requires explicit package name at C:/PROGRA~1/OTRS/OTRS//Kernel/Config.pm line 174.\nGlobal symbol "$Self" requires explicit package name at C:/PROGRA~1/OTRS/OTRS//Kernel/Config.pm line 177.\nCompilation failed in require at C:/PROGRA~1/OTRS/OTRS/scripts/apache2-perl-startup.pl line 67.\nBEGIN failed--compilation aborted at C:/PROGRA~1/OTRS/OTRS/scripts/apache2-perl-startup.pl line 67.\nCompilation failed in require at (eval 7) line 1.\n
[Fri Jul 01 14:28:27 2011] [error] Can't load Perl file: C:/PROGRA~1/OTRS/OTRS/scripts/apache2-perl-startup.pl for server otrs.asup.by:0, exiting...

в чем проблема???
BAGZ
Znuny newbie
Posts: 4
Joined: 05 Jul 2011, 07:47
Znuny Version: 3.08

Re: после настройки LDAP не стартует Apach

Post by BAGZ »

Не ужели нет никаких предположений :(
Ниже кусок кода который я пытаюсь засунуть в config.pm, после чего и не стартует Apach.

Code: Select all

# This is an example configuration for an LDAP auth. backend.
# (make sure Net::LDAP is installed!)
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '172.20.15.30';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=asup,dc=by';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'uid';

# Check if the user is allowed to auth in a posixGroup
# (e. g. user needs to be in a group xyz to use otrs)
$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'cn=OTRS_Users,ou=OTRS,dc=asup,dc=by';
$Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'memberUid';
# for ldap posixGroups objectclass (just uid)
$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'UID';
# for non ldap posixGroups objectclass (full user dn)
#$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN';

# The following is valid but would only be necessary if the
# anonymous user does NOT have permission to read from the LDAP tree
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'cn=root,ou=OTRS,dc=asup,dc=by';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'root';

# in case you want to add always one filter to each ldap query, use
# this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => '(objectclass=user)'
$Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '(objectclass=user)';

# in case you want to add a suffix to each customer login name, then
# you can use this option. e. g. user just want to use user but
# in your ldap directory exists user@domain.
#$Self->{'Customer::AuthModule::LDAP::UserSuffix'} = '@asup.by';

# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
$Self->{'Customer::AuthModule::LDAP::Params'} = {
    port => 389,
    timeout => 120,
    async => 0,
    version => 3,
};
BAGZ
Znuny newbie
Posts: 4
Joined: 05 Jul 2011, 07:47
Znuny Version: 3.08

Re: после настройки LDAP не стартует Apach

Post by BAGZ »

Тему можно закрывать с проблемой разобрался.
Locked