Error log:Authentication succeeded, but no customer record is found in the customer backend. Please contact your administrator.
Config.pm[Wed Mar 7 16:44:27 2012][Notice][Kernel::System::CustomerAuth::LDAP::Auth] CustomerUser: installer (CN=installer,OU=Test,OU=Test (XX),DC=test,DC=test,DC=net) authentication ok (REMOTE_ADDR: x.x.x.x).
[Wed Mar 7 16:44:27 2012][Error][Kernel::System::CustomerUser::LDAP::CustomerUserDataGet][614] 0000202B: RefErr: DSID-031006E0, data 0, 1 access points
ref 1: 'xxx.net'
[Wed Mar 7 16:44:27 2012][Error][Kernel::System::CustomerUser::SetPreferences][504] No such user 'installer'!
[Wed Mar 7 16:44:27 2012][Error][Kernel::System::CustomerUser::LDAP::CustomerUserDataGet][614] 0000202B: RefErr: DSID-031006E0, data 0, 1 access points
ref 1: 'xxx.net'
[Wed Mar 7 16:44:27 2012][Error][Kernel::System::CustomerUser::LDAP::CustomerUserDataGet][614] 0000202B: RefErr: DSID-031006E0, data 0, 1 access points
ref 1: 'xxx.net'
Code: Select all
# --------------------------------------------------- #
# customer authentication settings #
# (enable what you need, auth against otrs db, #
# against a LDAP directory, against HTTP basic #
# authentication and against Radius server) #
# --------------------------------------------------- #
# 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'} = '.x.x.x.x';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'DC=xxx,DC=xxx,DC=xxx';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
# 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'} = 'CN=Test,OU=Users,OU=Test (XX),DC=test,DC=test,DC=net';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'xxxx';
# ---------------------------------------------------- #
# OTRS Active Directory Integration Backed DB Customers #
# ---------------------------------------------------- #
$Self->{CustomerUser} = {
Name => 'ldapserver',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'x.x.x.x',
BaseDN => 'DN=test,DC=test,DC=test',
SSCOPE => 'sub',
UserDN => 'CN=Test,OU=Users,OU=Test (XX),DC=test,DC=test,DC=net',
UserPw => 'xxxx',
AlwaysFilter => '',
Params => {
port => 389,
timeout => 120,
async => 0,
version => 3,
},
},
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
CustomerUserExcludePrimaryCustomerID => 0,
AdminSetPreferences => 0,
Map => [
[ 'UserSalutation', 'Title', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'sAMAccountName', 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 ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
],
};
# 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,
};
# Die if backend can't work, e. g. can't connect to server.
# $Self->{'Customer::AuthModule::LDAP::Die'} = 1;