[SOLVED] Unable to see customer data

Moderator: crythias

Locked
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

[SOLVED] Unable to see customer data

Post by aph »

Hi,

I have configured an LDAP backend for customer users, however I am unable to see customer data in web interface (Customer-> Customer User Administration).
I have it working on a virtual machine, but I get 'HTTP 500 Internal Server Error', when I try to see customer data. I'm attaching my Config file.

Thank you.
You do not have the required permissions to view the files attached to this post.
Last edited by aph on 17 Jul 2014, 08:42, edited 1 time in total.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Unable to see customer data

Post by crythias »

500 internal server error always (usually) explains itself in apache error.log. What's the error?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Unable to see customer data

Post by aph »

I'm using IIS as server on Windows Server 2008. Where can I see the error log?
EDIT: When I unclick 'show friendliy http error message' it shows a 'script failed to send data' error
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Unable to see customer data

Post by crythias »

You are going to have more problems with Windows than with the Appliance for this purpose.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Unable to see customer data

Post by aph »

I wish I had the choice to use Linux / Apache!
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Unable to see customer data

Post by crythias »

You can't even use Hyper-V to host the appliance?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Unable to see customer data

Post by crythias »

arg ... that config is eternal. And in German. Is the German forum unable to assist you? (Or are you crossposting...?)
Relevant code:

Code: Select all

	# CustomerUser
	# (customer user ldap backend and settings)
     $Self->{CustomerUser1} = {
        Name => 'LDAP Backend',
        Module => 'Kernel::System::CustomerUser::LDAP',
		Params => {
            Host => 'slgrz1-dc3.xxxx.intra',
            # ldap base dn
            BaseDN => 'dc=xxxx,dc=intra',
            SSCOPE => 'sub',
            UserDN => 'CN=service_otrs_adread,OU=Serviceaccounts,OU=OTRS,OU=All_Divisions,OU=Central_Services,OU=Resources,DC=xxxx,DC=intra',
            UserPw => 'xxxx',
            Params => {
					 inet4 => 1,
            },
         },
         CustomerKey => 'userPrincipalName',
         CustomerID => 'userPrincipalName',
         CustomerUserSearchListLimit => 250,
         CustomerUserNameFields => ['givenname', 'sn'],
         Map => [
             [ 'UserTitle',      'Title',      'title',           1, 0, 'var', '', 0 ],
             [ 'UserFirstname',  'Firstname',  'givenname',       1, 1, 'var', '', 0 ],
             [ 'UserLastname',   'Lastname',   'sn',              1, 1, 'var', '', 0 ],
             [ 'UserLogin',      'Username',   'userPrincipalName',             1, 1, 'var', '', 0 ],
             [ 'UserEmail',      'Email',      'userPrincipalName',            1, 1, 'var', '', 0 ],
             [ 'UserCustomerID', 'CustomerID', 'userPrincipalName',            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 ],
         ],
    };
#---------------------------APH Kommentar--------------------------------------------------------------------------------------#
# Einstellungen für CustomerUser für zweites LDAP Backend:
#------------------------------------------------------------------------------------------------------------------------------#
	# CustomerUser
     $Self->{CustomerUser2} = {
        Name => 'LDAP Backend2',
        Module => 'Kernel::System::CustomerUser::LDAP',
		Params => {
            Host => 'slgrz1-dc4.xxxx.intra',
            BaseDN => 'dc=xxxx,dc=intra',
            SSCOPE => 'sub',
            UserDN => 'CN=xxxx,OU=Serviceaccounts,OU=OTRS,OU=All_Divisions,OU=Central_Services,OU=Resources,DC=xxxx,DC=intra',
            UserPw => 'xxxx',
            Params => {
					 inet4 => 1,
            },
         },
         CustomerKey => 'userPrincipalName',
         CustomerID => 'userPrincipalName',
         CustomerUserSearchListLimit => 250,
       CustomerUserNameFields => ['givenname', 'sn'],
         Map => [
             [ 'UserTitle',      'Title',      'title',           1, 0, 'var', '', 0 ],
             [ 'UserFirstname',  'Firstname',  'givenname',       1, 1, 'var', '', 0 ],
             [ 'UserLastname',   'Lastname',   'sn',              1, 1, 'var', '', 0 ],
             [ 'UserLogin',      'Username',   'userPrincipalName',             1, 1, 'var', '', 0 ],
             [ 'UserEmail',      'Email',      'userPrincipalName',            1, 1, 'var', '', 0 ],
             [ 'UserCustomerID', 'CustomerID', 'userPrincipalName',            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 ],
         ],
    };
Any additional otrs.log would be of interest.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Unable to see customer data

Post by aph »

I agree. It has started to become complex.
For my understanding I still prefer English. The comments are for my colleagues.
There is no additional message in the otrs.log
Customers can authenticate against the ldap backend and log into customer portal.
Last edited by aph on 16 Jul 2014, 09:52, edited 1 time in total.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Unable to see customer data

Post by aph »

If I could use Hyper-V for OTRS Appliance, how would I get the LDAP Sync etc. running, since there is no config.pm and I cannot store OTRS data in a MSSQL DB. Or am I getting it completely wrong?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Unable to see customer data

Post by crythias »

aph wrote:how would I get the LDAP Sync etc. running, since there is no config.pm
Of course there is. How else would we be able to communicate if I'm running Linux and you're running Windows?
aph wrote:I cannot store OTRS data in a MSSQL DB
well, again, up to you on where you store data. If you insist on MSSQL, you can use FreeTDS or something, but you can also just use the included MySQL in the appliance.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Unable to see customer data

Post by aph »

is there some documentation available on installing appliance on windows server 2008 using Hyper V? I would like to give it a try if it will make matters less complicated
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Unable to see customer data

Post by crythias »

Documentation?

Download iso, create vm, boot iso within vm, follow instructions.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Unable to see customer data

Post by crythias »

BTW, if you don't know how to use Hyper-V and VMs don't go blindly following instructions by some guy on the Internet. Some reasonable amount of sanity, intelligence, and use of proper backups is assumed. :)

What you do on your servers is up to your responsibility.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Unable to see customer data

Post by aph »

I did try OTRS appliance on VM as described in http://otrs.github.io/doc/manual/appliance/3.3/en/html/.
However, where would I configure the system,for example, for LDAP etc. Where are the config and defaults files? The appliance manager in the web interface would only let me reboot, shutdown and update the system, which is no different than in VM. The system settings in the VM don't provide the option to configure OTRS as with config.pm
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Unable to see customer data

Post by crythias »

look at the bottom of the interface page. I believe you can press F2.
http://otrs.github.io/doc/manual/applia ... 05s05.html
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Unable to see customer data

Post by aph »

hmmmmm very tedious to edit the files on the system using vi! It is not possible to copy my existing Config.pm to the otrs appliance, is it?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Unable to see customer data

Post by crythias »

ssh, putty, filezilla, ...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Unable to see customer data

Post by aph »

Hmmmmm, certainly not the easiest solution. What I wonder about is why it works on a VM running Windows Server, but not a windows server itself!
Btw I get the following information message in IIS log when I click on 'Customers -> Customer User Administration.
Unbenannt.PNG
A message saying 'the OTRS database is being started'.
You do not have the required permissions to view the files attached to this post.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Unable to see customer data

Post by aph »

I was able to solve the problem. Apprently I had commented the line:

Code: Select all

CustomerUserListFields => ['cn', 'mail'],
Uncommenting the line solved the problem.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
Locked