
Greetings all; We're trying to get OTRS 2.2 Beta4 configured to connect to our LDAP server to provide a listing of all the potential customers at the university. I'm not seeing any error messages in the apache error logs, or the OTRS error log. When in the Phone Ticket dialog, entering a search item and clicking search customer returns nothing. I have included the Kernel/Config.pm file for reference. Using netstat -tc I see two connections to the LDAP server startup, but there is no returned data to the webform. I've also done some work in the web configuration section that mimics the information in Kernel/Config.pm . When I make changes from OTRS, I do not see any changes in Kernel/Config.pm . Could this also be part of the issue? Thanks in advance for any help you can provide. -Jason ------------------------------------- Kernel/Config.pm ------------------------------------- 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} = 'ob4'; # DatabaseUser # (The database user.) $Self->{DatabaseUser} = 'otrs'; # (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};"; # ---------------------------------------------------- # # fs root directory # ---------------------------------------------------- # $Self->{Home} = '/opt/otrs'; # ---------------------------------------------------- # # insert your own config settings "here" # # config settings taken from Kernel/Config/Defaults.pm # # ---------------------------------------------------- # # $Self->{SessionUseCookie} = 0; # $Self->{CheckMXRecord} = 0; # CustomerUser # (customer user ldap backend and settings) $Self->{CustomerUser} = { Name => 'LDAP', Module => 'Kernel::System::CustomerUser::LDAP', Params => { # ldap host Host => 'ldap.example.com, # ldap base dn BaseDN => 'dc=example,dc=com' # 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 => '(objectclass=computer)', # 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', '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, # 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 ], #[ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 'var', '', 0 ], #[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ], Map => [ [ '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 ], [ 'UserPhone', 'Phone', 'telephoneNumber', 1, 0, 'var', '', 0 ], [ 'UserAddress', 'Address', 'postalAddress', 1, 0, 'var', '', 0 ], ], }; $Self->{Debug}=0; # ---------------------------------------------------- # # ---------------------------------------------------- # # data inserted by installer # # ---------------------------------------------------- # # $Self->{FQDN}='fqdn.example.com'; $Self->{DefaultCharset}='utf-8'; $Self->{CheckMXRecord}=1; $Self->{TicketNumberGenerator}='Kernel::System::Ticket::Number::AutoIncrement'; # ---------------------------------------------------- # # ---------------------------------------------------- # # # # 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; -- Jason Hill jahill@iastate.edu ISU Veterinary Teaching Hospital Ames, IA 50011