LDAP on OTRS ERRROR

Moderator: crythias

Post Reply
aalzola
Znuny newbie
Posts: 40
Joined: 27 Jul 2018, 13:32
Znuny Version: 6.0.8

LDAP on OTRS ERRROR

Post by aalzola »

Hi OTRS friends,
Im trying to link my AD with my OTRS using LDAP.
I have try modifying Config.pm adding the lines that appear in Defaults.pm but when I save the Config.pm my otrs web stops working and I have to use the Config.pm.bak file to recover the web service again.

Can someone who has link LDAP with OTRS help me?

Thank you!

PD: Im using OTRS 6.0.10
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: LDAP on OTRS ERRROR

Post by wurzel »

Hi,

show your Config.pm and your apache log + syslog.

usually there is a syntax error shown in the log

Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
aalzola
Znuny newbie
Posts: 40
Joined: 27 Jul 2018, 13:32
Znuny Version: 6.0.8

Re: LDAP on OTRS ERRROR

Post by aalzola »

Thank you.

My problem is that I can't integrate LDAP on otrs, everytime I get an error on the web service.
This the only thing I have added to my Config.pm file.
# CustomerUser
# (customer user ldap backend and settings)
$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '172.26.1.20',
BaseDN => 'DC=PraxisMad,DC=local',
SSCOPE => 'sub',
UserDN => 'CN=Users,CN=otrs_search,DC=PraxisMad,DC=local',
UserPw => 'XXXXXXXXX',

SourceCharset => 'utf-8',
DestCharset => 'utf-8',
Params => {
port => 389,
timeout => 120,
async => 0,
version => 3,
},
},



CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['cn','mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail','givenname', 'sn'],
CustomerUserSearchPrefix => '*',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 500,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
CustomerUserEmailUniqCheck => 0,
CustomerUserExcludePrimaryCustomerID => 0,
AdminSetPreferences => 0,
ReadOnly => 1,
CacheTTL => 180,
Map => [
# note: Login, Email and CustomerID are mandatory!
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-lin$
[ 'UserTitle', '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', 'sAMAccountName', 0, 1, 'var', '', 0 ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var', '', 0 ],
[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'dn', 1, 0, 'var', '', 0 ],
[ 'DN', 'DN', 'dn', 1, 0, 'var', '', 0 ],
],
};
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: LDAP on OTRS ERRROR

Post by root »

Hi,

You talk about web service, that's the GenericInterface right? AFAIK you need a valid user for it and suggest this user does not exist in the LDAP backend.

Do you use the web service as an agent or customer user? Did you checked the related log?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
aalzola
Znuny newbie
Posts: 40
Joined: 27 Jul 2018, 13:32
Znuny Version: 6.0.8

Re: LDAP on OTRS ERRROR

Post by aalzola »

Thank you Roy!

Yes the GenericInterface. So, I have created a user (called user_search on my AD on CN=Users) is that right? Then in Config.pm I have complete UserDN and UserPW with that information and the user psswd.

I use the web service as Agent admin. Which or where is the related log dir?

Thank you so much!
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: LDAP on OTRS ERRROR

Post by root »

Hi,

whoa, too many unclear questions. Let's start with the log files as requested by wurzel. If there's a syntax error in you Config.pm after adding the LDAP related part there should be a hint. Does otrs.Console.pl work after you added the LDAP config?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
aalzola
Znuny newbie
Posts: 40
Joined: 27 Jul 2018, 13:32
Znuny Version: 6.0.8

Re: LDAP on OTRS ERRROR

Post by aalzola »

Hi Roy,

Sorry, I'm new on OTRS.
1-How can I saw the logs requested by Wurzel ?
2-How can I check if otrs.Console.pl works?

Thank you
Post Reply