ConfigItem and Owner field

Moderator: crythias

Locked
zygi fre
Znuny newbie
Posts: 3
Joined: 07 Jun 2011, 17:32
Znuny Version: 3.0.7
Real Name: Zygi Fre

ConfigItem and Owner field

Post by zygi fre »

Hello
I'm new here so I want to say hi to all OTRS developers and thanks for this great piece of software :)

I'm stuck with one thing which I need to implement in OTRS
I'm using OTRS 3.0.7 with ITSM 3.0.3 and LDAP Auth (Active Directory) everything works ok but... I want to have some feature, I have ConfigItem object where ConfigItem class have in definition

Key => 'Owner',
Name => 'Owner',
Searchable => 1,
Input => {
Type => 'Customer',

},

when I'm editing ConfigItem object, I have Owner field, I can search person over LDAP but when I click Submit then in 'Configuration Item Version Details' I don't see person which I chose (field is blank). I see this information in 'History', I also see Owner which I chose in database but not in ConfigItem version details...

on second installation without LDAP Auth everything is ok...
due to configured customer LDAP Auth my customer_user table is empty.. and looks like OTRS query customer_user table instead of LDAP when build detailed info about CI

It's a bug, feature or I just forgot configure something... :) ?
chrisstyles
Znuny newbie
Posts: 6
Joined: 06 Jun 2011, 09:32
Znuny Version: 3.0.8

Re: ConfigItem and Owner field

Post by chrisstyles »

Did you sort this? I have exactly the same problem.
zygi fre
Znuny newbie
Posts: 3
Joined: 07 Jun 2011, 17:32
Znuny Version: 3.0.7
Real Name: Zygi Fre

Re: ConfigItem and Owner field

Post by zygi fre »

unfortunately no, I've used work-around by changing type of field to Text and I keep login (samaccountname from AD) of the user In case if this will be solved in some patch or next release... I hope :)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ConfigItem and Owner field

Post by crythias »

LDAP is considered read only, so anything you'd want to customize for the user might need to be stored in an LDAP field in the source.
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
chrisstyles
Znuny newbie
Posts: 6
Joined: 06 Jun 2011, 09:32
Znuny Version: 3.0.8

Re: ConfigItem and Owner field

Post by chrisstyles »

#crythias

Agree that the field is read only.. OTRS has read the correct information in the database as it appears when you perform an export of the CI. It also appears in any reporting. The interface however only ever shows an empty field which is kind of odd. I think the problem is going to be with how the field handles displaying the data from the LDAP lookup. Take me.. when I add myself as an owner, my email address is displayed in the lookup field as I start typing my name, which is great by the way. When I export the CI my samaccountname appears. Might the interface be displaying a blank AD field of the designated owner?

Any idea where we should start looking for the answer?

Cheers

Chris
zygi fre
Znuny newbie
Posts: 3
Joined: 07 Jun 2011, 17:32
Znuny Version: 3.0.7
Real Name: Zygi Fre

Re: ConfigItem and Owner field

Post by zygi fre »

ok, I've found solution... incomplete configuration...

edit Config.pm

Code: Select all

# customer uniq id
CustomerKey => 'sAMAccountName',
        
# customer #
CustomerID => 'mail',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['displayName', 'cn', 'mail', 'name', 'sAMAccountName'],
Attribute used as CustomerKey need to be added in CustomerUserSearchFields
Locked