Hi,
Apart from my previous post .. (http://forums.otrs.org/viewtopic.php?f=61&t=10196) the new issue I am facing is that I am not able to login to customer panel "/otrs/customer.pl" using the details of my customer table (not OTRS customer_user table). I have changed these Customer Authentication settings from SysConfig -> Edit Config Settings in Framework -> Frontend::Customer::Auth
I have defined a different table, DB, Username and Password fields and the DB connection for Customer authentication from Default i.e of OTRS to my own. To avoid any issue I have set Customer::AuthModule::DB::CryptType as Plain. After doing the changes I was able to login using a test customer but after changing the password from the "preferences" section. I was not able to login again. Since then, it is displaying me the following error ...
"Authentication succeeded, but no customer record is found in the customer backend. Please contact your administrator."
I have google it a lot but only found Customer Auth with LDAP with the same issue but I am using Customer Auth with DB.
Can anyone suggest me why I am getting this error message?
Thanks
Customer Auth - Authentication Issue
Moderator: crythias
Re: Customer Auth - Authentication Issue
Did you also create a CustomerUser Entry in your Config.pm as Auth (as the name says) ist doing the Auth Part but not the Customer Data part.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Customer Auth - Authentication Issue
No .. I have not manually added anything in the Config and Default.pl file. I changes all the settings using the Web Interface in Admin panel using SysConfig option.
Can you please let me know what needs to be added exactly and where? Do I have to add it manually or it can be added using Admin Web interface?
Thanks
Can you please let me know what needs to be added exactly and where? Do I have to add it manually or it can be added using Admin Web interface?
Thanks
Re: Customer Auth - Authentication Issue
You need to copy the code from Defaults.pm to Config.pm. (Never change Defaults.pm) There is no way to do this in the frontend
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Customer Auth - Authentication Issue
Can you please let me know the exact code which I need to use, I am struggling this from long time? Is this written somewhere say in Default.pl ?
Thanks a lot!
Thanks a lot!
Re: Customer Auth - Authentication Issue
You need a CustomerUser block (it is in Defaults.pm) Copy it to Config.pm and change it to your needs (alos read the admin book on doc.otrs.org)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Customer Auth - Authentication Issue
Thanks for your time ...
I have added the following code into my Config.pm file but it is still not working
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::DB';
$Self->{'Customer::AuthModule::DB::Table'} = 'my_customer_table'; // I am not using OTRS DB and its table
$Self->{'Customer::AuthModule::DB::CustomerKey'} = 'username'; // My table field storing login
$Self->{'Customer::AuthModule::DB::CustomerPassword'} = 'password'; // My table field storing pw
$Self->{'Customer::AuthModule::DB::DSN'} = "DBI:mysql:database=my_test_db;host=localhost"; // Connecting to my_test_db , NOT otrs DB
$Self->{'Customer::AuthModule::DB::User'} = "root";
$Self->{'Customer::AuthModule::DB::Password'} = "root";
$Self->{'Customer::AuthModule::DB::CryptType'} = 'plain';
Still getting the same error message, please let me know what else needs to be added ..
Right now, I just want to Authenticate the Customer using my table, I don't need Customer Data to populate in OTRS Admin/Agents panel as of now. I might need it later on so pls suggest me that too.
Thank you so much ..
I have added the following code into my Config.pm file but it is still not working

$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::DB';
$Self->{'Customer::AuthModule::DB::Table'} = 'my_customer_table'; // I am not using OTRS DB and its table
$Self->{'Customer::AuthModule::DB::CustomerKey'} = 'username'; // My table field storing login
$Self->{'Customer::AuthModule::DB::CustomerPassword'} = 'password'; // My table field storing pw
$Self->{'Customer::AuthModule::DB::DSN'} = "DBI:mysql:database=my_test_db;host=localhost"; // Connecting to my_test_db , NOT otrs DB
$Self->{'Customer::AuthModule::DB::User'} = "root";
$Self->{'Customer::AuthModule::DB::Password'} = "root";
$Self->{'Customer::AuthModule::DB::CryptType'} = 'plain';
Still getting the same error message, please let me know what else needs to be added ..
Right now, I just want to Authenticate the Customer using my table, I don't need Customer Data to populate in OTRS Admin/Agents panel as of now. I might need it later on so pls suggest me that too.
Thank you so much ..