
Hi Team, I Have problem with Microsoft ADS LDAP Auth. The customer Auth giving me the following error ERROR: OTRS-CGI-10 Perl: 5.8.8 OS: linux Time: Mon Nov 23 19:11:26 2009 Message: Need CustomerID!!! Traceback (6147): Module: Kernel::Output::HTML::Layout::CustomerError (v1.176.2.2) Line: 4120 Module: Kernel::Modules::CustomerTicketOverView::Run (v1.50) Line: 77 Module: Kernel::System::Web::InterfaceCustomer::Run (v1.41.2.1) Line: 852 Module: /opt/otrs/bin/cgi-bin/customer.pl (v1.42) Line: 48 the Kernel\Config.pm file is like this :- # ADS LDAP Server Auth Config # AGENT AUTH CONFIG $Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP'; $Self->{'AuthModule::LDAP::Host'} = '192.168.0.6'; $Self->{'AuthModule::LDAP::BaseDN'} = 'dc=example,dc=com'; $Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName'; # FOR Search in LDAP $Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=Administrator,CN=Users,DC=example,DC=com'; $Self->{'AuthModule::LDAP::SearchUserPw'} = 'PASSWORD'; # CUSTOMER AUTH CONFIG $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP'; $Self->{'Customer::AuthModule::LDAP::Host'} = '192.168.0.6'; $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=example,dc=com'; $Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName'; $Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=Administrator,CN=Users,DC=example,DC=com'; $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'PASSWORD'; # CustomerUser1 # (customer user ldap backend and settings) $Self->{CustomerUser1} = { Module => 'Kernel::System::CustomerUser::LDAP', Params => { Host => '192.168.0.6', # ldap host BaseDN => 'dc=example,dc=com', # ldap base dn SSCOPE => 'sub', # search scope (one|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 => 'CN=Administrator,CN=Users,DC=example,DC=com', UserPw => 'PASSWORD', AlwaysFilter => '', SourceCharset => 'utf-8', DestCharset => 'iso-8859-1', }, # customer uniq id CustomerKey => 'sAMAccountName', # customer # CustomerID => 'mail', CustomerUserListFields => [ 'cn', 'mail'], CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'], CustomerUserSearchPrefix => '', CustomerUserSearchSuffix => '*', CustomerUserSearchListLimit => 250, CustomerUserPostMasterSearchFields => ['mail'], CustomerUserNameFields => ['givenname', 'sn'], CustomerUserExcludePrimaryCustomerID => 0, Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type #[ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ], [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ], [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ], [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ], [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ], [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ], [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ], #[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ], #[ 'UserComment', 'Comment', 'description', 1, 0, 'var' ], ], }; And also my agent has some problem with LDAP Auth it is giving the Error Like this :- Panic, user authenticated but no user data can be found in OTRS DB!! Perhaps the user is invalid. Please Help me to solve me this problem. -- Thanks and Regards, Ashish Gangani,