
Hello Everyone,
Some body has any idea how to solve the issue which i asked in previous
mail.Authentication with LDAP is working fine for me.I want Customer
Authentication with "HTTPBasicAuth" only.
following is my config.pm
# This is an example configuration for an apache ($ENV{REMOTE_USER})
# auth. backend. Use it if you want to have a singe login through
# apache http-basic-auth.
$Self->{'AuthModule'} = 'Kernel::System::Auth::HTTPBasicAuth';
# In case there is a leading domain in the REMOTE_USER, you can
# replace it by the next config option.
$Self->{'AuthModule::HTTPBasicAuth::Replace'} = 'vcs\\';
# In case you need to replace some part of the REMOTE_USER, you can
# use the following RegExp ($1 will be new login).
# $Self->{'AuthModule::HTTPBasicAuth::ReplaceRegExp'} = '^(.+?)@.+?$';
#Customer User
#(customer user database backend and settings)
$Self-> {CustomerUser} = {
Name=> 'Database',
Module=> 'Kernel::System::CustomerUser::DB',
Params=> {Table => 'customer_user',
},
#customer uniq id
CustomerKey => 'login',
CustomerID => 'customer_id',
CustomerValid => 'valid_id',
CustomerUserListFields => ['first_name', 'last_name', 'email'],
CustomerUserSearchFields => ['login', 'last_name', 'customer_id'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['email'],
CustomerUserNameFields => ['salutation', 'first_name', 'last_name'],
Map => [
['UserSalutation', 'Salutation', 'salutation', 1, 0, 'var'],
['UserFirstname', 'Firstname', 'first_name', 1, 1, 'var'],
['UserLastname', 'Lastname', 'last_name', 1, 1, 'var'],
['UserLogin', 'Login', 'login', 1, 1, 'var'],
['UserPassword', 'Password', 'pw', 0, 1, 'var'],
['UserEmail', 'Email', 'email', 0, 1, 'var'],
['UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var'],
['UserComment', 'Comment', 'comments', 1, 0, 'var'],
['ValidID', 'Valid', 'valid_id', 0, 1, 'int'],
],
};
#Customer User 1
#customer user ldap backend and settings
$Self->{CustomerUser1} = {
Name => 'LDAP Backend',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'X.X.X.X',
BaseDN => 'OU=XX,DC=XX,DC=XX,DC=XX
SSCOPE => 'sub',
UserDN => 'CN=otrs,OU=Service
Accounts,OU=XX,DC=XX,DC=XX,DC=XX',
UserPw => 'XX',
AlwaysFilter => '',
SourceCharset => 'utf-8',
DestCharset => 'iso-8859-1',
},
#customer uniq id
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['name', 'sn'],
Map => [
['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'],
],
};
Arpit Gupta
ESM Sub Focus Area, TEG Open Source Platform
Tata Consultancy Services
Ph:- +91-22-67782544
Mailto: arpit2.g@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
From: Arpit2 G