Hi all,
I have a problem with my otrs configuration. I use an Active Directory as a source for customer.
I haven't problems with that, but i don't understand how to modify my configuration to have Company Tickets. Each user, can view his tickets but not others. Can you help me with that?
This is a part from my Config.pm file:
CustomerKey => 'sAMAccountName',
# customer #
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
# show not own tickets in customer panel, CompanyTickets
CustomerUserExcludePrimaryCustomerID => 1,
# add an ldap filter for valid users (expert setting)
CustomerUserValidFilter => '(objectClass=user)',
# administrator can't change customer preferences
AdminSetPreferences => 0,
# cache time to live in sec. - cache any database queries
CacheTTL => 120,
Map => [
# note: Login, Email and CustomerID are mandatory!
# if you need additional attributes from AD, just map them here.
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly
[ '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', 'mail', 0, 1, 'var', '', 0 ],
[ 'UserCustomerIDs', 'CustomerIDs', 'customer_ids', 1, 0, 'var', '', 0 ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var', '', 0 ],
[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
],
[SOLVED]Active Directory and Company Tickets
Moderator: crythias
-
- Znuny newbie
- Posts: 2
- Joined: 18 Jun 2012, 18:10
- Znuny Version: 3.1.6
- Real Name: Florent Pied
- Company: D2-SI
[SOLVED]Active Directory and Company Tickets
Last edited by FlorentD2SI on 25 Jun 2012, 10:40, edited 2 times in total.
Re: Active Directory and Company Tickets
Hi,
cahnge the lines:
CustomerID => 'mail',
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '', 0 ],
To have another value than mail, like department which is shared. But you need to define in which LDAP field the belonging to a "company" is stored
cahnge the lines:
CustomerID => 'mail',
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '', 0 ],
To have another value than mail, like department which is shared. But you need to define in which LDAP field the belonging to a "company" is stored
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 2
- Joined: 18 Jun 2012, 18:10
- Znuny Version: 3.1.6
- Real Name: Florent Pied
- Company: D2-SI
Re: Active Directory and Company Tickets
Thank you, it works