Ldap Agent configurated

Moderator: crythias

Locked
genesis2005
Znuny newbie
Posts: 22
Joined: 06 Dec 2013, 20:10
Znuny Version: 5.0.8
Real Name: Edwin
Company: FINANZAS

Ldap Agent configurated

Post by genesis2005 »

Friends, i need your help i installed otrs 3,3,3 y I really configured the customers LDAP, all customers can loging, but i have a problem because i can not configure LDAP for my agents, i post my Config.pm.

When a Agent try to login cant do it

Code: Select all

$Self->{CustomerUser} = {
Name => 'LDAP Data Source',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
# ldap host
Host => '172.17.25.9',
# ldap base dn
BaseDN => 'dc=minfin, dc=di,dc=gobierno',
# 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=Especializados TI,ou=TI,ou=DTI,ou=xxxxxxx,dc=xxxxxx,dc=xxxxx,dc=xxxxxxx’,
UserPw => ‘xxxxxxxxxx’,
# 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 => '',
# if both your frontend and your LDAP are unicode, use this:
SourceCharset => 'utf-8',
DestCharset => 'utf-8',
# if your frontend is unicode and the charset of your
# ldap server is iso-8859-1, use these options.
# SourceCharset => 'iso-8859-1',
# DestCharset => 'utf-8',
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
Params => {
port => 389,
timeout => 120,
async => 0,
version => 3,
},
},
# customer unique id
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 => 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 => 60*60,
Map => [
# note: Login, Email and CustomerID are mandatory!
# 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', '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 ],
],
};

## fin de la autenticacion de clientes
# inicio de autenticacion Agentes y sincronizacion?
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
$Self->{'AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};


$Self->{AuthModule} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '172.17.25.9';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=minfin, dc=di,dc=gobierno';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=OTRS,ou=Especializados TI,ou=TI,ou=DTI,ou=xxxxxxx,dc=xxxxxx,dc=xxxxx,dc=xxxxxxx’
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'xxxxxxxxxx';
##fin de autenticacion de Agentes y sincronizacion
Last edited by crythias on 10 Jan 2014, 19:31, edited 1 time in total.
Reason: code tags
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ldap Agent configurated

Post by crythias »

viewtopic.php?f=60&t=16543
genesis2005 wrote:When a Agent try to login cant do it
More to the point, are you encountering an error message? What is it? Did you search for that message? How did you arrive at your config.pm configuration? What recipe did you follow?

If we needed to replicate your situation, how would we know we encountered the same issue you did?
Last edited by crythias on 10 Jan 2014, 21:02, edited 1 time in total.
Reason: updated because need more information
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
Locked