I'm trying to get OTRS setup for our Company and I've got our agents authenticating to AD and the default database without issue, but I am having difficulty with the Customers. The Customers table is fully populated from Active Directory, but when they try to login it is not successful using either <username> or <username@domain.com> methods. I've been using a modified version of the code from the wiki, pasted below. Anybody have any ideas where I've gone awry?
# ---------------------------------------------------- #
# Customer LDAP Authentication
# ---------------------------------------------------- #
# CustomerUser
# (customer user ldap backend and settings)
$Self->{CustomerUser} = {
Name => 'LDAP Data Source',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
# ldap host
Host => server.domain.com',
# ldap base dn
BaseDN => 'ou=Staff,dc=domain,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 => 'myuser@domain.com',
UserPw => 'secretpass',
# in case you want to add always one filter to each ldap query, use
# this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => '(objectclass=user)'
# AlwaysFilter => '(mail=*)',
# if your frontend is e. g. iso-8859-1 and the charset of your
# ldap server is utf-8, use these options.
# SourceCharset => 'utf-8',
# DestCharset => 'iso-8859-1',
# if both your frontend and your LDAP are unicode, use this:
SourceCharset => 'utf-8',
DestCharset => 'utf-8',
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
Params => {
# port => 389,
port => 3268,
timeout => 120,
async => 0,
version => 3,
},
},
ReadOnly => 1,
# customer unique id
CustomerKey => 'sAMAccountName',
# customer #
CustomerID => 'mail',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['cn', 'givenname', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
# show not own tickets in customer panel, CompanyTickets
CustomerUserExcludePrimaryCustomerID => 0,
# add an ldap filter for valid users (expert setting)
# CustomerUserValidFilter => '(!(description=locked))',
# 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
# [ 'UserSalutation', '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', 'second_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 ],
[ 'UserMobile', 'Mobile', 'mobile', 1, 0, 'var', '', 0 ],
[ 'UserRoom', 'Room', 'physicalDeliveryOfficeName', 1, 0, 'var', '', 0 ],
[ 'Company', 'Company', 'company', 1, 0, 'var', '', 0 ],
[ 'Department', 'Department', 'department', 1, 0, 'var', '', 0 ],
[ 'Manager', 'Manager', 'manager', 1, 0, 'var', '', 0 ],
],
};
LDAP Customers populate but can't log in
Moderator: crythias
-
- Znuny newbie
- Posts: 4
- Joined: 07 Mar 2012, 17:45
- Znuny Version: 31000
- Real Name: Jim Jones
- Company: WVHDF
LDAP Customers populate but can't log in
OTSM - IT Help Desk 3.1.1
CentOS 6.2
CentOS 6.2
-
- Znuny newbie
- Posts: 4
- Joined: 07 Mar 2012, 17:45
- Znuny Version: 31000
- Real Name: Jim Jones
- Company: WVHDF
Re: LDAP Customers populate but can't log in
Nevermind, I did not do the CustomerAuth component of the configuration.
OTSM - IT Help Desk 3.1.1
CentOS 6.2
CentOS 6.2