Search found 9 matches

Go to advanced search

by duncan9562
23 Mar 2017, 12:23
Forum: General
Topic: Adding custom changes to User.pm
Replies: 8
Views: 292

Re: Adding custom changes to User.pm

Glad it helped, you are very welcome :) Spoke to soon :p So, I have made the following changes in the custom User.pm file:- =item UserAdd() to add new users my $UserID = $UserObject->UserAdd( UserFirstname => 'Huber', UserLastname => 'Manfred', UserLogin => 'mhuber', UserPw => 'some-pass', # not re...
by duncan9562
22 Mar 2017, 16:54
Forum: General
Topic: Adding custom changes to User.pm
Replies: 8
Views: 292

Re: Adding custom changes to User.pm

You could encapsulate your whole module into a "no-redefine warnings" scope. So from: package YourPackageName; use strict; use warnings; [... lots of module code ...] 1; you could write: package YourPackageName; use strict; use warnings; # disable redefine warnings in this scope { no warn...
by duncan9562
20 Mar 2017, 17:55
Forum: General
Topic: Adding custom changes to User.pm
Replies: 8
Views: 292

Re: Adding custom changes to User.pm

Thanks for the quick reply! So, I copied /opt/otrs/Kernel/System/User.pm to /opt/otrs/Kernel/Config/Files/CustomUser.pm which is fine. I have made the changes I need to in /opt/otrs/Kernel/Config/Files/CustomUser.pm, however I get a lot of "Subroutine redefined at xxxxxx" in the apache err...
by duncan9562
15 Mar 2017, 21:11
Forum: General
Topic: Adding custom changes to User.pm
Replies: 8
Views: 292

Adding custom changes to User.pm

Hey guys, To start, I am running OTRS v5.0.16. I need to make some changes to User.pm, however have been advised by OTRS support that making changes to any such file will result in them not supporting our installation which is not good news. We have some custom config in "/opt/otrs/Kernel/Confi...
by duncan9562
10 Jan 2017, 15:35
Forum: General
Topic: Custom LDAP sync in Agent Preferences issue
Replies: 5
Views: 184

Re: Custom LDAP sync in Agent Preferences issue

Ignore the last post, I found the Update and Add sections in User.pm and this now works perfectly.

Thanks for your help :)
by duncan9562
10 Jan 2017, 15:21
Forum: General
Topic: Custom LDAP sync in Agent Preferences issue
Replies: 5
Views: 184

Re: Custom LDAP sync in Agent Preferences issue

Testing this, it seems to work for new users who haven't logged into OTRS, but doesn't update the field for existing users.

Have I missed something in User.pm for existing users....?
by duncan9562
10 Jan 2017, 15:14
Forum: General
Topic: Custom LDAP sync in Agent Preferences issue
Replies: 5
Views: 184

Re: Custom LDAP sync in Agent Preferences issue

Hi reneeb, I tried adding the following, but this didn't seem to make much of a difference. # set Telephone phone $Self->SetPreferences( UserID => $UserID, Key => 'UserMyFieldTelephone', Value => $Param{UserMyFieldTelephone}, ); I assume logging out and logging back in to OTRS is enough to pull in t...
by duncan9562
10 Jan 2017, 14:01
Forum: General
Topic: Custom LDAP sync in Agent Preferences issue
Replies: 5
Views: 184

Custom LDAP sync in Agent Preferences issue

We are using LDAP for user authentication, however I am after getting more fields from AD into Agent preferences. Currently we sync:- UserFirstname UserLastname UserEmail UserMobile ...without any issues. I created a custom field in Agent Preferences using the below .xml (located in /opt/otrs/Kernel...
by duncan9562
23 Feb 2016, 15:14
Forum: Help
Topic: OTRS Dynamic Field Based Sender Address
Replies: 0
Views: 196

OTRS Dynamic Field Based Sender Address

I am looking to implement the dynamic field based sender address feature in OTRS. I have created a dynamic field called sender which is of field type dropdown. Adding the relevant users (Value) and email addresses (Key) in works fine, and I am able to switch and reply to tickets using the required e...

Go to advanced search

cron