Hello,

My setup:
Fedora 6
otrs-2.1.5-1.fc6
openldap-servers-2.3.27-4
Mod perl:ldap installed

I'm trying to setup a OTRS server. Users must authenticate against a
openldap directory and the customerdata must be retrieved from the same LDAP
directory. After setting evereything up I recieved the error:

Error: Module 'Kernel::Modules::' not found!
*Comment:*
*Traceback:* ERROR: OTRS-CGI-10 Perl: 5.8.8 OS: linux Time: Wed Mar  7
19:58:06 2007

Message: Module 'Kernel::Modules::' not found!

Traceback (3203):
  Module: Kernel::System::Web::InterfaceCustomer::Run (v1.16.2.1) Line: 192
  Module:
ModPerl::ROOT::ModPerl::Registry::var_www_otrs_bin_cgi_2dbin_customer_2epl::handler
(v) Line: 47
  Module: (eval) (v1.37) Line: 203
  Module: ModPerl::RegistryCooker::run (v1.37) Line: 203
  Module: ModPerl::RegistryCooker::default_handler (v1.37) Line: 169
  Module: ModPerl::Registry::handler (v1.99) Line: 30


My config.pm



# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
# $Id: Config.pm.dist,v 1.18 2006/09/07 16:15:41 mh Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --
#  Note:
#
#  -->> OTRS does have a lot of config settings. For more settings
#       (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
#       LDAP, PostMaster, Session, Preferences, ...) see
#       Kernel/Config/Defaults.pm and copy your wanted lines into "this"
#       config file. This file will not be changed on update!
#
# --

package Kernel::Config;

sub Load {
   my $Self = shift;
   # ---------------------------------------------------- #
   # ---------------------------------------------------- #
   #                                                      #
   #         Start of your own config options!!!          #
   #                                                      #
   # ---------------------------------------------------- #
   # ---------------------------------------------------- #

   # ---------------------------------------------------- #
   # database settings                                    #
   # ---------------------------------------------------- #
   # DatabaseHost
   # (The database host.)
   $Self->{'DatabaseHost'} = 'localhost';
   # Database
   # (The database name.)
   $Self->{'Database'} = 'intentially removed!';
   # DatabaseUser
   # (The database user.)
   $Self->{'DatabaseUser'} = 'intentially removed!';
   # DatabasePw
   # (The password of database user. You also can use bin/CryptPassword.pl
   # for crypted passwords.)
   $Self->{'DatabasePw'} = 'intentially removed!';
   # DatabaseDSN
   # (The database DSN for MySQL ==> more: "man DBD::mysql")
   $Self->{DatabaseDSN} =
"DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";

   # (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
   # if you want to use a local socket connection
#    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
   # if you want to use a tcpip connection
#    $Self->{DatabaseDSN} =
"DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";

# This is an example configuration for an LDAP auth. backend.
   # (take care that Net::LDAP is installed!)
    $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
    $Self->{'Customer::AuthModule::LDAP::Host'} = 'localhost';
    $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'intentially removed!';
    $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)

  # 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 do NOT have permission to read from the LDAP tree
   $Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = '';
   $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = '';

   # 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'} = '';

   # 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 [EMAIL PROTECTED]
#    $Self->{'Customer::AuthModule::LDAP::UserSuffix'} = '@domain.com';

   # 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,
   };

