
Hello Everyone,
I am using "Windows Authentication" in IIS7. when i try to open
http://hostname/otrs/customer.pl it says "Panic No UserData" but when i
open it through IP i.e. http://X.X.X.X/otrs/customer.pl , A box pops up
named "Windows Security" asking for credentials, When i enter the
credentials, I can see the "My Tickets" page for that customer.
Please tell me where I am wrong how to go directly to customer page without
entering these credentials, it should automatically take the Windows Logon
Credentials.
Here is my Config.pm
$Self->{'Customer::AuthModule'} =
'Kernel::System::CustomerAuth::HTTPBasicAuth';
# In case there is a leading domain in the REMOTE_USER, you can
# replace it by the next config option.
$Self->{'Customer::AuthModule::HTTPBasicAuth::Replace'} = 'XXX\\';
# Note:
# In case you need to replace some part of the REMOTE_USER, you can
# use the following RegExp ($1 will be new login).
$Self->{'Customer::AuthModule::HTTPBasicAuth::ReplaceRegExp'} = '^
(.+?)@.+?$';
# If you use this module, you should use as fallback the following
# config settings if user isn't login through apache ($ENV
{REMOTE_USER})
# $Self->{CustomerPanelLoginURL} = 'http://X.X.X.X/otrs/customer.pl';
# $Self->{CustomerPanelLogoutURL} =
'http://host.example.com/thanks-for-using-otrs.html';
#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=objects,DC=XX,DC=XXX,DC=XX',
SSCOPE => 'sub',
UserDN => 'CN=otrs,OU=Service
Accounts,OU=Objects,DC=XXX,DC=XXX,DC=XXX',
UserPw => 'XXXX',
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'],
],
};
Thanks & Regards
Arpit Gupta
ESM Sub Focus Area, TEG Open Source Platform
Tata Consultancy Services
Mailto: arpit2.g@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
From: Nils Leideck - ITSM