RE: [otrs] Adding LDAP Customer Info

Thomas, thanks for responding so quickly. This config allows me to search by user id which is something I was looking for but it still doesn't answer my first two questions. What I want is to include more information for teh tech guys in the ticket view. When I click on phone view and then enter a user name I want otrs to display the user information such as Full Name, Phone #, Email Address, and Office number(all of which is entered in Active Directory) on either the side of the screen where it says Customer Info or within the first couple of lines of the text of the ticket. Is this possible? Neil -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Thomas Nilsen Sent: Wednesday, November 19, 2003 9:15 AM To: User questions and discussions about OTRS. Subject: RE: [otrs] Adding LDAP Customer Info Look for the CustomerID => field in config.pm. We have this info linked to AD and CustomerID is set to "mail". CustomerKey needs to be set to "sAMAccountName". Here is our settings in Config.pm for the customer section. # CustomerUser # (customer user ldap backend and settings) $Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::LDAP', Params => { # ldap host Host => 'dcsrv1', # ldap base dn BaseDN => 'dc=domain,dc=local,dc=com', # search scope (one|sub) SSCOPE => 'sub', # The following is valid but would only be necessary if the # anonymous user does NOT have permission to read from the LDAP tree UserDN => 'cn=otrs,ou=Services,dc=domain,dc=local,dc=com', UserPw => 'password', }, # customer uniq id CustomerKey => 'sAMAccountName', # customer # CustomerID => 'mail', CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'], CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'], CustomerUserPostMasterSearchFields => ['mail'], CustomerUserNameFields => ['givenname', 'sn'], Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type # [ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ], [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ], [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ], [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ], [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ], [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ], # [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ], # [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ], # [ 'UserComment', 'Comment', 'description', 1, 0, 'var' ], ], }; Regards, Thomas -----Original Message----- From: Neil Lehouillier [mailto:NLehouillier@comptonpetroleum.com] Sent: Wednesday, November 19, 2003 4:26 PM To: otrs@otrs.org Subject: [otrs] Adding LDAP Customer Info Hi, I just wanted to ask a couple of questions...... Is there any way to setup otrs(setup with LDAP integration ie... AD) so that when I go under Customer User Management I can see the users that are under the Active Directory tree. Also under phone view when I create a new ticket I would like to have this.... When I enter the user in the From: field and hit search that it would look in the Active Directory and pull the phone number, office number, and title and either include them on the Customer info section on the side or include them in the text section of the ticket. I don't know how to do this off hand so that is why I'm asking...... Is any of this possible....... Thanks...... Neil DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

Hi Neil, On Wed, Nov 19, 2003 at 09:39:17AM -0700, Neil Lehouillier wrote:
thanks for responding so quickly. This config allows me to search by user id which is something I was looking for but it still doesn't answer my first two questions. What I want is to include more information for teh tech guys in the ticket view. When I click on phone view and then enter a user name I want otrs to display the user information such as Full Name, Phone #, Email Address, and Office number(all of which is entered in Active Directory) on either the side of the screen where it says Customer Info or within the first couple of lines of the text of the ticket. Is this possible?
Yes, you can do this. Add more to the Map of the CustomerUser config option: $Self->{CustomerUser} = { [...] Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type [ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ], [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ], [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ], [ 'UserLogin', 'Login', 'uid', 1, 1, 'var' ], [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ], [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ], [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ], [ 'UserHost', 'Host', 'ldap_attr_host', 1, 0, 'var' ], [ 'UserIP', 'Host IP', 'ldap_attr_host_ip', 1, 0, 'var' ], [ 'UserXxxx', 'Xxxx', 'ldap_attr_xxxx', 1, 0, 'var' ], [ 'UserXxxx', 'Xxxx', 'ldap_attr_xxxx', 1, 0, 'var' ], [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ], [ 'UserComment', 'Comment', 'description', 1, 0, 'var' ], ], };
Neil
Martin -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
participants (2)
-
Martin Edenhofer
-
Neil Lehouillier