# CustomerUser
   # (customer user ldap backend and settings)
   $Self->{CustomerUser} = {
       Name => 'LDAP Datenquelle',
       Module => 'Kernel::System::CustomerUser::LDAP',
       Params => {
           # ldap host
           Host => 'localhost',
           # ldap base dn
           BaseDN => 'intentially removed!',
           # search scope (one|sub)
           SSCOPE => 'sub',
#            # The following is valid but would only be necessary if the
#            # anonymous user does NOT have permission to read from the LDAP
tree
           UserDN => '',
           UserPw => '',
           # in case you want to add always one filter to each ldap query,
use
           # this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter
=> '(objectclass=user)'
           AlwaysFilter => '',
           # if your frontend is e. g. iso-8859-1 and the charset of your
           # ldap server is utf-8, use this options (if not, ignore it)
#            SourceCharset => 'utf-8',
#            DestCharset => 'iso-8859-1',
           # Net::LDAP new params (if needed - for more info see perldoc
Net::LDAP)
           Params => {
               port => 389,
               timeout => 120,
               async => 0,
               version => 3,
           },
       },
       # customer uniq id
       CustomerKey => 'uid',
       # customer #
       CustomerID => 'mail',
       CustomerUserListFields => ['cn', 'mail'],
       CustomerUserSearchFields => ['uid', 'cn', 'mail'],
       CustomerUserSearchPrefix => '',
       CustomerUserSearchSuffix => '*',
       CustomerUserSearchListLimit => 250,
       CustomerUserPostMasterSearchFields => ['mail'],
       CustomerUserNameFields => ['givenname', 'sn'],
       # show now own tickets in customer panel, CompanyTickets
       CustomerUserExcludePrimaryCustomerID => 0,
       # add a ldap filter for valid users (expert setting)
#       CustomerUserValidFilter => '(!(description=gesperrt))',
       # admin can't change customer preferences
       AdminSetPreferences => 0,
       Map => [
           # note: Login, Email and CustomerID needed!
           # var, frontend, storage, shown (1=always,2=lite), required,
storage-type, http-link, readonly
           [ 'UserSalutation', 'Title',      'title',           1, 0,
'var', '', 0 ],
           [ 'UserFirstname',  'Firstname',  'givenname',       1, 1,
'var', '', 0 ],
           [ 'UserLastname',   'Lastname',   'sn',              1, 1,
'var', '', 0 ],
           [ 'UserLogin',      'Username',   'uid',             1, 1,
'var', '', 0 ],
           [ 'UserEmail',      'Email',      'mail',            1, 1,
'var', '', 0 ],
           [ 'UserCustomerID', 'CustomerID', 'mail',            0, 1,
'var', '', 0 ],
#            [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1,
0, 'var', '', 0 ],
           [ 'UserPhone',      'Phone',      'telephonenumber', 1, 0,
'var', '', 0 ],
           [ 'UserAddress',    'Address',    'postaladdress',   1, 0,
'var', '', 0 ],
           [ 'UserComment',    'Comment',    'description',     1, 0,
'var', '', 0 ],
       ],
   };


   # ---------------------------------------------------- #
   # fs root directory
   # ---------------------------------------------------- #
   $Self->{Home} = '/var/www/otrs';

   # ---------------------------------------------------- #
   # insert your own config settings "here"               #
   # config settings taken from Kernel/Config/Defaults.pm #
   # ---------------------------------------------------- #
   # $Self->{SessionUseCookie} = 0;
   # $Self->{'CheckMXRecord'} = 1;

   # ---------------------------------------------------- #

   # ---------------------------------------------------- #
   # data inserted by installer                           #
   # ---------------------------------------------------- #
   # $DIBI$
   $Self->{'SystemID'} = 10;
   $Self->{'SecureMode'} = 1;
   $Self->{'Organization'} = '';
   $Self->{'LogModule::LogFile'} = '/tmp/otrs.log';
   $Self->{'LogModule'} = 'Kernel::System::Log::SysLog';
   $Self->{'FQDN'} = 'yourhost.example.com';
   $Self->{'DefaultLanguage'} = 'en';
   $Self->{'DefaultCharset'} = 'iso-8859-1';
   $Self->{'AdminEmail'} = '[EMAIL PROTECTED]';

   # ---------------------------------------------------- #
   # ---------------------------------------------------- #
   #                                                      #
   #           End of your own config options!!!          #
   #                                                      #
   # ---------------------------------------------------- #
   # ---------------------------------------------------- #
}

# ---------------------------------------------------- #
# needed system stuff (don't edit this)                #
# ---------------------------------------------------- #
use strict;
use vars qw(@ISA $VERSION);
use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');
$VERSION = '$Revision: 1.18 $';
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
# -----------------------------------------------------#

1;




Thanks in advance!

Regards,

Marco
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support orr consulting for your OTRS system?
=> http://www.otrs.com/

Reply via email to